
As you all know the site dynamically replaces all images posted with the !! syntax with a “camo” link:
"!http://i.imgur.com/e99AGEO.gif!"
becomes
"!https://camo.derpicdn.net/e549ac47bf33f9a2184243a303fdd1ff28382018?url=http\%3A\%2F\%2Fi.imgur.com\%2Fe99AGEO.gif!"
…once it has been posted. While this is a necessary security feature designed to protect the site and your computer from the little gremlins on the web, let’s be honest, it’s also annoying as hell because it makes getting the source of images a pain since you can’t just right-click and copy the source anymore:
This script adds a simple “[Image Source]” link beneath every single image posted using the !! syntax, which can be clicked on or source-copied for the pure, unchanged image link.
…Which raises the question why doesn’t this outright replace the camo link? Firstly, while it is possible it is rather buggy and will cause security certificate errors on the site. Secondly, the camo links do serve an important purpose which far outweighs the “they are somewhat annoying” aspect.
New feature! Now if someone uses the !! syntax to link an image from the ‘Booru itself, this script will also add a “[Derpibooru Post]” link that will take you to the corresponding page.
It In Action:
Changelog
V1.1 - 2016/09/18 - Fixed a minor bug that stopped it from running on some domains
V1.0 – 2016/03/30 – Initial release
V2.0 - 2017/07/19 - Complete revamp. Now works consistently on image threads
V2.1 - 2017/07/19 - Bugfix
V2.2 - 2017/07/28 - Now works with pagination, descriptions, and about me boxes
V3.0 - 2017/07/29 - Bugfix, now links to Derpibooru images linked with !! syntax
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. One user has reported that, on occasion, the links may not appear or might appear twice per image, but I’ve not been able to replicate this bug myself and thus find the cause of it.
function findComments()
NodeCreationObserver.onCreation('.communication__body__text', addSourceLinks);
//
noframes@ to your metadata block, Derpibooru serves some of its ads from an <iframe>, this prevents the script from running inside of it.require to run. the only script of mine that uses even jquery was made before when derpi supported it site-wide (so
require wasn’t necessary) and it was pure laziness that kept me from rewriting the script to not use it after jquery was dropped.!https://derpicdn.net/img/2016/12/10/1314002/thumb.png!
GetLinks.indexOf("url=")
returns a value that’s not -1 before inserting the links.Help fund the $15 daily operational cost of Derpibooru - support us financially!