// zapps annoying articles by specific user (eg, rosebuntu*). // by M.W.Park 2007-07-05 // inspired by trollfreeworld.user.js http://idkiller.iz4u.net/gmonkey/trollfreeworld.user.js // Imyejin-free user script from perky http://openlook.org/src/0704/imyejinfree.user.js // http://userscripts.org/scripts/review/10398 // // ==UserScript== // @name zapper // @namespace http://kldp.org/ // @description zapps annoying articles by specific user // @include http://kldp.org/* // @exclude // ==/UserScript== var trollLinks = document.evaluate('//a[@title="사용자 프로필 보기" and contains(text(), "rosebuntu")]', document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); for (var i = 0; i < trollLinks.snapshotLength; i++) { var node = trollLinks.snapshotItem(i); while (node.nodeName.toLowerCase() != "tr" && node.getAttribute("class") != "comment") node = node.parentNode; node.parentNode.removeChild(node); }