Happy Birthday, MLP:FiM! MLP:FiM turns 9 years old this year! Let's celebrate with an art event!

[Userscript] YouBooru:Tools [0.8.0] (everything what you ever imagined and even more)

Started by St@SyaN
Posted
5 replies
Login to subscribe to responses
St@SyaN's avatar
Posts: 694
St@SyaN
Artist
Perfect Pony Plot Provider - Uploader of 10+ images with 350 upvotes or more (Questionable/Explicit)
Birthday Cake - Celebrated MLP's 7th birthday
Magnificent Metadata Maniac
Equality - In our state, we do not stand out.
The Power of Love - Given to a publicly verified artist with an image under their artist’s tag that has reached 1000 upvotes
Cool Crow - "Caw!" An awesome tagger
Economist
Fine Arts - Two hundred uploads with a score of over a hundred (Safe/Suggestive)
Best Artist - Providing quality, Derpibooru-exclusive artwork

Site Moderator
This is not how userscripts should be done. But I didn’t expect that thing, which was started 6 month ago as simple function tool, will became a huge handyman (tbh, 20 small scripts is even worse). About 80% of everything here probably most of us want to see on Derpibooru without userscripts.

Get it there GitHub
Most features requires YouBooru:Settings, which probably will work even if you don’t install it, but still: GitHub
Works with YouBooru:Feeds: Forum thread

Tweak CSP to make it work

Requires any of "monkey" plugins: Greasemonkey Tampermonkey

Huge detailed and probably incomplete manual:

$Images and search related
$Custom tags aliases
Allows you to define custom tags which represents complex expression. Overrides normal tags. Replacing is recursive. Works only with normal search (not in watchlist, filters, tag editors). "Do not pare page name" option will show in page header actual search string (not what you entered), mostly only for debug purposes.
Requires YDB:Settings to configure, supports YDB:Feeds.

$Multiwatchlists
Each tag has option "As watchlist". If checked, tag name will appears in dropdown for each normal tag and it will work as "Watch/Unwatch". All tags in that tags expression will be separated by ||. If tag expression was edited manually (not watch/unwatch) or checked "As watchlist", all components will be checked for actual aliases and existence. For stability reasons do not manually edit more than 1 tag at once.
Requires YDB:Settings to configure, supports YDB:Feeds.

$YDB tags
Custom YDB tags from YDB:Feeds also supported.
__ydb_LastYears:X — images uploaded at that day in past years. :X works as in __ydb_DaysAgo;
__ydb_LastYearsAlt:X — same but uses "first_seen_at" instead of "created_at". :X works as in __ydb_DaysAgo;
__ydb_Spoilered — includes all your spoilered images;
__ydb_Unspoil — metatag, all spoilers will be removed if tag exist in query;
__ydb_Yesterday — uploaded yesterday;
__ydb_DaysAgo:X — uploaded X days ago
For __ydb_Unspoil YDB:Settings is strongly recommended.
There is a dropdown for easy typing.

$@artist
Allows you to write @artistname instead of artist:artistname.

$Colored tags editor
Makes tags in fancy tag editor looks like… like tags… Pfft, just look at the screenshot. Character and episodes tags may be uncolored since it uses handcrafted database.

$Immediate image hiding
Replaces image with filler right in the moment when you clicked "Hide".
Enabled by default, use YDB:Settings to disable, supports YDB:Feeds.

$Hiding downvote if upvoted
Hides "downvote" and "hide" buttons if you clicked "fave" or "upvote" and vice versa mostly to evade missclicking downvoting upvoted images. Keyboard shortcuts still works, though.
Disabled by default, use YDB:Settings to enable, supports YDB:Feeds.

$Galleries things
If you browse the gallery, you may instanly open it in search.
While in search, you may use gallery sorting (if it possible).
Also it’s the only way to add feed with gallery sorting.

$Similar images
Added ability to override site’s related images page with a bit rougher but limitless search expression.
Disabled by default, use YDB:Settings to enable.


$User related
$Showing all old names
In comment sections and forum post "AKA %old names%" will appear even if 14 days of showing old name is expired. All data is collected by parsing "previously known as" appendix, and doesn’t backup cloudly even if you have installed YDB:Settings with this option enabled.
Cannot be disabled right now because it hardcoded into userbase thingie, used by some functions, and you probably don’t want some parts of data be lost by renaming.

$Highlighting uploader and artists in comments
In comment section uploader will be showed with "(OP)" and artists will have green background behind their name. Based on parsing artist tag info, parsing is limited by 5 unknown artists (uses userbase as cache).
Since 0.5.42 editors and since 0.5.43 also colorists highlighting with orange color.

$Personal scratchpads
Adds input area to profile page, just like in Discord. Content may be revealed by hovering profile link in comments/posts. No chars limit, just don’t put War and Peace here.

$Contact list
Replaces "Messages" link in dropdown profile menu with "Contacts" where … you can see your contacts. There is also a link in profile "Add to contacts". Also shows first 100 chars from scratchpad (or until first linebreak).

$Cutting down obvious badges
If you see "Really classy artist" badge, "Artist" badge will give you no additional info, won’t it? Screenshots before and after.
2/3 enabled by default (doesn’t hide same level donation based badges), use YDB:Settings to configure.



$Site UI related
$Site notifies
Notifies as news may be closed. There is also an option to close all notifies automatically (you will be warned). If you accidentally closed one you intrested, there is "Reset" option. Check it once and save.
Requires YDB:Settings to configure.

$Notifications
Allows to immediately read all notification or all notifications about merging images. No idea, how it will work with pagination.

$Link fixes in profile art blocks
Recent Artwork, Uploads, Favourites and Watched (from main page) will have correct search parameter (while normal DB lacks in it) allows you navigate directly.

$Expanding profile art blocks
Because orignal ones feel weird because of using ~70-80% of width.

$Expanding search fields
Making them multiline. Top one expands on hover.
Enabled by default, use YDB:Settings to disable, use SSF to make top search more powerful.


$Reverting back page headers
Just because I don’t like how new one handles long text.
Enabled by default, use YDB:Settings to disable.

$Fixing comments link
Because right now #comments link goes without search parameters.

$Custom spoilers
Allows to determine custom spoiler images. See #post_3824607 for details.

$Shortcuts
Allows to determine custom dropdown menu in subheader.


$Comments and Forum related
$Clickable spoilers
You probably want to know, why each underlined text starts with $.
Works also with [spoiler] tag.

$Shrinking long posts and comments
If post is longer than you specified, it will be cut down. If you want to disable it, just write absurdly large value in settings.
Enabled by default, use YDB:Settings to configure.

$Clickable links
Makes links like https://derpibooru.org/, https://google.com/, https://www.trixiebooru.org/search?q=first_seen_at.gt%3A3+days+ago&sd=desc&sf=score clickable.

$Same domain links
All links, goes to different derpi domain, now will lead you to current one. Just like "Always Your Derpibooru" but in preventing manner (since my ISP blocks 50% domains of booru and script cannot load).

$Outside links
All third party links now opens in new tab. There is "nofollow noreferrer" parameter, don’t worry.

$Greentext
>User was banned for adding that feature
Disabled by default, use YDB:Settings to enable.
Binkyt11's avatar
Posts: 5683
Binkyt11
Artist
Friendship, Art, and Magic (5 Years) - Celebrated Derpibooru's five year anniversary with friends.
Not a Llama - Happy April Fools Day!
An Artist Who Rocks - 100+ images under their artist tag
Magical Inkwell - Wrote MLP fanfiction consisting of at least around 1.5k words, and has a verified link to the platform of their choice
A Really Classy Artist - 250+ images under their artist tag
Birthday Cake - Celebrated MLP's 7th birthday
Best Artist - Providing quality, Derpibooru-exclusive artwork
A Really Hyper Artist - 500+ images under their artist tag
Helpful Owl - Drew someone's OC for the 2018 Community Collab
Friendship, Art, and Magic (6 Years) - Celebrated Derpibooru's six year anniversary with friends.
Equality - In our state, we do not stand out.
Magnificent Metadata Maniac - #1 Assistant
Notoriously Divine Tagger - Consistently uploads images above and beyond the minimum tag requirements. And/or additionally, bringing over the original description from the source if the image has one. Does NOT apply to the uploader adding several to a dozen tags after originally uploading with minimum to bare tagging.
A Tale For The Ages - Celebrated MLP's 35th Anniversary and FiM's 8th Anniversary
Friendship, Art, and Magic (7 Years) - Celebrated Derpibooru's seventh year anniversary with friends
Wallet After Summer Sale
Toola Roola - For helping others attend the 2019 Community Collab

The Dorkiest Raymain
This looks fucking rad man. Keep it up! :D Also I’m glad to see the hidden image spoilered image being put to use here! Means a lot!
Posted Report
St@SyaN's avatar
Posts: 694
St@SyaN
Artist
Perfect Pony Plot Provider - Uploader of 10+ images with 350 upvotes or more (Questionable/Explicit)
Birthday Cake - Celebrated MLP's 7th birthday
Magnificent Metadata Maniac
Equality - In our state, we do not stand out.
The Power of Love - Given to a publicly verified artist with an image under their artist’s tag that has reached 1000 upvotes
Cool Crow - "Caw!" An awesome tagger
Economist
Fine Arts - Two hundred uploads with a score of over a hundred (Safe/Suggestive)
Best Artist - Providing quality, Derpibooru-exclusive artwork

Site Moderator
Relatively big update:
fixed comments image preview;
— implemented groups in contact list;
— for group "Friends" there are highlights in "List favorites" tab under each image ("X, Y and Z more your friends faved this image");
— "Created by …" line around "Uploaded by…" if there is an artist profile with verified link. Fetching commission status at the same time, but it’s heavily cached (2 weeks);
— almost a year passed, "Read merging" at notifies works again;
— some internal optimizations and bug fixes.

Interested in advertising on Derpibooru? Click here for information!
Sky Railroad Shop

Derpibooru costs over $25 a day to operate - help support us financially!

Syntax quick reference: *bold* _italic_ [spoiler]hide text[/spoiler] @code@ +underline+ -strike- ^sup^ ~sub~