Skip to content

Instantly share code, notes, and snippets.

@siyo
Forked from cxx/ii.user.js
Created February 11, 2012 14:00
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 siyo/1799537 to your computer and use it in GitHub Desktop.
Save siyo/1799537 to your computer and use it in GitHub Desktop.
いい…
// ==UserScript==
// @name いい…
// @namespace http://twitter.com/cxx
// @include http://www.facebook.com/plugins/like.php?*
// @version 1.2.1
// ==/UserScript==
var texts = document.evaluate('.//text()', document.body, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0, len = texts.snapshotLength; i < len; i++) {
var t = texts.snapshotItem(i);
t.data = t.data.replace('いいね!', 'どうでもいいね!');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment