您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes pointless "scope" crap and adds a button to sort by rating.
当前为
// ==UserScript== // @name Derpibooru - Sort by Score & No Scope // @namespace Selbi // @include http*://*derpiboo.ru/* // @include http*://*derpibooru.org/* // @version 1.1 // @description Removes pointless "scope" crap and adds a button to sort by rating. // ==/UserScript== if (window.top != window.self) return; $("input[value='Go']").after('<input type="button" value="Score" id="sortbyscore"/>'); // Sort by Score $("#sortbyscore").click(function() { var tags = document.getElementById("sbq").value; var newurl = "/search?utf8=%E2%9C%93&q=" + tags + "&min_score=&max_score=&sf=score&sd=desc&commit=Search"; window.location.href = newurl; }); // Remove "Scope" Crap var allA = document.getElementsByTagName("a"); for (var i=0; i<allA.length; i++) { allA[i].href = allA[i].href.replace(/[?]{1}scope=scpe{1}\w+/g,""); } // Auto-scroll //if ($("IMG#image_display.image_scaled").attr("height") > 907) { // $("IMG#image_display.image_scaled").attr("height", 907); //}