There seem to be lot's of comments of late along the lines of "not another thread by xyz".
To spare those posters of the torment, may I present the SpamHammer for GreaseMonkey!
This is version 0.1 (beta) and here's the roadmap for current and furure versions:
Version 0.1b: (we are here)
This version will remove threads by author on your blocklist from the forum index.
#changed example list to fake accounts
Version 0.2: (subject to demand)
This version will allow you to hide threads based on keywords. E.g. "Iraq" or "Bush".
Version 0.3: (if I or anyone else can be bothered)
True ignore feature, just totally ignore what a certain user posts, since you know they will just piss you off anyone.
Version 0.4: (doubt it will happen)
Total nuke. Ignore posts where someone has even quoted someone on your nuke list. Just totally block that bad Karma from your life.
Setup Guide:
1. Use Firefox.
2. Install the Greasemonkey addon from the Mozilla site.
3. Restart Firefox.
4. Use notepad to save the following code into a file named "bf2sblock.user.js".
5. Drag the file onto Firefox.
Editing your blocklist:
Make sure GreaseMonkey knows where to find Notepad.exe. Right-Click on the monkey in your bar, and select "New User Script". A file dialog will pop up. Browse to C:\Windows\Notepad.exe and select the file.
Now you can right-click the monkey and select manage scripts. Click "BF2S Ignore" then "edit". You can now modify the list in the "EDIT AREA" marked in the code. Stick to the example layout, put each name in quotes and separate with a comma, but no comma on the last entry. Save and close the file in notepad. Refresh the forum index and relax. You should feel your blood pressure go down immediately.
Post any problems or comments, and I will gladly assist. If you aren't on my blocklist (joke).
Credit goes to Ferenc Gerlits who's script I adapted ( http://userscripts.org/scripts/show/3051 ), it was a good base to work from for a bf2s blocker. I'll upload it back up to userscripts at some point, if and when anyone helps to test it.
To spare those posters of the torment, may I present the SpamHammer for GreaseMonkey!
This is version 0.1 (beta) and here's the roadmap for current and furure versions:
Version 0.1b: (we are here)
This version will remove threads by author on your blocklist from the forum index.
#changed example list to fake accounts
Version 0.2: (subject to demand)
This version will allow you to hide threads based on keywords. E.g. "Iraq" or "Bush".
Version 0.3: (if I or anyone else can be bothered)
True ignore feature, just totally ignore what a certain user posts, since you know they will just piss you off anyone.
Version 0.4: (doubt it will happen)
Total nuke. Ignore posts where someone has even quoted someone on your nuke list. Just totally block that bad Karma from your life.
Setup Guide:
1. Use Firefox.
2. Install the Greasemonkey addon from the Mozilla site.
3. Restart Firefox.
4. Use notepad to save the following code into a file named "bf2sblock.user.js".
Code:
// ==UserScript== // @name BF2S Ignore 0.1b // @namespace http://bf2s.com // @description BF2S Ignore // @include http://forums.bf2s.com/* // ==/UserScript== var blockedUsers = new Array( //EDIT AREA //type your block list here, in quotes, comma separated //don't put a comma after the last entry. "enter_user_name1", "enter_user_name2" //END EDIT AREA ); var allArticles = document.evaluate("//span[@class='byuser']", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); for (var i=0; i < allArticles.snapshotLength; ++i) { var article = allArticles.snapshotItem(i); for (var j=0; j < blockedUsers.length; ++j) { var user = blockedUsers[j]; if (article.innerHTML.match(user)) { var node = document.getElementById('vf') .childNodes[3] .childNodes[1] .childNodes[1] .childNodes[3] .childNodes[1+i]; while (node.hasChildNodes()) { node.removeChild(node.firstChild); } } } }
Editing your blocklist:
Make sure GreaseMonkey knows where to find Notepad.exe. Right-Click on the monkey in your bar, and select "New User Script". A file dialog will pop up. Browse to C:\Windows\Notepad.exe and select the file.
Now you can right-click the monkey and select manage scripts. Click "BF2S Ignore" then "edit". You can now modify the list in the "EDIT AREA" marked in the code. Stick to the example layout, put each name in quotes and separate with a comma, but no comma on the last entry. Save and close the file in notepad. Refresh the forum index and relax. You should feel your blood pressure go down immediately.
Post any problems or comments, and I will gladly assist. If you aren't on my blocklist (joke).
Credit goes to Ferenc Gerlits who's script I adapted ( http://userscripts.org/scripts/show/3051 ), it was a good base to work from for a bf2s blocker. I'll upload it back up to userscripts at some point, if and when anyone helps to test it.
Last edited by UON (2007-02-02 17:34:33)