Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Fixes #53 #60

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
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/
4 changes: 2 additions & 2 deletions substitutions/html/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Configuration page for the xkcd substitution chrome extension.">
<meta name="description" content="Configuration page for the xkcd substitution Chrome extension.">
<title>XKCD Substitutions Configuration</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">
Expand Down Expand Up @@ -55,7 +55,7 @@ <h3>Website Blacklist</h3>
<p>Feel free to add your own to the list.</p>
<form id="blacklist">
<div>
<input autocomplete="off" placeholder="A comma separated list of websites" id="website-blacklist" type="text" type="text" class="input form-control field">
<input autocomplete="off" placeholder="A comma-separated list of websites" id="website-blacklist" type="text" type="text" class="input form-control field">
</div>
</form>
</div>
Expand Down
11 changes: 8 additions & 3 deletions substitutions/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down Expand Up @@ -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 = [
Expand All @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions substitutions/manifest.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down