Inspired by various Firefox extensions that deal with filtering posts on 4chan, I’ve taken some time to rewrite such a script for Opera. The current version doesn’t yet come with as many features as the original, but provides most of the important functionality.
Sample settings (based on real-life /a/)

Download
4chan Filter for Opera, Version 1.3a
Installation instructions
Set up an userscript directory for Opera. This option can be accessed using Tools -> Preferences -> Advanced -> Content -> JavaScript Options. After you’ve selected a directory, simply drop the .js file there and the script should load automatically.
Things to note
- All values are interpreted as regular expressions, meaning that some special characters will not work as expected when entered. Those are, for example, .+^$?*[]{}(). Such characters should be escaped with backslash unless you actually know what you’re doing.
- Since Opera doesn’t provide a way to store variables over a period of time, this script uses cookies to save settings. This means that a) if you disabled cookies nothing will work and b) if you set up Opera to delete new cookies on exit, all your settings will be gone the next time you start your browser.
Changelog
01/21/2009 – Version 1.0. Tested and working with Opera 9.6. Reports indicate it also works with Opera 10.
01/22/2009 – Version 1.1.
- Added toggle to sticky or unsticky control panel
- Fixed mouseover/mouseout for control panel
- All strings are precompiled to RegExps
- Added apply and reset buttons
02/01/2009 – Version 1.2. Improved support for fychan. Still some rough edges though. The post counter isn’t corrected after expanding a thread, and the `Reset page’ button destroys fychan. Nothing to be done about the latter since fychan always executes after this script.
02/02/2009 – Version 1.2a. Fixed new settings not taking effect unless the page was reloaded.
01/09/2010 – Version 1.3a. Updated some code which I don’t remember the significance of, and changed URL layout to conform to 4chan’s new URL scheme.
Tags: 4chan, opera, thread filter, userscript
Nice, but I see that this apparently doesn’t work with fychan.js (http://www.fybertech.com/userjs/fychan.js). Care to look into that (and maybe merge them)?
I’m currently looking into it. From what I understand, `Reset page’ undoes fychan and post filtering doesn’t work when expanding threads. Not sure about the former, but the latter will be fixed one of these days.
Other functionality shouldn’t conflict though.
Thanks! One thing though, would it be possible to automatically apply the filters on expanding a thread? The filter works fine once expanded, but I’m too lazy to always click “apply changes” when having expanded one.
Uhm, very sorry about that. Just checked over it and found out that apparently the settings weren’t correctly applied unless the page was reloaded. This should hopefully be fixed now.
Yes, looking good. Thanks again!
Thank you!
Hey brah, it’s totally cool that you’re porting my code to Opera, but could I get a line or two of recognition in the source? Seeing this post was an OH SHI- moment, finally prompting me to add GPL. Also, /b/ackwash has been GPL’d for a while, so you’re violating copyrights by not displaying the GPL stuff in there.
That aside, just wanted to open a dialogue. I’ll keep on eye on this and might backport cool stuff.
My aplogies. I did not intend to intrude on your intellectual property without giving proper credit. I just somewhat forgot to place a link to the original script in the source. I do hope you’re not too offended.
Concerning your claim of `copyright violation’ though: This is the Internet, after all. I do no exactly expect the FBI to turn at my door next thing in the morning. But let’s not turn this into drama.
That being said, this is just a minimal working rewrite of the original. I don’t plan to add new features at this point, seeing how things just work for me now.
Well, apparently doesn’t work with 9.2. I guess it’s time to update, since this sounds nice.
Man, doesnt seem to be working on 9.64.
Did you follow the installation instructions/enable UserJS in Opera? Did you enable Javascript?
I’ve been running 9.64 for a while now and have not experienced any particular problems.
Thanks for your your scripts, they’re awesome! One internet to you.
Just to let everyone know, my thread filter’s now compatible with Opera. Check out http://userscripts.org/scripts/show/33916 for details.
I think that it should filter out the entire thread if the content of the first post of the thread matches what’s in the Comment section of the script’s options.
I’m trying to use it with Opera 10.0, and I followed all the instructions and user scripts are enabled, cookies are accepted from sites that I visit, but nothing happens, what am I doing wrong?
I believe you’re doing nothing wrong, axt113. The filter does not work right now, and I believe the reason is because there’s no more .zip and .orz server.
May we ask for a fix for this?
Is there a way to filter OP posts? This one only filters replies.
Actually, fixing it involves a simple search and replace. Replace “http://[^\.]+\.4chan.org/[^\.]+\.html” with “http://[^\.]+\.4chan.org/[^\.]+\/” and it should work fine again.
confirmed for working after anon above’s fix, if it dosent work for anyone else.
thanks big time anon