Skip to content

Instantly share code, notes, and snippets.

@DOGEME
Forked from cxx/ii.user.js
Created March 1, 2012 15:02
Show Gist options
  • Save DOGEME/1950312 to your computer and use it in GitHub Desktop.
Save DOGEME/1950312 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('。', 'wwwww');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment