Hacker News new | past | comments | ask | show | jobs | submit login
XKCD Substitutions Chrome extension (chrome.google.com)
90 points by posnet on Nov 8, 2013 | hide | past | favorite | 37 comments



Developers should be careful with extensions like these.

Another popular one (switch "cloud" to "butt") has resulted in me finding image embeds from "buttfront.net" (and broken images) in page sources on a couple of popular websites.


The author of the "cloud-to-butt" extension has some interesting tweets on the topic: https://twitter.com/stevenf/status/342698187204751360


At least it wasn't showing images from frontbutt.net.


Two solutions that do something smarter than just global search/replace on the raw HTML:

http://net.tutsplus.com/tutorials/javascript-ajax/spotlight-...

http://james.padolsey.com/javascript/find-and-replace-text-w...


You don't need an extension to have fun with this stuff.

Try (http://www.gizoogle.net/) the next time you go to read any political article. Not only is it more entertaining, it's also more accurate in many cases.


You could say those images are up in the butt.


I say "what what?" in the cloud.


Randall must have one of the shortest travel times from expressing an idea (through his comics) to someone making that idea a reality (this, geohashing, etc.).


He's the only person I know of that can program using stick figures


cueball, megan, and black-hat guy: an entertaining visual programming language

Legions of xkcd fans: collectively a "sufficiently smart compiler"? an "eager-to-please interpreter"?


Met so many "IT professionals" who program mostly with drawings ;)


I'll be honest that I was very tempted to put on a suit, set up a fake newsroom and make a video because of this comic this morning.


I'm going to have to add this one to my list of things Munroe has built through comics: http://euri.ca/2013/xkcd-is-the-new-donald-duck


So much information about atomic cats: http://en.wikipedia.org/wiki/Tesla_Motors

EDIT: Dammit! Just saw the alt text on the original... ah well, great minds and all that...


In case anyone else is interested in reading the alt text: http://xkcd.com/1288


Unless everyone stopped the image from loading, you are reading the title text. Sorry for nitpicking.


For those who don't use Chrome and prefer "on demand news fun" check out this bookmarklet http://geeksta.net/tools/make-reading-news-fun-bookmarklet/


Already serving me headlines that make more sense than the originals:

"If you believe Elf-Lord Lindsey Graham is actually a lizard, you're among friends—12 million of them."

http://www.thedailybeast.com/articles/2013/11/03/fringe-fact...


Another one of these substitution extensions...

https://github.com/panicsteve/cloud-to-butt


Oh, this one is perfect. It makes a lot of links posted to HN much more interesting than they originally are.


keyboard -> leopard is another one that caught me out ages ago. Makes things funny every now and then but also messes up your idea of the names for various keyboard config files.


Your comment really confused me until I viewed source, apparently this plugin also silently does the keyboard > leopard swap.


According to a new study, smartphone users are allegedly 10 times more likely to rebuild their car in space than users of google glass. Witnesses could not be reached for comment.


According to a Tumblr post, Pokédex users are kinda probably 10 times more likely to avenge their cat in spaaace than users of virtual boy. these dudes I know is guilty and everyone knows it..


I was just thinking of building a javascript snippet for that XKCD, but you beat me to it. Looks like reading the news is going to get waaaay more interesting....


When I saw that xkcd I knew how I'll be spending my free time over the weekend. I should've known that someone on HN will forestall me.


I made a Bookmarklet implementation: http://www.buyog.com/code/post/i-made-a-thing-news-fixr


Am I the only person looking at this and cringing and thinking "It's xkcd, not XKCD god damn it"


Randall himself states that all upper case is an okay alternative, whereas "Xkcd" is frowned upon http://xkcd.com/about/



I wonder how many people here planned to do this. Thank you and congratulations on the speed.


implemented in javascript:

https://gist.github.com/jiaaro/7372006


There's a native way to avoid that recursion.

  var snap = document.evaluate('//text()', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null );
  for (var i=0;i<snap.snapshotLength;i++){t=snap.snapshotItem(i);t.textContent = replace(t.textContent);}
Also, the regexps would probably be better like /\belection\b/gi, to avoid eg reelection->reeating contest.


I think a reeating contest sounds . . . challenging.


Could you possibly minify it?


Phew, this guys a quick-draw-mcgraw.


RIP, Homestar Runner.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: