stsyn
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":https://github.com/stsyn/derpibooruscripts/raw/master/YouBooru/YouBooruTools.user.js
Most features requires YouBooru:Settings, which probably will work even if you don't install it, but still: "GitHub":https://github.com/stsyn/derpibooruscripts/raw/master/YouBooru/YouBooruSettings.user.js
Works with YouBooru:Feeds: "Forum thread":/forums/meta/topics/userscript-youbooru-feeds-on-main-page
"*Tweak CSP to make it work*":/meta/userscripts-customization/post/4353287#post_4353287
Requires any of "monkey" plugins: "Greasemonkey":https://addons.mozilla.org/ru/firefox/addon/greasemonkey/ "Tampermonkey":https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=ru
Huge detailed and probably incomplete manual:
+$Images and search related+ [bq]
+$Custom tags aliases+[bq]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.
!https://pp.userapi.com/c834103/v834103736/122f4a/n_phPsNEHaw.jpg![/bq]
+$Multiwatchlists+[bq]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.
!https://pp.userapi.com/c845418/v845418736/3a925/72RnyUyqBC8.jpg![/bq]
+$YDB tags+[bq]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.
!https://pp.userapi.com/c831508/v831508736/eb120/euLrZ5o5f8k.jpg![/bq]
+$@artist+[bq]Allows you to write @[==@artistname==]@ instead of @artist:artistname@.
!https://pp.userapi.com/c845216/v845216136/39c27/w2plyR99B_w.jpg![/bq]
+$Colored tags editor+[bq]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.
!https://pp.userapi.com/c830208/v830208736/e6af5/o7s1t9LhWaU.jpg![/bq]
+$Immediate image hiding+[bq]Replaces image with filler right in the moment when you clicked "Hide".
Enabled by default, use YDB:Settings to disable, supports YDB:Feeds.
!https://pp.userapi.com/c844723/v844723736/394b0/F4BUyECnx0U.jpg![/bq]
+$Hiding downvote if upvoted+[bq]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.
!https://pp.userapi.com/c840423/v840423086/4a984/yoF8LLIc5MM.jpg![/bq]
+$Galleries things+[bq]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.
!https://sun9-6.userapi.com/c840624/v840624136/7b29f/v4MiB1o-AmE.jpg![/bq]
+$Similar images+[bq]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.[/bq] [/bq]
+$User related+ [bq]
+$Showing all old names+[bq]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.
!https://pp.userapi.com/c840329/v840329736/7c43e/yvVOufyXHFs.jpg![/bq]
+$Highlighting uploader and artists in comments+[bq]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.
!https://pp.userapi.com/c846220/v846220082/eee57/TvJfDJu7gMQ.jpg![/bq]
+$Personal scratchpads+[bq]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.
!https://pp.userapi.com/c840328/v840328736/7f68d/hJ1jRNeCcMI.jpg![/bq]
+$Contact list+[bq]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).
!https://pp.userapi.com/c845123/v845123736/3c2fc/8bFDl2fS94k.jpg![/bq]
+$Cutting down obvious badges+[bq]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.
!https://pp.userapi.com/c824701/v824701136/11a024/QMzw4f5BOvA.jpg!
!https://pp.userapi.com/c845217/v845217136/39191/jb3w9EYiMU8.jpg![/bq] [/bq]
+$Site UI related+ [bq]
+$Site notifies+[bq]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.[/bq]
+$Notifications+[bq]Allows to immediately read all notification or all notifications about merging images. No idea, how it will work with pagination.
!https://pp.userapi.com/c831308/v831308017/e32dd/0_1YkhLW5Ds.jpg![/bq]
+$Link fixes in profile art blocks+[bq]Recent Artwork, Uploads, Favourites and Watched (from main page) will have correct search parameter (while normal DB lacks in it) allows you navigate directly.[/bq]
+$Expanding profile art blocks+[bq]Because orignal ones feel weird because of using ~70-80% of width.
!https://pp.userapi.com/c841325/v841325136/89759/XZmfhntl9oY.jpg![/bq]
+$Expanding search fields+[bq]Making them multiline. Top one expands on hover.
Enabled by default, use YDB:Settings to disable, use "SSF":/meta/userscript-search-sorting-fixer-003 to make top search more powerful.
!https://sun9-2.userapi.com/c840633/v840633136/77592/izqHquRuIQU.jpg!
!https://pp.userapi.com/c831508/v831508736/eb120/euLrZ5o5f8k.jpg![/bq]
+$Reverting back page headers+[bq]Just because I don't like how new one handles long text.
Enabled by default, use YDB:Settings to disable.
!https://sun9-2.userapi.com/c840633/v840633136/77592/izqHquRuIQU.jpg![/bq]
+$Fixing comments link+[bq]Because right now #comments link goes without search parameters.[/bq]
+$Custom spoilers+[bq]Allows to determine custom spoiler images. See "#post_3824607":#post_3824607 for details.
!https://cdn.discordapp.com/attachments/438412674326331432/453603629023232010/unknown.png![/bq]
+$Shortcuts+[bq]Allows to determine custom dropdown menu in subheader.
!https://pp.userapi.com/c845524/v845524038/1d3fa7/vxCA3HEy8T0.jpg![/bq]
[/bq]
+$Comments and Forum related+
[bq] +$Clickable spoilers+[bq]You probably want to know, why each underlined text starts with $.
Works also with [==[spoiler]==] tag.
!https://pp.userapi.com/c834203/v834203136/123dc5/OpUhpim-gKU.jpg![/bq]
+$Shrinking long posts and comments+[bq]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.
!https://pp.userapi.com/c824501/v824501136/12003e/qKBCj5ZQMrs.jpg![/bq]
+$Clickable links+[bq]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.
!https://pp.userapi.com/c824410/v824410136/122d30/As5zn8yz7FA.jpg![/bq]
+$Same domain links+[bq]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).[/bq]
+$Outside links+[bq]All third party links now opens in new tab. There is "nofollow noreferrer" parameter, don't worry.[/bq]
+$Greentext+[bq]>User was banned for adding that feature
Disabled by default, use YDB:Settings to enable.[/bq] [/bq]
Get it there "GitHub":https://github.com/stsyn/derpibooruscripts/raw/master/YouBooru/YouBooruTools.user.js
Most features requires YouBooru:Settings, which probably will work even if you don't install it, but still: "GitHub":https://github.com/stsyn/derpibooruscripts/raw/master/YouBooru/YouBooruSettings.user.js
Works with YouBooru:Feeds: "Forum thread":/forums/meta/topics/userscript-youbooru-feeds-on-main-page
"*Tweak CSP to make it work*":/meta/userscripts-customization/post/4353287#post_4353287
Requires any of "monkey" plugins: "Greasemonkey":https://addons.mozilla.org/ru/firefox/addon/greasemonkey/ "Tampermonkey":https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=ru
Huge detailed and probably incomplete manual:
+$Images and search related+ [bq]
+$Custom tags aliases+[bq]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.
!https://pp.userapi.com/c834103/v834103736/122f4a/n_phPsNEHaw.jpg![/bq]
+$Multiwatchlists+[bq]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.
!https://pp.userapi.com/c845418/v845418736/3a925/72RnyUyqBC8.jpg![/bq]
+$YDB tags+[bq]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.
!https://pp.userapi.com/c831508/v831508736/eb120/euLrZ5o5f8k.jpg![/bq]
+$@artist+[bq]Allows you to write @[==@artistname==]@ instead of @artist:artistname@.
!https://pp.userapi.com/c845216/v845216136/39c27/w2plyR99B_w.jpg![/bq]
+$Colored tags editor+[bq]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.
!https://pp.userapi.com/c830208/v830208736/e6af5/o7s1t9LhWaU.jpg![/bq]
+$Immediate image hiding+[bq]Replaces image with filler right in the moment when you clicked "Hide".
Enabled by default, use YDB:Settings to disable, supports YDB:Feeds.
!https://pp.userapi.com/c844723/v844723736/394b0/F4BUyECnx0U.jpg![/bq]
+$Hiding downvote if upvoted+[bq]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.
!https://pp.userapi.com/c840423/v840423086/4a984/yoF8LLIc5MM.jpg![/bq]
+$Galleries things+[bq]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.
!https://sun9-6.userapi.com/c840624/v840624136/7b29f/v4MiB1o-AmE.jpg![/bq]
+$Similar images+[bq]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.[/bq] [/bq]
+$User related+ [bq]
+$Showing all old names+[bq]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.
!https://pp.userapi.com/c840329/v840329736/7c43e/yvVOufyXHFs.jpg![/bq]
+$Highlighting uploader and artists in comments+[bq]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.
!https://pp.userapi.com/c846220/v846220082/eee57/TvJfDJu7gMQ.jpg![/bq]
+$Personal scratchpads+[bq]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.
!https://pp.userapi.com/c840328/v840328736/7f68d/hJ1jRNeCcMI.jpg![/bq]
+$Contact list+[bq]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).
!https://pp.userapi.com/c845123/v845123736/3c2fc/8bFDl2fS94k.jpg![/bq]
+$Cutting down obvious badges+[bq]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.
!https://pp.userapi.com/c824701/v824701136/11a024/QMzw4f5BOvA.jpg!
!https://pp.userapi.com/c845217/v845217136/39191/jb3w9EYiMU8.jpg![/bq] [/bq]
+$Site UI related+ [bq]
+$Site notifies+[bq]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.[/bq]
+$Notifications+[bq]Allows to immediately read all notification or all notifications about merging images. No idea, how it will work with pagination.
!https://pp.userapi.com/c831308/v831308017/e32dd/0_1YkhLW5Ds.jpg![/bq]
+$Link fixes in profile art blocks+[bq]Recent Artwork, Uploads, Favourites and Watched (from main page) will have correct search parameter (while normal DB lacks in it) allows you navigate directly.[/bq]
+$Expanding profile art blocks+[bq]Because orignal ones feel weird because of using ~70-80% of width.
!https://pp.userapi.com/c841325/v841325136/89759/XZmfhntl9oY.jpg![/bq]
+$Expanding search fields+[bq]Making them multiline. Top one expands on hover.
Enabled by default, use YDB:Settings to disable, use "SSF":/meta/userscript-search-sorting-fixer-003 to make top search more powerful.
!https://sun9-2.userapi.com/c840633/v840633136/77592/izqHquRuIQU.jpg!
!https://pp.userapi.com/c831508/v831508736/eb120/euLrZ5o5f8k.jpg![/bq]
+$Reverting back page headers+[bq]Just because I don't like how new one handles long text.
Enabled by default, use YDB:Settings to disable.
!https://sun9-2.userapi.com/c840633/v840633136/77592/izqHquRuIQU.jpg![/bq]
+$Fixing comments link+[bq]Because right now #comments link goes without search parameters.[/bq]
+$Custom spoilers+[bq]Allows to determine custom spoiler images. See "#post_3824607":#post_3824607 for details.
!https://cdn.discordapp.com/attachments/438412674326331432/453603629023232010/unknown.png![/bq]
+$Shortcuts+[bq]Allows to determine custom dropdown menu in subheader.
!https://pp.userapi.com/c845524/v845524038/1d3fa7/vxCA3HEy8T0.jpg![/bq]
[/bq]
+$Comments and Forum related+
[bq] +$Clickable spoilers+[bq]You probably want to know, why each underlined text starts with $.
Works also with [==[spoiler]==] tag.
!https://pp.userapi.com/c834203/v834203136/123dc5/OpUhpim-gKU.jpg![/bq]
+$Shrinking long posts and comments+[bq]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.
!https://pp.userapi.com/c824501/v824501136/12003e/qKBCj5ZQMrs.jpg![/bq]
+$Clickable links+[bq]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.
!https://pp.userapi.com/c824410/v824410136/122d30/As5zn8yz7FA.jpg![/bq]
+$Same domain links+[bq]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).[/bq]
+$Outside links+[bq]All third party links now opens in new tab. There is "nofollow noreferrer" parameter, don't worry.[/bq]
+$Greentext+[bq]>User was banned for adding that feature
Disabled by default, use YDB:Settings to enable.[/bq] [/bq]