Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

4chan UserJS script (for Opera)

Name: FyberOptic 2006-05-31 22:27

The 4chan extension for Firefox has a few nice things to offer, and I've found myself using that browser to peruse 4chan at times, even though my primary browser is Opera.  Unfortuantely, nobody seems to have ever written any enhancements for it (that I've ever found), so I decided to write one myself!

http://www.fybertech.com/userjs/fychan.js

This mostly implements the feature I prefer most; loading a full thread right inside the page, instead of loading a seperate page to see the omitted posts.  Just in the time I've been testing it, I've already been finding it pretty useful.

In any case, this is a UserJS script for anyone not in the know.  It's Opera's version of an extension language.  I've found myself using it a lot lately, not just to add features to websites, but to fix other ones that won't work properly in Opera.  It's great.

If you don't know how to install a UserJS script, it's simple.  You can either read the elaborate explantion at http://userjs.org/help/installation , or just:  Go to Tools, Options, Preferences, then the Advanced tab, pick the Content section, click Javascript Options.  In the "My Javascript files" blank, put like "c:\userjs" (minus the quotes), then create that folder on your computer, and copy the script inside.  You'll probably want to right-click/save-as to get the script onto your computer, mind you.

Anyway, if anyone wants to mess around with it and see if they can find any  problems, feel free.  I'm also welcome to suggestions of things to add.  Hope some folks find it useful!

Name: FyberOptic 2007-04-25 1:26 ID:6b2jrYMa

I upgraded this script a bit as I've been wanting a couple of certain features, so hopefully you guys will find them useful as well.  Download link same as above.

New stuff:

- Inline image expansion.  Like in the Firefox extension, clicking a thumbnail will load the image right in the page.  You can turn this off with a setting in the UserJS file if you prefer, but clicking the filename or middle-clicking the thumb will open it in a new window like always.  Initially I disabled interstitial ads for this to work correctly, but then I rewrote how it worked so that it would still function properly while keeping ads intact.  I haven't noticed any problems from having done so, but if it acts up, just let me know.

- Added an "All Images" command to the thread ID bar.  Clicking this lets you open all images in a thread at once.  If you try to open more than 15 (by default), it'll ask you to confirm.  I did kind of a last minute fix so that this would work on reply pages as well, so hopefully I didn't break anything.  Note that this WON'T WORK if you have popup blocking enabled for 4chan.  You can disable that explicitly for 4chan by right-clicking the page and picking "Edit site preferences", then preferably selecting "Open pop-ups in background".  You may have to do this once for each of 4chan's servers that you visit (zip, img, orz, etc).

- Added a minor fix so that it would load the default stylesheet, since for whatever reason, it wasn't working in Opera.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List