Editing Talk:1288: Substitutions

Jump to: navigation, search
Ambox notice.png Please sign your posts with ~~~~

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 5: Line 5:
 
::::It already exists for Firefox: https://addons.mozilla.org/en-US/firefox/addon/foxreplace/ This addon allows you to create substitution lists that will automatically be applied to web pages. -- [[Special:Contributions/173.245.51.210|173.245.51.210]] 13:39, 8 November 2013 (UTC)
 
::::It already exists for Firefox: https://addons.mozilla.org/en-US/firefox/addon/foxreplace/ This addon allows you to create substitution lists that will automatically be applied to web pages. -- [[Special:Contributions/173.245.51.210|173.245.51.210]] 13:39, 8 November 2013 (UTC)
 
:::: And here's an URL for the abovementioned FoxReplace addon. Just import it, and it will do the substitutions listed in this XKCD comic: https://www.dropbox.com/s/36eq2xgnmv8obpe/XKCD.json {{unsigned ip|173.245.51.210}}
 
:::: And here's an URL for the abovementioned FoxReplace addon. Just import it, and it will do the substitutions listed in this XKCD comic: https://www.dropbox.com/s/36eq2xgnmv8obpe/XKCD.json {{unsigned ip|173.245.51.210}}
:::: Updated link for FoxReplace: https://drive.google.com/open?id=1fumEJqH6V0HKtXEz8IP1GB_Uw-3PeyId
 
  
::I threw this together this morning for Chrome: https://Free code.com/ChrisMagellan/Make-News-Funny/ Note that you need to enable developer mode in your Extensions settings. {{unsigned ip|108.162.219.29}}
+
::I threw this together this morning for Chrome: https://github.com/ChrisMagellan/Make-News-Funny/ Note that you need to enable developer mode in your Extensions settings. {{unsigned ip|108.162.219.29}}
:::: Oh God! Thank you! I'm trying not to laugh too loudly at work. This is hilarious [http://www.nytimes.com/2013/11/01/us/politics/book-details-consideration-of-replacing-biden-on-2012-ticket.html?pagewanted=all&_r=0|"While last ’s grind of an eating contest lacked the drama of the 2008 race ..."] -- [[Special:Contributions/173.245.51.223|173.245.51.223]] 15:01, 8 November 2013 (UTC)
+
:::: Oh God! Thank you! I'm trying not to laugh too loudly at work. This is hilarious [http://www.nytimes.com/2013/11/01/us/politics/book-details-consideration-of-replacing-biden-on-2012-ticket.html?pagewanted=all&_r=0|"While last year’s grind of an eating contest lacked the drama of the 2008 race ..."] -- [[Special:Contributions/173.245.51.223|173.245.51.223]] 15:01, 8 November 2013 (UTC)
 
::::How do I install it? [[User:Whitecat|Whitecat]] ([[User talk:Whitecat|talk]])
 
::::How do I install it? [[User:Whitecat|Whitecat]] ([[User talk:Whitecat|talk]])
  
::As a userscript that should work with Scriptish, Greasemonkey or anything else that supports userscripts: https://gist.Free code.com/mcef/7376276 (click to install: https://gist.Free code.com/mcef/7376276/raw/e0b7a3ca2a65b8809a48241a92f265ae479c9e99/1288.user.js)
+
::As a userscript that should work with Scriptish, Greasemonkey or anything else that supports userscripts: https://gist.github.com/mcef/7376276 (click to install: https://gist.github.com/mcef/7376276/raw/e0b7a3ca2a65b8809a48241a92f265ae479c9e99/1288.user.js)
 
::Add other news sites on the top or just tell me and I'll add them. [[User:Mcef|mcef]] ([[User talk:Mcef|talk]]) 19:57, 8 November 2013 (UTC)
 
::Add other news sites on the top or just tell me and I'll add them. [[User:Mcef|mcef]] ([[User talk:Mcef|talk]]) 19:57, 8 November 2013 (UTC)
  
 
::For those who don't want to install anything in their browsers, here is a bookmarklet. To use it, create a new bookmark and insert the following code as location
 
::For those who don't want to install anything in their browsers, here is a bookmarklet. To use it, create a new bookmark and insert the following code as location
  javascript:(function(){var%20map={:"These%20dudes%20I%20know","":"Kinda%20probably","new%20study":"Tumbl%20post",:"Avenge",:"Spaaace","google%20glass":"Virtual%20Boy",:"Pokedex",:"Atomic",:"Elf-lord",:"Cat",:"Eating%20contest","congressional%20leaders":"River%20spirits","homeland%20security":"Homestart%20Runner","could%20not%20be%20reached%20for%20comment":"Is%20guilty%20and%20everyone%20knows%20it"};var%20b=document.getElementsByTagName('body')[0];b.innerHTML=b.innerHTML.replace(/new%20study|google%20glass|congressional%20leaders|homeland%20security|could%20not%20be%20reached%20for%20comment|\w+/gi,function($0){return map[$0.toLowerCase()]||$0});})()<br>
+
  javascript:(function(){var%20map={These dudes I know:"These%20dudes%20I%20know","Kinda probably":"Kinda%20probably","new%20study":"Tumbl%20post",Avenge:"Avenge",Spaaace:"Spaaace","google%20glass":"Virtual%20Boy",Pokedex:"Pokedex",Atomic:"Atomic",Elf-lord:"Elf-lord",Cat:"Cat",Eating contest:"Eating%20contest","congressional%20leaders":"River%20spirits","homeland%20security":"Homestart%20Runner","could%20not%20be%20reached%20for%20comment":"Is%20guilty%20and%20everyone%20knows%20it"};var%20b=document.getElementsByTagName('body')[0];b.innerHTML=b.innerHTML.replace(/new%20study|google%20glass|congressional%20leaders|homeland%20security|could%20not%20be%20reached%20for%20comment|\w+/gi,function($0){return map[$0.toLowerCase()]||$0});})()<br>
 
::--[[Special:Contributions/173.245.53.128|173.245.53.128]] 20:44, 8 November 2013 (UTC)
 
::--[[Special:Contributions/173.245.53.128|173.245.53.128]] 20:44, 8 November 2013 (UTC)
 
:::: You've made the wrong script.  This is the correct one:   
 
:::: You've made the wrong script.  This is the correct one:   
Line 23: Line 22:
 
(function(){
 
(function(){
 
var map={
 
var map={
:"These dudes I know",
+
These dudes I know:"These dudes I know",
:"Kinda probably",
+
Kinda probably:"Kinda probably",
"":"Tumbl post",
+
"Tumblr post":"Tumbl post",
:"Avenge",
+
Avenge:"Avenge",
:"Spaaace",
+
Spaaace:"Spaaace",
"":"Virtual Boy",
+
"Virtual boy":"Virtual Boy",
:"Pokedex",
+
Pokedex:"Pokedex",
:"Atomic",
+
Atomic:"Atomic",
:"Elf-lord",
+
Elf-lord:"Elf-lord",
:"Cat",
+
Cat:"Cat",
:"Eating contest",
+
Eating contest:"Eating contest",
"s":"River spirits",
+
"congressional leaders":"River spirits",
"":"Homestart Runner",
+
"Homestar runner":"Homestart Runner",
"":"Is guilty and everyone knows it"};
+
"Is guilty and everyone knows it":"Is guilty and everyone knows it"};
 
var b=document.getElementsByTagName('body')[0];
 
var b=document.getElementsByTagName('body')[0];
 
b.innerHTML=b.innerHTML.replace(
 
b.innerHTML=b.innerHTML.replace(
/
+
/Tumblr post
|
+
|Virtual boy
|s
+
|congressional leaders
|
+
|Homestar runner
|
+
|Is guilty and everyone knows it
 
|\w+/gi,function($0){
 
|\w+/gi,function($0){
 
return map[$0.toLowerCase()]||$0});})()   
 
return map[$0.toLowerCase()]||$0});})()   
 
</pre>  
 
</pre>  
 
[[Special:Contributions/173.245.51.221|173.245.51.221]] 08:45, 9 November 2013 (UTC)
 
[[Special:Contributions/173.245.51.221|173.245.51.221]] 08:45, 9 November 2013 (UTC)
:::: I don't get how that was supposed to work, here's mine: javascript:(function(o){var t = o.innerHTML; var subs = [["","dudes I know"],["","kinda probably"],["","tumblr post"],["","avenge"],["","spaaace"],["","virtual boy"],["","pok\u00e9dex"],["","atomic"],["","elf-lord"],["","cat"],["","eating contest"],["s","river spirits"],["","homestar runner"],["","is guilty and everyone knows it"]]; for(var x = 0; x < subs.length; x++) { t = t.replace(new RegExp(subs[x][0],"gi"),subs[x][1]); } o.innerHTML=t;})(document.body);
+
:::: I don't get how that was supposed to work, here's mine: javascript:(function(o){var t = o.innerHTML; var subs = [["These dudes I know","dudes I know"],["Kinda probably","kinda probably"],["Tumblr post","tumblr post"],["Avenge","avenge"],["Spaaace","spaaace"],["Virtual boy","virtual boy"],["Pokedex","pok\u00e9dex"],["Atomic","atomic"],["Elf-lord","elf-lord"],["Cat","cat"],["Eating contest","eating contest"],["congressional leaders","river spirits"],["Homestar runner","homestar runner"],["Is guilty and everyone knows it","is guilty and everyone knows it"]]; for(var x = 0; x < subs.length; x++) { t = t.replace(new RegExp(subs[x][0],"gi"),subs[x][1]); } o.innerHTML=t;})(document.body);
 
[[Special:Contributions/199.27.128.183|199.27.128.183]] 02:15, 13 November 2013 (UTC)
 
[[Special:Contributions/199.27.128.183|199.27.128.183]] 02:15, 13 November 2013 (UTC)
  
Line 61: Line 60:
 
Pigs In Spaaaaace! {{unsigned ip|108.162.219.33}}
 
Pigs In Spaaaaace! {{unsigned ip|108.162.219.33}}
  
That "" switched for "SPAAAACE" is so much fun when reading about nameSpaaaces in C++, for example. I was reading the Go tutorial today... Try it. [[User:GBGamer117|GBGamer117 &#62; /dev/null]] ([[User talk:GBGamer117|talk]]) 23:57, 12 November 2013 (UTC)
+
That "Spaaace" switched for "SPAAAACE" is so much fun when reading about namespaces in C++, for example. I was reading the Go tutorial today... Try it. [[User:GBGamer117|GBGamer117 &#62; /dev/null]] ([[User talk:GBGamer117|talk]]) 23:57, 12 November 2013 (UTC)
  
 
The Opera plugin is now available here: https://addons.opera.com/en/extensions/details/xkcd-substitutions/ [[Special:Contributions/108.162.238.120|108.162.238.120]] 06:50, 15 November 2013 (UT
 
The Opera plugin is now available here: https://addons.opera.com/en/extensions/details/xkcd-substitutions/ [[Special:Contributions/108.162.238.120|108.162.238.120]] 06:50, 15 November 2013 (UT
  
I have written yet another Chrome extension inspired by this comic: [https://chrome.google.com/webstore/detail/xkcd-substitutions-plus/oppfdcfjocbkhcakmfhenlgimjmoohid "xkcd Substitutions Plus"] I did this since I couldn't find one that let you to edit the list of substitutions. I plan to upload the code to Free code too. I would love to hear suggestions on how to improve it :) {{unsigned ip|141.101.98.220}}
+
I have written yet another Chrome extension inspired by this comic: [https://chrome.google.com/webstore/detail/xkcd-substitutions-plus/oppfdcfjocbkhcakmfhenlgimjmoohid|"xkcd Substitutions Plus"] I did this since I couldn't find one that let you to edit the list of substitutions. I plan to upload the code to GitHub too. I would love to hear suggestions on how to improve it :) {{unsigned ip|141.101.98.220}}
 
::You should probably disable your extension for this page (or make it correctly work with the textarea), since you seem to be changing other code posted in the comments with it every time you make an edit. [[User:Mcef|mcef]] ([[User talk:Mcef|talk]]) 15:58, 17 November 2013 (UTC)
 
::You should probably disable your extension for this page (or make it correctly work with the textarea), since you seem to be changing other code posted in the comments with it every time you make an edit. [[User:Mcef|mcef]] ([[User talk:Mcef|talk]]) 15:58, 17 November 2013 (UTC)
 
:::: It's a good idea, I'll add a list of excluded pages to the extension. [[Special:Contributions/108.162.231.57|108.162.231.57]] 18:59, 17 November 2013 (UTC)
 
:::: It's a good idea, I'll add a list of excluded pages to the extension. [[Special:Contributions/108.162.231.57|108.162.231.57]] 18:59, 17 November 2013 (UTC)
::::::And yet you do it again, ruining all the code posted in the comments. Please refrain from editing this with the plugin enabled. [[User:Mcef|mcef]] ([[User talk:Mcef|talk]]) 19:12, 17 November 2013 (UTC)
 
 
The comic description really confused me... until I realised I had the plug-in turned on. :D [[Special:Contributions/141.101.99.217|141.101.99.217]] 20:07, 24 November 2013 (UTC)
 
 
Weirdest thing I've gotten out of the extension: Jehovah's These dudes I know. [[Special:Contributions/108.162.215.84|108.162.215.84]] 09:11, 28 April 2014 (UTC)
 
 
Check out the Android App (we are using it for a research project, to collect user interaction data): https://play.google.com/store/apps/details?id=at.fhooe.mint.app [[Special:Contributions/141.101.92.45|141.101.92.45]] 17:06, 5 March 2015 (UTC)
 
 
I just logged on to #xkcd on foonetic, and I saw this: <code>Topic for #xkcd is: "Hey, it looks like you're updating your resume!" - MS buys LI | https://goo.gl/FDyl1f | '''s/clone/clown/g''' | #xkcd = take a joke too far | bearachute has lost his sense of self | Today is a good day for a donut | New element names announced: nihonium, moscovium, tennessine and oganesson http://goo.gl/v4b437</code> (bold mine). I like it. [[User:KangaroOS|Kangaro]][[User talk:KangaroOS|OS]] 04:31, 15 June 2016 (UTC)
 
 
Hey, you should check the transcript with the plugins. [[User:SilverMagpie|SilverMagpie]] ([[User talk:SilverMagpie|talk]]) 21:52, 18 January 2017 (UTC)
 
 
This comic is cited in "Scripting" section of the W3C HTML5 recommendation: https://www.w3.org/TR/html5/semantics-scripting.html#example-c1cd20ae
 
 
It appears that the extension was removed from the Mozilla add-ons site and can no longer be installed on Firefox. It’s still available on the Chrome Web Store though! [[Special:Contributions/162.158.78.70|162.158.78.70]] 20:26, 11 April 2024 (UTC)
 

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)

Template used on this page: