[Userscript] YourBooru (feeds on the main page) [0.5.13 | 0.9.12]

Started by St@SyaN
Posted
33 replies
Login to subscribe to responses
St@SyaN's avatar
Posts: 681
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
One image is better than thousand of words to describe it so just take a look:



As safe as it can be safe:



$Possibilities:
+ you can look at 7 predefined feeds:
Hotporn 6 hours top scoring;
Fresh ponuts every day – actual porn;
Catbooru – I already said, that I was bored, did I not?;
That day in history – top score of current day in previous years;
Watch it again – randomized watch list with images created_at.lte: 1 years ago;
Upvoted – obviously, right?;
Recently uploaded – I had to hide the original image list and there is no easy way to restore it :3

+ you may use YourBooruSettings and visit your normal settings page (Since 0.5.13 YDB:S is included, so you may not to bother about it)
+ some custom tags which you can use at feeds’ query:
Marked as [#] with YDB:Tools is available everywhere
Marked as [!] requires YDB:Tools

__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_SinceLeaved — images, created after previous caching;
__ydb_SinceLeavedNoNew — same, but exclude images, created after current caching;
__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 [!];

+ if YDB:Tools installed, you may also use even more custom tags (that turns Feeds into Multiwatchlist^TM^);
+ if you created too much feeds, you may remove some from main page. There is a special Feeds page for that case;
+ add and edit feed directly from search results.


Getting the userscript (0.5.13): GitHub
Separate settings script (0.9.12, included since Feeds 0.5.13): GitHub
YDB:Tools (custom tags, multiwatchlist and some more small tweaks which vanilla booru should have, imho) Separate thread
It requires any of "monkey" plugins: Greasemonkey [(not tested)] or Tampermonkey

Suggestions and bug reports are welcome! (before bug report please update both scripts, I may fix something quiet)
Background Pony #BDB8
Very nice, though you need to modify your includes to, well, include https://derpibooru.org/ and https://trixiebooru.org/. Currently it only works if you have www.* in front of it.
Posted Report
St@SyaN's avatar
Posts: 681
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
Added caching, now everything loads way more faster (but sometimes one of default derpibooru’s script crashes if everything was cached and I have no idea why).
And for some reasons shitton of //@ include and I don’t want to mess up with homepage added separate user.js which allows you edit feeds at settings page

With this update you may edit your feeds anytime and they will never be reset after future updates/fixes.
Posted Report
St@SyaN's avatar
Posts: 681
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
Added few custom tags:
* __ydb_SinceLeaved — include images, created after previous caching;
* __ydb_SinceLeavedNoNew — … but exclude images, created after current caching.
Of course, caching interval should be large enough, otherwise you may have no time to check new images.

And from now you may use custom tags with regular tags (for example (__ydb_LastYears, twilight sparkle) || pinkie pie may return ((created_at:2016-07-09 || created_at:2015-07-09 || created_at:2014-07-09 || created_at:2013-07-09 || created_at:2012-07-09), twilight sparkle) || pinkie pie)

Settings script now can reset cache for only one feed. Since few changes in caching system, there is a small chance of having broken "Watch feed" link, so you may reset cache of only broken feed.

Posted Report
St@SyaN's avatar
Posts: 681
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

Major changes in Settings userscript:
– you may change the order every change causing page reloading, so there is also one new global small feature
– support of double-sized feeds (two lines instead of one)
Posted Report
St@SyaN's avatar
Posts: 681
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
Added new feature to settings userscript: sharing feeds. Just go to your settings and find a bunch of Share links. Just copy and paste somewhere. If person has YourBooru:Settings, script may add that feed.

So, if you have several PCs, you may just save the links to install at another browser. And sharing, of course.
Posted Report
St@SyaN's avatar
Posts: 681
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
I just found that I accidentally pasted a wrong code in settings script a few weeks ago. If you need that component, please reinstall it manually from link in the first post. Sorry :(
Posted Report
St@SyaN's avatar
Posts: 681
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
Updated to 0.3
– added custom tag __ydb_Spoilered — includes all spoilered images
– cache now can store votes

———————————

$You may want to know, what YDB:Tools does exactly? Well, look:
- custom tag aliases (e.g. "my_tag" → "tag1 && tag2 && -(tag3 || tag4)"), better described here
- multiwatchlists, better described here
- highlight image uploader and image artist in the comments (also if uploader is artist, it’s also will be highlighted)
- blocks Recent Artwork, Recent Uploads, Recent Favourites and Watched on profile page contains search parameter so you may easily navigate pictures while browsing
- autosizing these blocks to better filling [0.4.25+]
- ability to close site notifies
- [optional] expanding both search fields
- coloring tags at fancy editor
- badly written links becomes clickable, like https://derpibooru.org, https://trixiebooru.org or https://google.com
- outgoing links open in new tab
- onsite link always goes through your current domain (just like Always Your Derpibooru, but in preventing manner)
- you may write "@" instead of "artist:" like @conbudou
- while looking in gallery, you may go to search in it with correct sorting
- [optional] you may deactivate downvote to image if you upvoted it and reversal (like that) [0.4.7+]
- fixing comment button, not loses query [0.4.10+]
- ability to sort search in gallery by gallery’s order [0.4.12+]
- [optional] shrinking long posts and comments [0.4.14+]
- fancy spoilers just look at this post after you install it [0.4.15+]
- [optional] immediately hiding images [0.4.17+]
- old usernames also stored locally and appears on profile page and under user avatar [0.4.23+]
- __ydb_Unspoil metatag to remove spoilers in current query (don’t try to abuse it by sending unspoiled diapers) [0.4.24+]
- notes scratchpad in user profiles like in Discord [0.5.7+]
- contactlist [0.5.10+]
- [optional] obvious badges removing [0.5.16+]


Known bugs (aka "toDo"):
*- No bugs? 🤔
*- hide/unhide is still buggy

Settings todo:
*- Red heart
*- Switchable settings fetch
*- Link parameter support
*- Lib-based Help and API pages
*- Telemetry
*- Fieldsets
*- Library build
St@SyaN's avatar
Posts: 681
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
All that stuff updated, and some updates need explanation:
- settings userscript now may create backups of all data saved by scripts under its control on derpibooru server, so all of your settings is available on every PC you use.

Data compressed and stored in watchlist filter

Synchronization on server happens after each change of settings (sometimes it cause small popup).
Synch from server happens each 6 hours or manually.

- added option to hide feed from main page. It still available via Sub-header → Images → Feeds menu

- YDB:Tools allows you to create custom tags, which represents complex expression

If "As watchlist" checked, it adds a kinda watchlist menu on every tag

(And if synchronization enabled, switching that option will cause small popup to appear)
That tags may be used as in regular search, as in Feeds query option
Posted Report
Sff's avatar
Posts: 156
Sff
Happy Derpy!
Magnificent Metadata Maniac - #1 Assistant
Bronze Bit
Wallet After Summer Sale

What does it mean?!?
After having to clear my cookies because of recent issues with them all my feeds dissapeared, which isn’t a big deal as I managed to recreat them. What is more troublesome is that after I saved them my YDB settings look like this:

This mean that I can’t edit the feeds (excluding of course deleting everything related to ydb in the localstorage which I had to do after first saving before having added all my feeds when I first tried to restore them.)
Posted Report
Sff's avatar
Posts: 156
Sff
Happy Derpy!
Magnificent Metadata Maniac - #1 Assistant
Bronze Bit
Wallet After Summer Sale

What does it mean?!?
@St@SyaN
Before I recreated my feeds there were no feeds at all, not even the default ones. And the manual backup page leads me to a 404/schrödinger’s pony error. If you want I could send all the things related to ydb from my local/session storage.
Posted Report
St@SyaN's avatar
Posts: 681
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
@Sff
>And the manual backup page leads me to a 404/schrödinger’s pony error.
I misspelled link /)_(\. This one works /pages/yourbooru?backup. Actually, you may just send your localstorage, this is the same.

>Before I recreated my feeds there were no feeds at all, not even the default ones.
I repeated that error but I still was able to create feeds from the scratch. Something really strange happened with storage in your case…
Posted Report
Sff's avatar
Posts: 156
Sff
Happy Derpy!
Magnificent Metadata Maniac - #1 Assistant
Bronze Bit
Wallet After Summer Sale

What does it mean?!?
localStorage.ssf=’{"score":true,"random":true,"sizes":true,"comments":true,"randomButton":true,"blink":true,"override":false,"preloading":true,"scoreUp":true,"sizesUp":true,"commentsUp":true,"everyUp":true,"gallery":false}’;
localStorage.
ydb_feeds=’{"imagesInFeeds":6,"doNotRemoveWatchList":true,"doNotRemoveControls":true,"watchFeedLinkOnRightSide":true,"optimizeLS":true,"feedz":[{"name":"Recently Uploaded","sort":"created_at","sd":"desc","cache":0,"ccache":0,"double":true,"mainPage":true,"query":"*","loaded":true,"url":{},"container":{},"temp":{},"reload":{},"internalId":0,"saved":25271485,"responsed":6},{"name":"Hot","sort":"score","sd":"desc","cache":5,"ccache":null,"double":true,"mainPage":true,"query":"first_seen_at.gt:1 days ago","loaded":true,"url":{},"container":{},"temp":{},"reload":{},"internalId":1,"saved":25271485,"responsed":6},{"name":"This Day In History","sort":"score","sd":"desc","cache":0,"ccache":1440,"double":true,"mainPage":true,"query":"__ydb_LastYears","loaded":true,"url":{},"container":{},"temp":{},"reload":{},"internalId":2,"saved":25271485,"responsed":6},{"name":"Old Faves","sort":"random","sd":"desc","cache":5,"ccache":null,"double":true,"mainPage":true,"query":"my:faves, first_seen_at.lt:6 months ago","loaded":true,"url":{},"container":{},"temp":{},"reload":{},"internalId":3,"saved":25271485,"responsed":6},{"name":"Random Featured Images","sort":"random","sd":"desc","cache":5,"ccache":null,"double":true,"mainPage":true,"query":"featured image","loaded":true,"url":{},"container":{},"temp":{},"reload":{},"internalId":4,"saved":25271485,"responsed":6}],"hasWatchList":false}’;
localStorage._ydb_fs=’{"extended":true,"scrollSpeed":20,"scrollMultiply":5,"staticTime":20,"staticEnabled":true,"commentLink":true,"colorAccent":false,"style":"rating","button":"Download this image at full res with a short filename"}’;

Here’s the backup info.
Posted Report
St@SyaN's avatar
Posts: 681
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
@Sff
Just copied, everything loaded just fine.

Check, if both scripts have last version (should be 0.4.12 and 0.7.1)
If error is still present, press F12 and show, what’s in the console.
Posted Report
Interested in advertising on Derpibooru? Click here for information!
Pony Palace, a Pony community that offers roleplay, games, voice chat, music, Art, etc. We are active and we appreciate having you. SFW and NSFW.

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~