Sort by Score

Adds a button to sort by total score on rule34

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name        Sort by Score
// @description Adds a button to sort by total score on rule34
// @license     MIT
// @namespace   https://sleazyfork.org/en/scripts/560084-sort-by-score
// @match       https://rule34.xxx/*
// @icon        https://www.google.com/s2/favicons?sz=64&domain=rule34.xxx
// @supportURL  https://sleazyfork.org/en/scripts/560084-sort-by-score/feedback
// @grant       none
// @version     1.4.1
// @author      TsunderRae
// @require     https://code.jquery.com/jquery-3.5.1.min.js
// ==/UserScript==

$("document").ready(function () {
	var searchField = document.getElementsByName("tags")[0];
	var searchButton = document.getElementsByName("commit")[0];
	var newButton = document.createElement("Button");
	newButton.innerHTML = "sort:score";
	newButton.style.cursor = "pointer";
	newButton.onclick = (e) => {
		searchField.value += " sort:score";
		searchButton.click();
	};
	document.getElementsByClassName("tag-search")[0].appendChild(newButton);
});