Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name crooked comment hider
- // @namespace crooked comment hider
- // @description hides redundant comments
- // @match http://crookedtimber.org/*
- // @grant none
- // ==/UserScript==
- cl = document.getElementsByClassName.bind(document);
- au = cl("comment_author");
- for ( var i = au.length - 1; i >= 0; i-- ) {
- if (['benk', 'cassander', 'brett bellmore'].indexOf(au[i].innerHTML.toLowerCase()) >= 0) {
- co = cl("format_text");
- co[i+1].innerHTML = "<div class='format_text'>(removed)</div>";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement