Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Ignore Topic
- // @namespace http://userscripts.org/scripts/show/31174
- // @description Ignore Topic
- // @include http://www.nerfrevolution.com/forums/*
- // ==/UserScript==
- // IPB Completely hide user
- //
- // Remove table elements (posts) by given user
- // from UserScripts.org
- // http://userscripts.org/scripts/show/31174
- //
- // This is a Greasemonkey user script
- // Requires Greasemonkey Version 0.8
- //
- // To install, you need Greasemonkey, get it from: http://www.greasespot.net
- // Then restart Firefox and revisit this script.
- // Under Tools, there will be a new menu item to "Install User Script".
- // Accept the default configuration and install.
- //
- // To uninstall, go to Tools/Manage User Scripts,
- // select "IPB Completely hide user", and click Uninstall.
- //
- //
- // --------------------------------------------------------------------------
- // ==UserScript==
- // @name IPB Completely hide user
- // @namespace http://userscripts.org/scripts/show/31174
- // @description Remove table elements with certain user names
- // ==/UserScript==
- //
- // --------------------------------------------------------------------------
- // VERSION HISTORY:
- //
- // 1.3.1
- // Reworked to target threads in NRev
- //
- // 1.3
- // Changed string match method to exact match for posts and better match
- // for quotes
- //
- // 1.2
- // Added hide quotes from users
- //
- // 1.1
- // Switched from remove to hide - faster and more reliable.
- //
- // 1.0
- // Basic remove post from posters given in the list
- //
- // --------------------------------------------------------------------------
- var blacklist =
- [
- "Nerfers Nerfing For Jesus",
- "Another Topic You Don't Want to Ever See Again"
- ];
- function removeThreads(node)
- {
- var topic = node.firstChild.nodeValue;
- GM_log("topic: '" + topic + "'");
- for (j = 0; j < blacklist.length; j++)
- {
- // GM_log("blacklist[" + j + "]: '" + blacklist[j] + "'");
- if (topic == blacklist[j])
- {
- GM_log("found");
- node.parentNode.parentNode.style.display = 'none';
- }
- }
- }
- var foo = document.getElementsByTagName("a");
- for (var i=0; i<foo.length; i++)
- {
- if ((foo[i].className == "topictitle") || (foo[i].className == "topictitle link-new"))
- {
- removeThreads(foo[i]);
- }
- }
- return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement