Skip to content

Instantly share code, notes, and snippets.

@kristoferjoseph
Created March 3, 2012 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kristoferjoseph/1967710 to your computer and use it in GitHub Desktop.
Save kristoferjoseph/1967710 to your computer and use it in GitHub Desktop.
War is overrated. A bookmarklet that replaces war with hugs. What could be better.
javascript:!function(){var%20regularExpression%20=%20/war/gi;document.body.innerHTML%20=%20document.body.innerHTML.replace(regularExpression,%20%27hugs%27,%20%27gi%27);}();
@seanami
Copy link

seanami commented Mar 4, 2012

Culture hugs. Excellent. :)

@kristoferjoseph
Copy link
Author

I realized after posting this that it wasn't very apparent that it was a bookmarklet. Glad the joke wasn't lost. I used it on a few wiki pages, makes the world seem like such a better place.

@seanami
Copy link

seanami commented Mar 5, 2012

Nah, I definitely got the bookmarklet bit. Global case-insensitive replacement of "war" with "hugs".

One failure case: "wars" gets replaced with "hugss". :)

@kristoferjoseph
Copy link
Author

I should open an issue ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment