Reindexing complete. Site should work as expected. Report any anomalies here.
2023 Community Collab badges are ready! Please provide your submission(s) to claim the event badges - Claim your badges here!

Userscripts / Customization

Ecstatis

@Ecstatis
For ViolentMonkey you have to use:
// @inject-into content
// @grant none
And create your stylesheet like this:
const element = document.createElement(‘STYLE’);
element.setAttribute(‘type’, ‘text/css’);
element.innerHTML = `
.comment_box_flex {
display: flex;
}`;
document.body.insertAdjacentElement(‘afterend’, element);
 
Yeah I’ve seen that in your post above already, my only gripe with that though is that it would make dynamically adding and removing rules (as I already mentioned that I need) quite cumbersome. Well I guess I could just store the rules and update the style HTML on every change instead, although I’m not quite confident that this will work properly.
 
EDIT: Oh well nevermind, it works just fine now. Thank you :)
Sollace
Elements of Harmony - Had an OC in the 2022 Community Collab
Non-Fungible Trixie -
Verified Pegasus - Show us your gorgeous wings!
Preenhub - We all know what you were up to this evening~
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

Really likes Pear Butter
@Ecstatis  
I thought of that as well.
 
Simple solution is to put the css you want to change into a separate style element and give it an id. Then either replace the contents (I’m not sure if that will cause problems with CSP) or remove and re-add the element.
 
Strangely, I think the inline styling my script applies directly to elements is also excempt from CSP controls. Either that or it’s just not required. full
Interested in advertising on Derpibooru? Click here for information!
Everfree Encore! A music festival by Bronies for Bronies

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

Syntax quick reference: **bold** *italic* ||hide text|| `code` __underline__ ~~strike~~ ^sup^ %sub%

Detailed syntax guide