Fychan UserJS script
Get it here: http://www.fybertech.com/userjs/fychan.js
Forum topic: http://www.fybertech.com/forums/index.php?topic=390.0
Direct website: http://fychan.fybertech.com
NOTE: This page is not fully up to date at the moment.
Contents |
Features List
- Inline thread expansion
- Inline image expansion
- "All Images" feature to open all images in a thread automatically
- Automatic return to topic after posting
- Quick Reply
- Clickable URLs in posts
- Extra page selection bar added to top
Installation Info
If you don't already know how to install Opera UserJS scripts, it's fairly simple to do. First, you want to make sure your Opera is configured to look in a particular directory for them. So go to Tools -> Advanced tab -> Content -> Javascript Options. At the bottom you'll see "User Javascript files". Set this to wherever you plan to store your scripts; c:\userjs for example. Once you set the directory to put them in, just copy the fychan.js script to this location, and you should be all set!
Script Info
When using this script, an "Enable Fychan" or "Disable Fychan" button will appear below the ad beneath the message posting form. This allows you to toggle the functionality of the script on and off.
When activated (which it will be by default), all threads in the page are parsed and placed inside bordered objects, with a functionbar along the top. The color/style of the border will differ depending on the thread's current state. The different states are:
- Solid black - Normal thread, no posts omitted
- Dashed black - Normal thread, posts omitted
- Solid green - Expanded thread
- Dashed green - Expanded thread loaded, but normal thread being displayed
If a thread is surrounded by a dashed black border, you should be able to click the link in the features bar to dynamically expand the full thread inside the container. Once the data is retrieved, the border will change to solid green to signify that thread is now expanded.
Once a thread is expanded, you can click the button again to shrink it back to the original version, and the border will changed to being dashed, but remain green. This indicates the thread has already been loaded, and clicking on the button again will pop the expanded version right back up without reloading.
Some people have expressed a dislike for the borders, so they can be toggled off with the "config_ThreadBorders" option below.
Clicking the "All Images" link in the ID bar will load all images in that thread in new windows. The number of images it loads depends on whether you've expanded the thread already or not. PLEASE NOTE that this function
WILL NOT WORK if you have popup blocking enabled on 4chan. You can disable this 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 for each of 4chan's servers that you visit (zip, img, orz, etc).
By default, a confirmation box will display if you try to load more than 15 images. To change this limit, modify the "config_AllImagesWarning" variable below to whatever number you desire.
Clicking on an image thumbnail in a thread will expand it inline in the page, allowing you to view it without opening it in a new window. You can still click on the filename to open it as you always would have, or middle-click the thumbnail to open in a new tab just the same. This feature can be disabled in the SETTINGS area below, by changing "config_ExpandImages" to "false".
You can set the script to prompt you to return to the topic after posting by changing the "config_ReturnToTopicPrompt" variable for it below. It's now off by default, so you automatically return to the topic you just posted in.
Quick Reply is still under development, but it seems to work okay for the moment. Upon posting, you'll still return to the thread you just quick-replied to (unless you have it set to prompt you).
Version History (incomplete)
- 1.0.6.2 - 2008-07-14
- Merged all global functions into single global myFychan object (wanted it to look pretty for the UserJS competition!)
- Fixed configuration option for disabling thread borders
- Added a config option to enable/disable prompting to return to topic after posting
- Minor code cleanups, added some comments, etc
- 1.0.6.1 - 2008-06-12
- Removed use of "goto" command, which broke script in Opera 9.5
- Fixed next/previous page buttons, due to 4chan code change
- 1.0.6 beta - 2007-01-16
- Integrated topic-return functionality from a separate testbed script
- Added Quick Reply
- Made function descriptions more user-friendly
- Fixed inline image expansion to work with new address scheme (cb-nws)
- 1.0.5 - 2007-04-30
- Added Next/Prev buttons to jump between threads quickly
- 1.0.4.4 - 2007-04-24
- Added inline image expansion
- Added "All Images" function to open all images in a thread
- Added code to load default stylesheet, since it wasn't happening for some reason in Opera
- 1.0.4.3 - 2006-12-21
- Minor fix for another 4chan code change (for new ads), so that next/previous bar would work properly, as well as the topic expansions, which were broken and displaying the entire page footer
- 1.0.4.2 - 2006-10-31
- Minor fix for a 4chan code change, so that page select bar next/previous buttons work properly again
- 1.0.4.1 - 2006-07-17
- Clickable urls now direct HTTP urls instead of Javascript links
- BeforeEvent.load replaced with AfterEvent.DOMContentLoaded
- 1.0.4 - 2006-07-16
- Visual fixes for Opera 9
- Update to fix minor code change at 4chan
- 1.0.3 - 2006-06-02
- ???