Skip to content

Instantly share code, notes, and snippets.

@mollifier
Created December 3, 2009 15:59
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/248261 to your computer and use it in GitHub Desktop.
Save mollifier/248261 to your computer and use it in GitHub Desktop.
// Jetpack Feature : disable-hatena-keyword.js
// はてなダイアリー (http://d.hatena.ne.jp/) の
// キーワードを無効化する
jetpack.tabs.onReady(function(targetDocument) {
if (targetDocument.defaultView.frameElement) {
return;
}
if (targetDocument.location.href.search(/^http:\/\/d.hatena.ne.jp\//) !== -1) {
$(targetDocument).find("a.keyword").each(function() {
$(this).replaceWith($(this).html());
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment