Happy Birthday, MLP:FiM! MLP:FiM turns 9 years old this year! Let's celebrate with an art event!

[Userscript] Derpibooru Image Flip Rotate Buttons

Started by DanielTepesKraus
Posted
4 replies
Login to subscribe to responses
DanielTepesKraus's avatar
Posts: 9837
DanielTepesKraus
GREEN - TALK TO ME
Greatest Poster in the Board
Artist
Derpibooru Premium - Learn about the benefits of subscribing to Derpibooru Premium membership at https://derpibo
Emerald
Speaking Fancy - For helping with translations
Fine Arts - Two hundred uploads with a score of over a hundred (Safe/Suggestive)
A Perfectly Normal Pony - <DrKraus> "Roger Weiner-Asshole One. Out"
The End wasn't The End - Found a new home after the great exodus of 2012
Best Artist - Providing quality, Derpibooru exclusive artwork
An Artist Who Rocks
A Really Classy Artist
Flexible - Bendy pony
Magnificent Metadata Maniac - #1 Assistant
Thread Starter - Started a thread with over 100 pages (/generals/stupid-stuff-that-comes-to-mind-that-we-want-to-post/)
Friendship, Art, and Magic (5 Years) - Celebrated Derpibooru's five year anniversary with friends.
Responsible Disclosure
Not a Llama - I was once a treehouse! I lived in a cake! But I never saw the way, did the orange slay the rake?
Friendship, Art, and Magic (6 Years) - Celebrated Derpibooru's six year anniversary with friends.
Stolen Condensed Milk - Stole a can of Condensed Milk from Glimmer's private stash while she wasn't looking
Equality - Was more equal than the rest of the people during the event and did the only smart thing: wasn't there :^)
Friendship, Art, and Magic (7 Years) - Celebrated Derpibooru's seventh year anniversary with friends
Wallet After Summer Sale

Site Moderator
will return ( ͡° ͜ʖ ͡°)
Description
This script adds buttons to the meta bar that utilize CSS Transform effects to enable horizontal and vertical flipping, as well as 90 degree rotations of images. This doesn’t change the image itself in any way or interfere with downloading (saving or downloading will give you the untransformed image no matter what). It simply changes how the website displays it, so it’s perfect for just ’effing around or looking at images from different angles without having to save the image first.

As with my other scripts, you need to have the uploader info turned on for the script to work (Uncheck "Hide Uploader" under your accounts local settings) as that is where the script places the links.

It In Action:


Changelog
V1.0 – 05/08/2017 – Initial release

Download Link
Download

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. Compatibility is an issue with CSS and I’ve done my absolute best to make it work with as many browsers as possible, so if it simply doesn’t work on your machine you’ll have to try upgrading or changing your browser.
Posted Report
DJDavid98's avatar
Posts: 218
DJDavid98
Artist
An Artist Who Rocks - 100+ images under their artist tag
Friendship, Art, and Magic (5 Years) - Celebrated Derpibooru's five year anniversary with friends.
Not a Llama - Happy April Fools Day!
Speaking Fancy - Badge given to members that help with translations
Birthday Cake - Celebrated MLP's 7th birthday
Helpful Owl - Drew someone's OC for the 2018 Community Collab
Friendship, Art, and Magic (6 Years) - Celebrated Derpibooru's six year anniversary with friends.
A Tale For The Ages - Celebrated MLP's 35th Anniversary and FiM's 8th Anniversary
Friendship, Art, and Magic (7 Years) - Celebrated Derpibooru's seventh year anniversary with friends.
Wallet After Summer Sale

Paamayim Nekudotayim
Slight issue when visiting pages without the #extrameta element: Since it’s null an error is shown in the console. I suggest wrapping everything in an IIFE and doing this right at the top:

var extrameta = document.getElementById("extrameta");
if (!extrameta) return;
Posted Report
DanielTepesKraus's avatar
Posts: 9837
DanielTepesKraus
GREEN - TALK TO ME
Greatest Poster in the Board
Artist
Derpibooru Premium - Learn about the benefits of subscribing to Derpibooru Premium membership at https://derpibo
Emerald
Speaking Fancy - For helping with translations
Fine Arts - Two hundred uploads with a score of over a hundred (Safe/Suggestive)
A Perfectly Normal Pony - <DrKraus> "Roger Weiner-Asshole One. Out"
The End wasn't The End - Found a new home after the great exodus of 2012
Best Artist - Providing quality, Derpibooru exclusive artwork
An Artist Who Rocks
A Really Classy Artist
Flexible - Bendy pony
Magnificent Metadata Maniac - #1 Assistant
Thread Starter - Started a thread with over 100 pages (/generals/stupid-stuff-that-comes-to-mind-that-we-want-to-post/)
Friendship, Art, and Magic (5 Years) - Celebrated Derpibooru's five year anniversary with friends.
Responsible Disclosure
Not a Llama - I was once a treehouse! I lived in a cake! But I never saw the way, did the orange slay the rake?
Friendship, Art, and Magic (6 Years) - Celebrated Derpibooru's six year anniversary with friends.
Stolen Condensed Milk - Stole a can of Condensed Milk from Glimmer's private stash while she wasn't looking
Equality - Was more equal than the rest of the people during the event and did the only smart thing: wasn't there :^)
Friendship, Art, and Magic (7 Years) - Celebrated Derpibooru's seventh year anniversary with friends
Wallet After Summer Sale

Site Moderator
will return ( ͡° ͜ʖ ͡°)
oops, i normally do have such a thing (in the form of (if document.getElementById("extrameta"){ } around the entire thing) but i forgot. i’ll fix it when i get to it. i’m taking something of a break right now; thanks for pointing that out =]
Posted Report
Hakar's avatar
Posts: 168
Hakar
The End wasn't The End - Found a new home after the great exodus of 2012
Happy Derpy!
Artist
Silver Patron
An Artist Who Rocks - 100+ images under their artist tag
A Really Classy Artist - 250+ images under their artist tag
Best Artist - Providing quality, Derpibooru-exclusive artwork
A Really Hyper Artist - 500+ images under their artist tag
Bronze Bit
Diamond

Cool, that’ll be so useful for references. Somehow I always find screencaps that are the mirror image of what I need.
Posted Report
Interested in advertising on Derpibooru? Click here for information!
Sky Railroad Shop

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~