Posts

For more information, see the search syntax documentation. Search results are sorted by creation date.

Search Results

Site and Policy » [Userscript] Transparent Image Background Color Switch » Post 7

Site and Policy » [Userscript] Transparent Image Background Color Switch » Post 6

DanielTepesKraus
Greatest Poster in the Board -
GREEN - TALK TO ME
Roseluck - Had their OC in the 2023 Derpibooru Collab.
Elements of Harmony - Had an OC in the 2022 Community Collab
Twinkling Balloon - Took part in the 2021 community collab.
Friendship, Art, and Magic (2020) - Took part in the 2020 Community Collab
My Little Pony - 1992 Edition
Wallet After Summer Sale -
Friendship, Art, and Magic (2019) - Celebrated Derpibooru's seventh year anniversary with friends
Equality - Was more equal than the rest of the people during the event and did the only smart thing: wasn't there :^)

will return
bumping this. i gave the code a complete rewrite. it now works consistently on any image tagged “transparent”, “transparent background”, and “derpibooru theme illusion”.
 
if people like, i could also add a setting to always add the toggle bg link.  
done. people pointed out it’s handy for seeing if images need the transparent background tags to begin with.

Site and Policy » [Userscript] Transparent Image Background Color Switch » Post 5

Site and Policy » [Userscript] Transparent Image Background Color Switch » Post 4

Site and Policy » [Userscript] Transparent Image Background Color Switch » Post 3

Site and Policy » [Userscript] Transparent Image Background Color Switch » Post 2

Site and Policy » [Userscript] Transparent Image Background Color Switch » Post 1

Site and Policy » [Userscript] Transparent Image Background Color Switch » Topic Opener

DanielTepesKraus
Greatest Poster in the Board -
GREEN - TALK TO ME
Roseluck - Had their OC in the 2023 Derpibooru Collab.
Elements of Harmony - Had an OC in the 2022 Community Collab
Twinkling Balloon - Took part in the 2021 community collab.
Friendship, Art, and Magic (2020) - Took part in the 2020 Community Collab
My Little Pony - 1992 Edition
Wallet After Summer Sale -
Friendship, Art, and Magic (2019) - Celebrated Derpibooru's seventh year anniversary with friends
Equality - Was more equal than the rest of the people during the event and did the only smart thing: wasn't there :^)

will return
Description  
This simple script adds a “Toggle BG Color” button above all images which allows you to quickly toggle between the light theme and dark theme color for the background of the image. Handy as transparent animated gifs that use aliasing can look bad against the dark theme, and of course some images look better with a dark background. This lets you swap just the image background color itself with the push of a button.
 
By default the button will always appear in the uploader bar, but you can edit the script and change the value of “AlwaysLink” in the script to set it to only appear on images tagged transparent background or derpibooru theme illusion.
 
It In Action:  
full
 
I’ve since given this script a complete rewrite and added a slider bar feature as well. You can use these sliders to tweak the RGB values of the image’s background color and set it to anything you want. Click the down arrow beside the button and go nuts. Again, this feature can be turned off by editing he script and changing the value of “UseSliders”:  
full  
I mostly added the sliders thing out of boredom / curiosity , but let me know if you find a use for it beyond brief novelty. From what I’ve been told the sliders are only supported by Chrome, Opera, and the newest versions of Firefox, so if they cause your browser problems they can be toggled off (as stated above) or fixed by updating / changing browsers.
 
Changelog  
V1.0 – 2016/03/30 – Initial release  
V2.0 - 2017/07/23 - Script rewrite. Now works consistently on all images tagged “transparent”, “transparent background”, and “derpibooru theme illusion”  
V2.1 - 2017/07/23 - Added feature to toggle the script and changed the default setting.  
V3.0 - 2017/08/01 - Script rewrite. Added slider function.
 
Download Link  
Download  
Download (Old 2.1 version) (Kept available because why not?)
 
Disclaimer and Such  
Use at your own risk. This script does not store or access any user data. This script has been tested but may not be entirely bug free.

Default search

If you do not specify a field to search over, the search engine will search for posts with a body that is similar to the query's word stems. For example, posts containing the words winged humanization, wings, and spread wings would all be found by a search for wing, but sewing would not be.

Allowed fields

Field SelectorTypeDescriptionExample
authorLiteralMatches the author of this post. Anonymous authors will never match this term.author:Joey
bodyFull TextMatches the body of this post. This is the default field.body:test
created_atDate/Time RangeMatches the creation time of this post.created_at:2015
idNumeric RangeMatches the numeric surrogate key for this post.id:1000000
myMetamy:posts matches posts you have posted if you are signed in. my:posts
subjectFull TextMatches the title of the topic.subject:time wasting thread
topic_idLiteralMatches the numeric surrogate key for the topic this post belongs to.topic_id:7000
topic_positionNumeric RangeMatches the offset from the beginning of the topic of this post. Positions begin at 0.topic_position:0
updated_atDate/Time RangeMatches the creation or last edit time of this post.updated_at.gte:2 weeks ago
user_idLiteralMatches posts with the specified user_id. Anonymous users will never match this term.user_id:211190
forumLiteralMatches the short name for the forum this post belongs to.forum:meta