Yet another Danbooru script

Posted under General

I wrote a script for the new Danbooru to fix some of the current shortcomings, bring back a bit of the old UI and add a few features. It's basically an attept to increase usability while Danbooru's still a construction site and I thought I'd share.

Script here.

All features (and a screenshot) are on that site, but here’s a summary:

  • Recolour most notifications
  • Reduce the height of the notification and pool bars above images
  • Hide tag headings and other sidebar headings
  • Protect comment vote links and show comment scores
  • Add a different hotkey to create a new note
  • Change post title from tags to ID
  • Maximize page width
  • Hide footer and/or the large "Danbooru" in the upper left
  • Change spoiler text (black bars) to be displayed inline (disabled by default)
  • Disable left/right cursor hotkeys for tag/pool navigation (disabled by default)
  • Change dates from absolute ISO time to "?? ago"
  • Colorize uncommon general tags
  • Hide keyboard shortcuts hint

I'm actually not a JavaScript programmer, so constructive feedback is welcome. Please write a DMail, though, to avoid cluttering the forum.

Recent Updates:

2013-03-07
- new feature: hide the "Keyboard shortcuts available" hint
- bring back the option to hide the tag navigation because the official option vanished again
- optionally remove the other headings in the sidebar (Information, Options, History) besides the tag type headings
- removed pool bar moving because it's now an official feature

2013-03-05
- new feature: colorize uncommon general tags to quickly spot typos and misused tags
- removed tag navigation hiding because it's now an official feature

2013-03-03
- new feature: bring back the "?? ago" dates for comments and the forum
- new feature: colourise notification box of deleted posts
- fixed some tweaks not being applied after revealing hidden comments
- fixed comment hiding and showing scores not working on the comment list and search
- fixed script loggin an error on Failbooru
- removed auto-un-sample feature because I didn't encounter any broken samples for quite a while

Updated by kittey

That seems to be a side-effect of the width maximization. I don’t have a widescreen monitor, so I couldn’t test the script with wider resolutions. As you can imagine, it works fine for me. ;-)

Try to edit the “margin-left: 200px;” setting in the maximizePageWidth() function to 220px or more. Also try adding “important!”. I didn’t need it, so I left it out.

Please DMail me the results so that I can update the script. I think I’ll make the width configurable and add a note about which width is recommended for which monitor aspect ratio.

kittey said:

That seems to be a side-effect of the width maximization. I don’t have a widescreen monitor, so I couldn’t test the script with wider resolutions. As you can imagine, it works fine for me. ;-)

Try to edit the “margin-left: 200px;” setting in the maximizePageWidth() function to 220px or more. Also try adding “important!”. I didn’t need it, so I left it out.

Please DMail me the results so that I can update the script. I think I’ll make the width configurable and add a note about which width is recommended for which monitor aspect ratio.

I don't know where to edit margin-left

Action_Kamen said:
I don't know where to edit margin-left

Inside the script.

I fixed it on userscripts.org, though, so just install the newest version.

Also fixed Opera compatibility, if anyone’s so inclined.

Edit: Looks like the resize links were moved above the images officially, so that part of my script isn’t neccessary any longer. Now it’ll just be recoloured to purple.

Updated by kittey

1