NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Derpibooru Reverse Image Search // @namespace Derpibooru Reverse Image Search // @description Adds a dropdown menu to reverse-search images on various websites // @author DanielTepesKraus || https://www.derpibooru.org/profiles/DanielTepesKraus // @include https://*derpibooru.org/* // @include *derpibooru.org* // @include https://*trixiebooru.org/* // @include *trixiebooru.org/* // @version 2.0 // @grant none // ==/UserScript== var FirstHalfLinks = ["", "https://www.google.com/searchbyimage?image_url=", "http://www.bing.com/images/searchbyimage?FORM=IRSBIQ&cbir=sbi&imgurl=", "http://www.tineye.com/search/?url=", "http://saucenao.com/search.php?url=", "http://iqdb.org/?url=", "http://www.doujinshi.org/IMGSERV/socket.php?URL=", "http://yandex.ru/images/search?img_url="]; var ReverseDrop = document.createElement("select"); ReverseDrop.className = 'input header__input'; ReverseDrop.id = "ReverseButtons" ReverseDrop.innerHTML = '<option title="Reverse Search" selected="selected" value="0">Reverse Search</option><option title="Global search using Google. Useful for Deviantart, Tumblr, etc." value="1">Google</option><option title="Global search using Bing. Useful when Google fails." value="2">Bing</option><option title="14.6 billion images indexed and growing." value="3">TinEye</option><option title="Similar to TinEye. Mostly useful for finding Pixiv posts." value="4">SauceNao</option><option title="Searches anime and manga boorus." value="5">iqdb (NSFW)</option><option title="Provides details for doujinshi. Only useful for doujinshi covers." value="6">Doujinshi.org (NSFW)</option><option title="Russian reverse image search (Русский обратный поиск изображений)." value="7">Yandex / Яндекс</option>' if (document.getElementById("comments")){ document.getElementById("content").childNodes[0].childNodes[0].appendChild(ReverseDrop); ReverseButtons.addEventListener('change',callSearch,false); } function callSearch(){ for (var i = 0; i < document.getElementsByTagName("a").length; i++){ if (document.getElementsByTagName("a")[i].title == "View this image at full res with a short filename"){ var LinkGoes = document.getElementsByTagName("a")[i].href; } } if (ReverseDrop.value == 7){ window.location = FirstHalfLinks[ReverseDrop.value] + LinkGoes + "&rpt=imageview" }else{ window.location = FirstHalfLinks[ReverseDrop.value] + LinkGoes } }