This is all ezkilla2's fault.
The other day he wrote a post about a cool project he'd started -- the ShacknewsCommentsFilter. I've been dying for something like this for ages, and thought about writing a Greasemonkey script to do it myself, but ezkilla2 beat me to it, and I thank him.
I took his script and made it so that you can edit the filtered word list right from the Shack! With ezkilla2's original version you'd have to muck around in the script's source code to change the filter list. Now that I've written all the code to manage the word list, I understand why... hahaha
You can also now filter posts by author. Tired of another shacker constantly shitting up latestchatty with their emo crap? Filter them out -- it's prety sweet.
Possible uses for the Shack Comments Filter:
- Tired of shackpolls and emo posts? Add 'shackpoll' and 'emo' to your filtered words list!
- Been bitten by ShackHype one time too many only to find out that everyone who was foaming over a game yesterday traded it in for this week's BESTEST GAME EVAR? (I'm looking at your Black & White!) Filter it out.
To add a word to the filter list, enter the word in the text box in the Filterd Words bar, and click 'Add'. You can also add filters for partial words. Let's say you're tired of hearing about DoofBlaster the awesome new game that's taking the Shack by storm. You can nuke the posts containing references to the game by adding 'doof*' to your filtered word list.
To remove a word from the filter list, click the word in the Filtered Words bar. You'll have to manually refresh the page to see the results.
Authors work the same way. Just type the name and click "Add" to add them, and click on the name to remove the name from the list.
Most Filtered Words
Another neat feature of the comments filter is the ability to share your filtered word list with everyone. If you turn the publishing on, your word list will be transmitted to my site here where all the scripts' users filtered words are shown in a Top 10-style list. People can't tell which words are yours specifically, but it's neat to see what everyone is filtering.
Here's the list right now : Most Filtered Words
Installation
- Get and install FireFox, thilly! http://www.mozilla.org/products/firefox/
- Get and install Greasemonkey! The script requires version 0.6.0 or newer. If you're having problems getting it running, this might be the reason. http://greasemonkey.mozdev.org/
- Right-click on the following link and select "Install User Script..." from the menu:
Install Shacknews Comments Filter Greasemonkey Script
Version History
2006-02-13: Moved checkbox handlers to prevent possible closure problems 2005.09.23: Script updated for Greasemonkey 0.6.x support 2005.08.24: Added: * wildcard for filtering words containing a certain pattern (ie. *bcd or abc* would cause abcd to trigger a filter) 2005.07.01: Fix: Replaced addGlobalStyle function with faster version 2005.06.08c: Fix: Removed event from filterBar option events for major speed up Fix: Condensed all style changes down to one function call for speed Removed: scrollIntoView() fix since it's now its own script 2005.06.08b: Fixed: Script no longer runs in iframe when dthread updates 2005.06.08: Added scrollIntoView() fix 2005.06.06: Reverse filter confirmation added Reverse filter status is now being published with the word list 2005.06.03: Reverse filter added 2005.06.01: Created 'filterBar' as suggested by ieGod Replaced pup's cookie code with GM_getValue and GM_setValue Added " as converted punctuation Added option checkboxes and links to stats and shackmessage Thom Fixed stripPunctuation() 2005.05.17: Rewritten for Greasemonkey 0.3.3 Word list publishing added 2005.05.13b: Added user filtering 2005.05.13: Added nuke all filters option to menu Fixed mid-word filtering issue Added confirmation dialog when removing words 2005.05.12: List management code Filter optimizations 2005.05.10: Initial release
Credits
- ezkilla2
- Concept / Original author
- ThomW
- Filter cookie / list management code / filter optimizations
Other contributors:
- pupismyname
- Graciously allowed me to use some really neat XPath code from his Shack collapse thread Greasemonkey script.
- http://diveintogreasemonkey.org/
- Lots of useful information was obtained from here
- http://jdstiles.com/functions.html
- trim(), ltrim(), rtrim() functions
- http://www.crockford.com/javascript/remedial.html
- isArray(), isFunction(), isObject() functions