Skip to content

Instantly share code, notes, and snippets.

@mollifier
Created December 3, 2009 17:05
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 mollifier/248334 to your computer and use it in GitHub Desktop.
Save mollifier/248334 to your computer and use it in GitHub Desktop.
// Jetpack feature : disable-hatena-keyword-pageMods.js
// はてなダイアリー (http://d.hatena.ne.jp/) のキーワードを無効化する
// pageMods を使用するバージョン
jetpack.future.import("pageMods");
var callback = function(targetDocument) {
$(targetDocument).find("a.keyword").each(function() {
$(this).replaceWith($(this).html());
});
};
var options = {};
options.matches = ["http://d.hatena.ne.jp/*"];
jetpack.pageMods.add(callback, options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment