|
Script Summary:
Adds over a dozen useful tweaks to Danbooru, each of which can be easily disabled. |
this script has 1 topic, 2 posts |
This script has no reviews. |
Changes:
- Header links: Upload, IQDB (image search), Trac
- Subheader links: Popular by Day/Week/Month, Posts (for pools)
- A tag search box whenever one is not already present
- Default order for Tags changed from date to count
- The +/- links next to each tag on a post page (if you're privileged, etc...) now add or remove their tag from the search box without launching a new search. Tags can't be added more than once.
- Some metatags at the bottom of tag lists (other metatags can be easily added). The +/- links are supplied for these.
- A blacklist implementation that replaces images with links labeled with the first blacklisted tag they matched. Clicking on the link hides the link and displays the image/thumbnail and visa versa. No modification is needed to the Show Child Thumbnail and Endless scripts.
- Navigate to next and previous pages of anything that has those using the left/right arrow keys; if there is a paginator, the list will wrap around. By default, this is only enabled for pool and Popular By pages so as to not interfere with the Endless/Unlimited scripts, but the rest can be turned on by modifying the function call.
- Switch between the Safebooru and Danbooru versions of a page with Ctrl+X ('x' can be changed in the source).
- Images' scores and/or favorite counts are listed below their thumbnails.
- Change a custom set of tags in the tag sidebar to whatever color you want. By default, set to the translation tags, colored black, and disabled. Modify source to turn back on.
- Pool navbar gets a link to a tag search for members of that pool.
- Source stat linkified, with the names of pixiv links displayed differently ("(pixiv) /[artist identifier]/").
- Automatic "Find artist" and source queries on unattributed posts, with the results displayed below the source.
Each change has its own clear section in the code, so any can be easily disabled.
See source code for additional options/documentation.
These tweaks are compatible with the following scripts (when applicable):
- Danbooru Show Child Thumbnails
- Endless Danbooru Comments
- Endless Danbooru Pages
- Unlimited Paginator Works
Score now displays properly for blacklisted images created by the Thumbnails script.
Plus, various minor revisions, mostly related to maintaining proper variable scope (which was suddenly breaking the "find artists" function).
Fixed score/favcount function to work with the Danbooru Show Child Thumbnails script again.
Favorite counts are now appended below thumbnails, next to the score. Since separate queries must be made for each image, there is a slight delay before these appear. Score and favorite count can be turned off individually.
Custom tag coloring now applies to everywhere the default tag types are colored.
Arrow key navigation for the Popular By pages is now enabled by default (previously only enabled for pool pages). As always, the other pages can be enabled by modifying the regex parameter to something like /./.
When findLostArtists triggers, the page scrolls to Statistics rather than by a set amount. The offset parameter is now a boolean that turns this scrolling on/off.
The blacklist bug appears to be fixed already, so I've removed the fix from last time.
The amount the page scrolls down when findLostArtists triggers is now a parameter.
All thumbnails hidden by Danbooru's blacklist are now shown, as a workaround to an annoying bug that hides thumbnails that appear more than once on a page (which can occur on user pages).
All tweaks are now functions, with their calls all at the top of the script for easy enabling/disabling. Several also take parameters for easier customization.
Revised documentation.
Modified code to work with my new Unlimited Paginator Works script.
If a post has a source URL but no artist tags, a "Find artist" query is automatically run, with the first few results shown below the Source stat. Clicking on one of the results will open the edit box and add the tag; clicking the tag again will remove it. If there is more than one result, the number of other posts with that source is also displayed.
Linkified the "source" stat, and changed how pixiv sources are displayed (now as "(pixiv) /[artist identifier]/").
Fixed a bug in the blacklist that would hide translation notes if one was also using the Show Child Thumbnails script and a child post matched the blacklist.
Added a Posts link in the pool navbar in posts that runs a tag search for posts in that pool.
Threw in the ability to change a set of tags to whatever color you want, but left it disabled because I don't use it. Remove the "/*" and "*/" around the relevant section to turn it on; changing the tags and color should be obvious.
A slight Danbooru change broke arrow navigation for pools again. Unbroken now.
Danbooru changed how pool history works, so my "color-coded history" no longer applies. Removed.
Added the new metatags for tag-type counts to the list. Having them call up prompts for values when clicked (and modifying the +/- functionality accordingly) was too troublesome, so I settled for default values like I did with the score metatag. The "?" links for the metatags now point to the Danbooru cheat sheet.
Images' scores are now listed below their thumbnails.
The blacklist script now works without any need to modify the Endless and Show Child Thumbnails scripts. Undo the formerly-required modifications to those before using this version.
Fixed arrow key navigation for pool posts to work with the new style of pool notice.
Pool history is now color-coded and linked. Additions = green, deletions = red+strikethrough, reordering = purple. Because the script hangs on very large pools/histories, a timeout is built in. Default is 1 second, but this can be changed in the source.
Added a Posts link to pool pages in the subnavbar that runs a tag search for posts in that pool.
Fixed +/- code so that it includes "Subscribed Tags".
Fixed a bug where the lack of a subnavbar on the new random post page caused the code to halt early.
Arrow key navigation no longer triggers when a text or input field has focus.
Translation notes for images hidden by the blacklist now toggle on and off with the image: link -> image w/ notes -> link -> image w/o notes.
Added a check to the +/- code so it won't break for regular users before it gets to the added metatags... probably.
Changed include statements to prevent it from triggering in the image search with images already hosted by Danbooru.
Rewrote the +/- code and cleaned up a little elsewhere; functionality remains the same.
Switching pages with the arrow keys now works with the popular by day/week/month pages and member posts of pools.
Switch between Safebooru and Danbooru versions of a page with Ctrl+X. This is particularly useful for the popular pages.
This script now triggers for both Danbooru and Safebooru.
Added navigating pages with left/right arrow keys (wraps around). Since I use the Endless scripts, comment and post pages are ignored.
Also added a link to the Trac in the navbar.
Cleaned up a bunch of the coding, now that I have a better idea of what I'm doing.
Added Popular By Day/Week/Month links to the beginning of the subnavbar.
Made the blacklist system far more complicated. Blacklisted items now alternate between the link and the original image/thumbnail when you click on them. See its section in the source for more info and easy instructions on how to add it to the other Danbooru scripts.
Added some metatags to the tag list, wherever it appears. More metatags can be added easily by copying the template.
Fixed bug where " in the tag would break the +/- code.
Added +/- link change.
Avoiding brute force document.body.innerHTML replacing so the script doesn't break the translation notes, among other things. Also added a few other minor features. Custom blacklist made because I didn't like how Danbooru handled it last time I checked; just modify the "var blacklist" line at the top of the script. Though using this means you also have to customize the Endless scripts so that this blacklist applies to the additional posts.





