// ==UserScript== // @name unvisualizer // @namespace http://anond.hatelabo.jp/ // @description unvisualize section including specific word at Hatelabo::AnonymousDiary // @include http://anond.hatelabo.jp/* // @exclude http://anond.hatelabo.jp/hatena/* // ==/UserScript== (function() { var target = document.evaluate( // "//div[@class='section' and contains(descendant::text(),'\u3042\u307c\u3093')]", "//div[@class='section' and descendant::*[contains(text(),'NG') or contains(text(),'2ch')]]", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); for(var i=0; i<target.snapshotLength; i++) { target.snapshotItem(i).style.display = "none"; } })();
キーワードべた書きだけど、とりあえずこんな感じで。
ただ、日本語がよくわからん。xpathって日本語だめ?'\u3042\u307c\u3093'って「あぼん」だよね?
コメントアウトしてあるやつもなんで駄目なのかわかんない。xpathよくわからん。
[追記]
念のため、excludeに自分のID以下のページを入れといた方が良いかもね。
その他、好きにして。
NGワードを含むエントリをあぼんするGreasemonkeyが欲しい。
// ==UserScript==// @name unvisualizer// @namespace http://anond.hatelabo.jp/// @description unvisualize section including specific word at Hatelabo::AnonymousDiary// @include http://anond.hatelabo.jp/*// ==/UserScript==(function() { var target = docum...
「Re: [anond:20070517220210:title=NGワードを含むエントリをあぼんするGreasemonkey]」ってのを書いた事はある。使ってないけど。
http://anond.hatelabo.jp/20070517234726
おおっ!こんなんあるのかすげー。 でも、ぷにる厨なんですよorz..
じゃあ最終兵器 つ 脳内あぼーん
なるべく脳内あぼーんするようにしてんるだが、 ページ内に10個とかあってしかも長文だとね。。
1.TampermonkeyまたはGlassmonkeyを導入する Tampermonkey https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=ja Glassmonkey https://addons.mozilla.org/de/firefox/addon/greasemonkey/ 2.次の...