[Userscript] Booru Switcher

Marker
Boot badge - It's Bootiful
Fried Chicken - Attended an April Fools event
Liberty Belle - Sings the song of the unchained

Misanthrope
Booru Switcher
 
Let’s you quickly switch between Philomena-based boorus. Primarily intended for quickly comparing tags and searches across sites.
 
Requires Violentmonkey or compatible userscript manager.  
Click here to install from Github
 
Screenshot  
full
 
Known issue  
There’s a bug where the file hash returned by the site’s API doesn’t match the actual file.
 
If such an image was downloaded from Site A then uploaded to Site B. Trying to search for the image from Site A would find no result. As a workaround, you can ctrl + click the link again to force the script to download the full image and compute the hash client side.
 
This let you search on Site A for images that had been uploaded to Site B. However, it won’t work for the inverse, i.e. find the source image on Site A from Site B. So, when client-side hashing fails to yield result, the script uses Philomena’s reverse image search function as the final fallback.
Cammera
Artist -
Liberty Belle - Sings the song of the unchained

Undesirable
It’s not appearing in image pages on my end. There’s nothing about it in the browser console either.  
On purpose, is it possible to search images based on their md5 or whatever? In that case, it should be possible to search an image with the same hash in the boorus you’re searching to, with an I’m Feeling Pony search to autoredirect to it.
Marker
Boot badge - It's Bootiful
Fried Chicken - Attended an April Fools event
Liberty Belle - Sings the song of the unchained

Misanthrope
@Cammera  
I explicitly made sure it wouldn’t run on image pages because switching between the same image id between sites wouldn’t make much sense. But you raise a good point with the md5 search, I’ll look into it soon tm.
Marker
Boot badge - It's Bootiful
Fried Chicken - Attended an April Fools event
Liberty Belle - Sings the song of the unchained

Misanthrope
Changelog for version 1.1.0:  
  • Enabled on image pages: Added the ability to search for an image by its file hash, and redirects to it if found.
Marker
Boot badge - It's Bootiful
Fried Chicken - Attended an April Fools event
Liberty Belle - Sings the song of the unchained

Misanthrope
Changelog for version 1.1.4:  
  • Image search: updated to address a known bug that would erroneously mark an image as not found, see OP for details.
     
    Edit: added reverse image search as a final fallback.  
    Edit2: fixed the script not working for Ponerpics.
Marker
Boot badge - It's Bootiful
Fried Chicken - Attended an April Fools event
Liberty Belle - Sings the song of the unchained

Misanthrope
To the Anon that responded to me on /mlp/. Sorry I could not respond directly to you in the thread. My ip is range banned on 4chan and my usual way of getting past it is down for the count at the moment.
 
I managed to reproduce your issue and it seems to be caused by a bug affecting the Firefox version of Violentmonkey. I’ve implemented a workaround for now that requires an additional permission of ‘unsafeWindow’.
Marker
Boot badge - It's Bootiful
Fried Chicken - Attended an April Fools event
Liberty Belle - Sings the song of the unchained

Misanthrope
Changelog for 1.1.6:  
  • Improved accuracy of image redirect when reverse image search is used. [commit]  
  • Workaround for a bug affects Violentmonkey on Firefox that breaks image search [commit]
Anonymous #36C8
@Marker  
It’s working now, thanks.  
>bug affecting the Firefox version of Violentmonkey  
It’s baffling how 3 years later, there still isn’t a userscript addon that works as good as pre-webextensions Greasemonkey.
Marker
Boot badge - It's Bootiful
Fried Chicken - Attended an April Fools event
Liberty Belle - Sings the song of the unchained

Misanthrope
Changelog for 1.2.0:  
  • Added partial compatibility for Twibooru: Hash via API and client-side hashing works. No support for reverse image search.
Marker
Boot badge - It's Bootiful
Fried Chicken - Attended an April Fools event
Liberty Belle - Sings the song of the unchained

Misanthrope
Changelog for 1.3.0:  
  • Incorporates Twibooru’s ‘Elsewhere’ search parameter. This should reduce the need for client-side hashing when searching Twibooru.
Syntax quick reference: **bold** *italic* ||hide text|| `code` __underline__ ~~strike~~ ^sup^ %sub%

Detailed syntax guide