Slightly obfuscate some eggs

This commit is contained in:
Florine W. Dekker 2022-12-07 20:10:51 +01:00
parent 1459ed8814
commit f029c68f1a
Signed by: FWDekker
GPG Key ID: D3DCFAA8A4560BE0
5 changed files with 5 additions and 6 deletions

View File

@ -1,7 +1,7 @@
{
"name": "fwdekker/death-notifier",
"description": "Get notified when a famous person dies.",
"version": "0.18.0", "_comment_version": "Also update version in `package.json`!",
"version": "0.18.1", "_comment_version": "Also update version in `package.json`!",
"type": "project",
"license": "MIT",
"homepage": "https://git.fwdekker.com/tools/death-notifier",

BIN
composer.lock generated

Binary file not shown.

BIN
package-lock.json generated

Binary file not shown.

View File

@ -1,6 +1,6 @@
{
"name": "death-notifier",
"version": "0.18.0", "_comment_version": "Also update version in `composer.json`!",
"version": "0.18.1", "_comment_version": "Also update version in `composer.json`!",
"description": "Get notified when a famous person dies.",
"author": "Florine W. Dekker",
"browser": "dist/bundle.js",

View File

@ -49,12 +49,11 @@ function refreshTrackings(): void {
if (tracking.deleted) {
statusText = "article not found";
} else {
// TODO: Obfuscate these Easter eggs
switch (tracking.name) {
case "Adolf Hitler":
switch (window.btoa(tracking.name)) {
case "QWRvbGYgSGl0bGVy":
statusText = "dead 🥳";
break;
case "Vladimir Putin":
case "VmxhZGltaXIgUHV0aW4=":
statusText = tracking.status === "alive" ? "alive ☹️" : "dead 🥳";
break;
default: