Danbooru

[Userscript] Danbooru EX

Posted under General

Little issue I've noticed: when I click "View all comments" on a post, the comment IDs disappear and it goes back to the normal layout rather than the EX layout.
Also slightly related, would it be possible to display a comment's score too?

New release:

https://github.com/evazion/danbooru-ex/raw/stable/danbooru.user.js

New features
Color code tags everywhere
  • Normally only tags on posts and comments are color coded, not tags in DText links (e.g. touhou, hatsune miku). This colorizes tags (almost) everywhere.
  • In the wiki, this is good for spotting tags with the wrong type. Particularly useful on list_of_* character pages.
  • Also good for spotting dead links; typos in tags, links to wiki pages that don't exist, links to tags that were aliased.
  • On the forum, it's nice for picking out tags in tag discussions.
Add tooltips to tags showing post count and creation date
  • Hover over a tag to see that tag's post count and creation date.
  • Good for quickly checking tags to see whether they're new or old, or whether they have many posts or not.
  • Kinda fun in general to see how old tags are.
Show comment scores
Make 'E' open the edit page on /artists/123 and /pools/123
  • Note that on wiki pages you can already do this.
Make Ctrl+left click open thumbnails when tag scripting.
  • Middle click works too.
Known issues
  • The flicker when stuff is added to the page is annoying. Especially with the search bar.
  • Tag creation dates in tooltips aren't correct for tags older than Feb. 2013. Don't know why. EDIT: oh right, that was the Danbooru 2 upgrade.
  • Tag tooltips only work on tags linking to the wiki. Not on links to searches, and not in tag lists on posts or comments.
  • Links to nonexistent tags don't get colorized or get tooltips. This includes empty aliased tags.
  • Tags on posts and comments don't get tooltips.
  • Tags in DText previews aren't colorized and don't get tooltips.
  • Autocomplete in the search bar still doesn't work.
  • The header collapse buttons in the wiki are a little annoying, they stand out too much.
  • On the wiki, collapsing a heading uncollapses lower level headings if they're already collapsed.

@reiyasona: Added ctrl+left click. On posts the mode menu / tag scripts are temp disabled because of hotkey conflicts - on posts 'V' is toggle sample/full size but in my userscript 'V' is switching the mode menu to View mode. It's on my todo list though, I want to be able to tag script parent/child thumbnails.

@Flandre5carlet: Fixed the "View all comments" and added comment scores.

I haven't tested compatibility with other userscripts yet. It's very likely there will be clashes. Once this gets more stabilized I'll see what I can do to play nicely with other scripts.

@RaisingK: Would you happen to be the author of Miscellaneous Tweaks? Just curious who wrote it.

Updated

Thought so, but I got confused, it's posted under another name on sleazyfork so I wasn't sure if I was misremembering things or not.

Looks like there are multiple things your script does already - adding comment scores, putting the search box in the navbar, and fixing timestamps. Those conflict, but the rest seems to work, at least as far as I've tested. Let me know if there are other conflicts. I want to try to keep my script compatible with yours so people are able to run both together.

(PS: the settings page on your script still links to greasyfork instead of sleazyfork).

It would be nice to be able to read and if necessary respond to new DMail from the page I'm currently on. Otherwise, I usually have to open a new tab and spend time navigating to the Dmail. If it's a comment/forum mention, I have to spend even more time opening a new tab and then navigating to where I'm mentioned.

So...

  • Read and respond to real Dmails
  • Supply links to Posts/Forum Topics for mentions

Unfortunately, mentions don't include comment# or forum#, so they can't be directly linked to... :(

This is a low priority item though, especially if the difficulty is high...

tapnek: I doubt either of us (me or RaisingK) would want to do that. I'm sure we'd both rather do things our in own way.

BrokenEagle98: I'll add that to my list. The inconvenience of dealing with Dmails annoys me too - especially the huge obnoxious "You have unread messages (and no I won't tell you what they are)" notice. I have a pretty big list of "dumb UI decisions that annoy me" that I'm trying to slowly work through.

As a disclaimer, my screen is only 1024 wide....

Bugs:
  • Have to reduce zoom to 90% to view sticky mode properly (the bar at the top)
    • Same with tag script entry
  • Main mode switcher (above the tags) is disabled, but there are no signs of this (besides it just not working)
  • Interferes with Mini Mode (https://img42.com/9Hpbt) - To see it, reduce the width of the window until it looks like the supplied picture
  • Existing table of contents (e.g. Girls und Panzer, List of Ground Vehicles)
  • Interferes with reverse links (Same wikis as the above... seems to be an issue with having # type links on the same line as headers)
  • Alignment issues ; headers, list elements have same alignment (too much indentation with the collapsible headers)
  • Thumbnails not really needed when "search[post_id]=" (shows the same thumbnail over and over)
Feature Requests
  • Settings menu to enable/disable different settings

Updated

Duly noted, thanks for the report. A couple of these were already known to me. I hope to work through my bug list and make a new release in the next few days.

Regarding settings, to start with I'll probably just put some variables at the top of the script to turn things on or off. I'll probably add a settings menu eventually but I want to keep configuration as simple as possible. I feel like if a feature is annoying, it's be better to either rework it or take it out completely than make people fiddle with settings.

Anyway I have a few new features in my development branch: https://github.com/evazion/danbooru-ex/raw/master/danbooru.user.js

  • On the /comments page, list each post's filesize, resolution, and number of favorites. I'm thinking of adding pools to this too.
  • In tag lists on posts and in comments, list artist tags first. Makes tag lists easier to read when the artist tag is at the front of the list.
  • In tag lists on posts, include a tag count next to headers. This lets you tell how many general tags a post has.
  • Style banned usernames in black and underlined. This makes it easier to skim /users and check that all of a person's sockpuppets are banned.
  • Style Member-level approver names with an underline.
Bugs (ver. 352):
  • Comments page
    • File link under filesize is the sample image instead of the original image (should use "data-file-url" instead of "data-large-file-url")
    • Yeah, I know, it's counter-intuitive... you'd think the large would be the original image but it's not ... :(
  • Banned usernames doesn't style under the /users listing
  • The member-level approver underline clashes with styling as supplied in the Custom CSS thread for user permissions: http://danbooru.donmai.us/forum_topics/9662?page=3#forum_post_108909
  • Feature Request
    • Highlight super voters in some fashion

Pushed v354: https://github.com/evazion/danbooru-ex/raw/master/danbooru.user.js

> File link under filesize is the sample image instead of the original image

Derp. Good catch.

> Banned usernames doesn't style under the /users listing

Fixed. I do one big call to /users.json with every user ID on the page and I forgot to include limit=1000.

> The member-level approver underline clashes with styling as supplied in the Custom CSS thread for user permissions

Hmm. I may just remove this since it can be accomplished with existing CSS.

> Highlight super voters in some fashion

Not sure what would be a good fashion that wouldn't conflict with other things. You could do this:

a.with-style.user-super-voter {
    font-style: italic;
}

...but that italicizes admins too, which IMO is annoying.

1 2 3 4 5 6 7