Userscripts / Customization

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

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.

Custom Shortcuts by Marker — Tweak keyboard control.

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
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.
Marker
My Little Pony - 1992 Edition
Wallet After Summer Sale -
Magnificent Metadata Maniac - #1 Assistant
Not a Llama - Happy April Fools Day!

Misanthrope
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?
Marker
My Little Pony - 1992 Edition
Wallet After Summer Sale -
Magnificent Metadata Maniac - #1 Assistant
Not a Llama - Happy April Fools Day!

Misanthrope
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; padding: 0px; transition: max-height 0s, padding 0s; } .tag.dropdown:hover .dropdown__content { transition-delay: 0.5s; max-height: 100vh; padding: 5px; }
stsyn
Best Artist - Providing quality, Derpibooru-exclusive artwork
Fine Arts - Two hundred uploads with a score of over a hundred (Safe/Suggestive)
Economist -
Cool Crow - "Caw!" An awesome tagger
The Power of Love - Given to a publicly verified artist with an image under their artist’s tag that has reached 1000 upvotes
Equality - In our state, we do not stand out.
Magnificent Metadata Maniac -
Birthday Cake - Celebrated MLP's 7th birthday
Perfect Pony Plot Provider - Uploader of 10+ images with 350 upvotes or more (Questionable/Explicit)
Artist -

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
My Little Pony - 1992 Edition
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 Really Hyper Artist - 500+ images under their artist tag
Wallet After Summer Sale -
Friendship, Art, and Magic (2019) - Celebrated Derpibooru's seventh year anniversary with friends
Best Artist - Providing quality, Derpibooru-exclusive artwork
A Really Classy Artist - 250+ 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
Not a Llama - Happy April Fools Day!
An Artist Who Rocks - 100+ images under their artist tag

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
My Little Pony - 1992 Edition
Wallet After Summer Sale -
Magnificent Metadata Maniac - #1 Assistant
Not a Llama - Happy April Fools Day!

Misanthrope
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 #D9B6
StSyaN
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
My Little Pony - 1992 Edition
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 Really Hyper Artist - 500+ images under their artist tag
Wallet After Summer Sale -
Friendship, Art, and Magic (2019) - Celebrated Derpibooru's seventh year anniversary with friends
Best Artist - Providing quality, Derpibooru-exclusive artwork
A Really Classy Artist - 250+ 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
Not a Llama - Happy April Fools Day!
An Artist Who Rocks - 100+ images under their artist tag

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[]

Philomena Contributor
@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
stsyn
Best Artist - Providing quality, Derpibooru-exclusive artwork
Fine Arts - Two hundred uploads with a score of over a hundred (Safe/Suggestive)
Economist -
Cool Crow - "Caw!" An awesome tagger
The Power of Love - Given to a publicly verified artist with an image under their artist’s tag that has reached 1000 upvotes
Equality - In our state, we do not stand out.
Magnificent Metadata Maniac -
Birthday Cake - Celebrated MLP's 7th birthday
Perfect Pony Plot Provider - Uploader of 10+ images with 350 upvotes or more (Questionable/Explicit)
Artist -

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.
stsyn
Best Artist - Providing quality, Derpibooru-exclusive artwork
Fine Arts - Two hundred uploads with a score of over a hundred (Safe/Suggestive)
Economist -
Cool Crow - "Caw!" An awesome tagger
The Power of Love - Given to a publicly verified artist with an image under their artist’s tag that has reached 1000 upvotes
Equality - In our state, we do not stand out.
Magnificent Metadata Maniac -
Birthday Cake - Celebrated MLP's 7th birthday
Perfect Pony Plot Provider - Uploader of 10+ images with 350 upvotes or more (Questionable/Explicit)
Artist -

Site Moderator
@Sollace
Is there any info about collecting user data by Tampermonkey? Rough googling gave me nothing.

UPD: I only managed to find info about inserted Google Analytics, and I find it a little weird to worry about it, if use Google browser…
Interested in advertising on Derpibooru? Click here for information!
Commissions, YCH, and Adopts!

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~