Database dump survey Developers interested in regular site data dumps, please respond here

Userscripts / Customization

Started by ArmadilloEater
Posted
43 replies
Login to subscribe to responses
ArmadilloEater's avatar
Posts: 1936
ArmadilloEater
A Perfectly Normal Pony - My goal in life is to fuck a bagel now.
Perfect Pony Plot Provider
Magnificent Metadata Maniac - #1 Assistant
Not a Llama - Happy April Fools Day!
Magical Inkwell - Wrote MLP fanfiction consisting of at least around 1.5k words, and has a verified link to the platform of their choice
Thread Starter - Tagging Discussion
Friendship, Art, and Magic (6 Years) - Celebrated Derpibooru's six year anniversary with friends.
Equality - In our state, we do not stand out.
Wallet After Summer Sale

Site Moderator
French Taunter

In this thread we list, propose and discuss custom scripts and other custom content linked to Derpibooru.

Note that this is not meant to replace the Feature suggestion thread, if anything it’s a complement. If you have any ideas, or have created userscripts you would like to add to this list, please post about them here. We will add links to the relevant threads / repositories, with credits to the authors, and short descriptions. Once a script has a dedicated thread, try to keep the relevant discussion there, to give room for new ideas / discussions.

The scripts listed in this post are not official Derpibooru content, their inclusion doesn’t necessarily mean we support it, and the site cannot be held responsible for the possible harm they may cause. Always be careful about the scripts you download, please report any abuse to the staff, and when in doubt don’t hesitate to ask other users / developers.


* General information:

How to use userscripts. Most scripts will require a manager, like Tampermonkey (Chrome, Firefox, Opera, Edge, Safari). Just install the manager addon, download the scripts, and enable them.

About our stylesheets. You can find the derpibooru stylesheets and an explanation on how to use them here. Don’t hesitate to share your userstyles!


* Userscripts:

Always Your Derpibooru by DanielTepesKraus — Auto redirect to selected domain.

DERP Fullscreen Viewer by St@SyaN — Minimizes UI and expand images for better viewing experience.

Derpibooru Comment Enhancements by Marker — Improves comment and post reading.

Derpibooru Image Flip Rotate Buttons by DanielTepesKraus — Simple image transformations.

Derpibooru Image Preloader by Marker — Automatically preload a comic’s next page.

Derpibooru User Blocker by Marker — Allows you to hide image comments and forum posts from select users.

Derpibooru WebM Volume Toggle by Marker — Improves WebM sound management.

Emoticons! by Sollace — Quick and easy to use emoticons on Derpi.

Forum post/comment source link generator by DanielTepesKraus — Adds Links under images.

Namize Background Ponies! No to boring hex values! by VcSaJen — Replace BP ID with colors.

Reverse Image Search Source Finder by DanielTepesKraus — Dropdown to search images in Google, TinEye, etc.

Search Sorting Fixer by St@SyaN — Mainly fixes navigation bug while using sorting that differs from "created_at".

semi-Automated Derpibooru Uploader by St@SyaN — Series of userscripts, simplifies uploading from third-party sites.

Tag suggestions by Rene_Z and St@SyaN — Provides list of tags which may fit into current image.

Transparent Image Background Color Switch by DanielTepesKraus — Change bg color for transparent image viewing.

YourBooru:Feeds by St@SyaN — Provides flexible customizable image feeds on main page.

YourBooru:Tools by St@SyaN — Array of useful tools.


* Userstyles:

Jackybooru by Sollace — Customize derpi to your favorite pony’s colors.


* Extensions:

Derpi-NewTab by Sei — Customize your new tab with pony wallpapers.

Derpi-Notify by Sei — Keep track of your Derpibooru notifications and messages in (almost) real time.
Sei's avatar
Posts: 3
Sei
Wallet After Summer Sale

Pretext Hyperprocessor
Derpi-Notify and Derpi-NewTab are both individual browser extensions, I would suggest sorting those under a separate category from Userstyles and Userscripts.
Posted Report
Marker's avatar
Posts: 177
Marker
Not a Llama - Happy April Fools Day!
Magnificent Metadata Maniac - #1 Assistant
Wallet After Summer Sale

This Sentence is False
Oh I love the idea of this thread!

I see one of my script is listed twice, "Derpibooru-User-Blocker" and "User Blocker" are actually the same thing.

Also, would this thread be a good place to post any scripts for extremely minor tweaks that I don’t think is worth starting a thread for?
Posted Report
Marker's avatar
Posts: 177
Marker
Not a Llama - Happy April Fools Day!
Magnificent Metadata Maniac - #1 Assistant
Wallet After Summer Sale

This Sentence is False
So I’ve gotten a little tired of doing this little dance…

…whenever I’m trying to click on a tag in the middle of the tag soup, here’s a dirty, hacky way of adding half a second of delay to the dropdown using CSS:

.tag.dropdown .dropdown__content {
display: block;
overflow-y: hidden;
max-height: 0vh;
transition: 0s max-height;
}
.tag.dropdown:hover .dropdown__content {
transition-delay: 0.5s;
max-height: 100vh;
}

Posted Report
St@SyaN's avatar
Posts: 673
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
Note that this action will reduce security of the site and may allow inserting of malicious content! Do this only at your own risk.

Since Derpibooru enforced CSP to disallow usage of <style> tags, for correct working of some userscript and userstyles, you have to do some one-time preparings:
Firefox: see there
Chrome and chromium based: install
Content Security Policy Override (this shit is glitching, you may need to reinstall it few times later, but I don’t know anything better)
and type

[
["https://(www\\.|)(trixie|derpi)booru.org/", [
["style-src", "style-src 'unsafe-inline'"]
]]
]


Like this
Sollace's avatar
Posts: 930
Sollace
Artist - sollace
An Artist Who Rocks - 100+ images under their artist tag
Not a Llama - Happy April Fools Day!
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
Best Artist - Providing quality, Derpibooru-exclusive artwork
Friendship, Art, and Magic (7 Years) - Celebrated Derpibooru's seventh year anniversary with friends
Wallet After Summer Sale

Really likes Pear Butter
@Mildgyth
What he has there shouldn’t be a huge problem. Malicious styles can’t do much though they can change the layout and appearance of the site.

Worst comes to worst, a malicious userstyle can use backgroun-image in custom css to trigger web requests to track user behaviour.
Posted Report
Marker's avatar
Posts: 177
Marker
Not a Llama - Happy April Fools Day!
Magnificent Metadata Maniac - #1 Assistant
Wallet After Summer Sale

This Sentence is False
I’m currently looking into if the GM_addStyle API could be used to get around the policy. Doesn’t look very promising, unfortunately. Other than Greasemonkey’s lack of support for it, I couldn’t get it to work on Firefox’s Tampermonkey (or Violentmonkey) either.
Background Pony #0890
@St@SyaN
Alternative for Firefox?

Since Derpibooru enforced CSP to disallow usage of <style> tags
Not only <style> tags, even inline styles are blocked.

It’s real pity. This is going to result in loss of userscipts userbase. Only stubborn people will install two extensions for just one userscript. All for sake of vague security.
Sollace's avatar
Posts: 930
Sollace
Artist - sollace
An Artist Who Rocks - 100+ images under their artist tag
Not a Llama - Happy April Fools Day!
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
Best Artist - Providing quality, Derpibooru-exclusive artwork
Friendship, Art, and Magic (7 Years) - Celebrated Derpibooru's seventh year anniversary with friends
Wallet After Summer Sale

Really likes Pear Butter
@ArmadilloEater
Please do not direct users to install tampermonkey. It’s not safe to use.

Firefox users should switch to Violentmonkey and uninstall Tampermonkey immediately.

Likewise do not use Stylish, switch to Stylus .

Both of the addons are known to collect browsing data without the user’s consent.
Posted Report
byte[]'s avatar
Posts: 1679
byte[]
Site Administrator
Site Developer
@Background Pony #0890
This is a site with user-submitted content. As a developer, I would much prefer to keep that content as tightly constrained as is literally possible. It is not for a "sake of vague security", it is defense in depth.
Posted Report
St@SyaN's avatar
Posts: 673
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
@Sollace
I imaging possibility of using ::after to create a window, which completely blocks Derpibooru and says "pay X to Y to unlock this site". Tracking that way probably will be impossible because of untouched part of CSP.

@Background Pony #0890
As byte[] says, using elem.style.prop = x instead of elem.style = "prop:x" bypasses issue.

@Sollace
Last time I tried Violentmonkey, it didn’t work with Derpibooru at all. Maybe stuff changed, though.
Interested in advertising on Derpibooru? Click here for information!
Fallout: Equestria Printing!

Derpibooru costs over $25 a day to operate. Help keep the site up - support us on Patreon!

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