Large

4-ch.net menu

By A Panda Last update Jun 9, 2008 — Installed 184 times.


Script Summary: Adds a collapsible board menu on pages on 4-ch.net. Some options are configurable in the code. When new boards are added, you will need to modify the script, or to download an update. Code granted to the public domain.

Version: 1.0 2008-06-10

Script homepage

Please note that 4-ch.net already provides a navigation frame at http://4-ch.net/4ch - this script is only useful for people who prefer not to use the frames.


Customization:
You can change var remember = false; to var remember = true; to remember the status of the menu across pages. It will probably get in your way, so it is not recommended.

You can change var defaultOpen = false; to var defaultOpen = true; to have the menu opened by default. It will definitely get in your way, so it is not recommended. If remember is set to true, defaultOpen will not be used.

If you want the button to always stay on the top-right when you scroll down, search position: absolute; and change it to position: fixed;

If the appearance of the button is DQN for you, look for var button in the code to change it.

When new boards are added, you will need to modify the script, or to download an update. Adding boards yourself is easy, so you can safely go ahead and customize the script to suit your own preferences.


Screenshot:



Known issues:
- In Greasekit (Safari), the injected CSS doesn't work. This script is just a quick hack, so I won't fix it myself, but if you know the solution, please let me know.


Discussion:
- Please use this 4-ch.net /code/ thread to discuss the script instead of the comment feature on userscripts.org. Thanks!