Sort by Score & No Scope

Removes pointless "scope" crap and adds a button to sort by rating.

Ajankohdalta 29.5.2014. Katso uusin versio.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Sort by Score & No Scope
// @namespace   Selbi
// @include     http*://*derpiboo.ru/*
// @include     http*://*derpibooru.org/*
// @version     1
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
// @description Removes pointless "scope" crap and adds a button to sort by rating.
// ==/UserScript==

// Sort by Score
unsafeWindow.ForScore = function() {
	var tags = $("#sbq").val();
	var newurl = "/search?utf8=%E2%9C%93&q=" + tags + "&min_score=&max_score=&sf=score&sd=desc&commit=Search";
	window.location.href = newurl;
}
$("input[value='Go']").after('<input type="button" value="Score" onclick="ForScore();" />');

// 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,"");
}