From fdda9aca79c4ae1e34f35693b1a3ccc3d04674f2 Mon Sep 17 00:00:00 2001 From: Raven Date: Fri, 22 Jan 2021 12:29:23 -0600 Subject: [PATCH 1/2] fix issue 53, XKCD -> xkcd, some minor text fixes, add github and explainxkcd to the default blacklist --- README.md | 9 ++++----- substitutions/html/config.html | 4 ++-- substitutions/js/background.js | 11 ++++++++--- substitutions/manifest.json | 6 +++--- 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index c41359f..f43cb36 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,13 @@ xkcd-substitutions ================== -xkcd substitutions chrome extension +The xkcd substitutions Chrome extension. -All credit to XKCD. +All credit to xkcd. https://xkcd.com/1288/ https://xkcd.com/1625/ -some other xkcd jokes have made it into the newest version. +Some other xkcd jokes have made it into the newest version: https://xkcd.com/1004/ -https://xkcd.com/1418/ https://xkcd.com/1031/ -https://xkcd.com/1625/ +https://xkcd.com/1418/ diff --git a/substitutions/html/config.html b/substitutions/html/config.html index 69ecacf..97e017c 100644 --- a/substitutions/html/config.html +++ b/substitutions/html/config.html @@ -4,7 +4,7 @@ - + XKCD Substitutions Configuration @@ -55,7 +55,7 @@

Website Blacklist

Feel free to add your own to the list.

- +
diff --git a/substitutions/js/background.js b/substitutions/js/background.js index 541b7c0..39a8752 100644 --- a/substitutions/js/background.js +++ b/substitutions/js/background.js @@ -20,7 +20,7 @@ var default_replacements = [ ['homeland security', 'homestar runner'], ['could not be reached for comment', 'is guilty and everyone knows it'], - // https://xkcd.com/1625/ + //https://xkcd.com/1625/ ['debate', 'dance-off'], ['debates', 'dance-offs'], ['self driving', 'uncontrollably swerving'], @@ -67,7 +67,10 @@ var default_replacements = [ ['forces', 'horses'], //https://xkcd.com/1004/ - ['batman', 'a man dressed like a bat'] + ['batman', 'a man dressed like a bat'], + + //https://xkcd.com/37/ + ['-ass ', ' ass-'] ]; //Default Blacklist var default_blacklisted_sites = [ @@ -77,7 +80,9 @@ var default_blacklisted_sites = [ "inbox.google.com", "mail.yahoo.com", "outlook.com", - "xkcd.com" + "xkcd.com", + "explainxkcd.com", + "github.com" ]; var debug = false; diff --git a/substitutions/manifest.json b/substitutions/manifest.json index 2684325..a304a78 100644 --- a/substitutions/manifest.json +++ b/substitutions/manifest.json @@ -1,14 +1,14 @@ { "manifest_version": 2, - "name": "XKCD substitutions", - "description": "Making the web a stranger better place.", + "name": "XKCD Substitutions", + "description": "Making the web a s̶t̶r̶a̶n̶g̶e̶r better place.", "version": "1.4.1", "options_page": "html/config.html", "browser_action": { "default_icon": { "19": "images/enabled.png" }, - "default_title": "click to disable xkcd substitutions" + "default_title": "Click to disable xkcd substitutions" }, "background": { "scripts": [ From 766c288244681c7e2b3df212f59fa7b641d3459f Mon Sep 17 00:00:00 2001 From: Raven Date: Fri, 22 Jan 2021 12:30:53 -0600 Subject: [PATCH 2/2] fix spacing in README --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f43cb36..477ad44 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,18 @@ xkcd-substitutions The xkcd substitutions Chrome extension. -All credit to xkcd. + +All credit to xkcd. + https://xkcd.com/1288/ + https://xkcd.com/1625/ + Some other xkcd jokes have made it into the newest version: + https://xkcd.com/1004/ + https://xkcd.com/1031/ + https://xkcd.com/1418/