Rule34Hentai - Top Animated Button

A button that get the "Top Voted Animations" of the chosen tags!

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo 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         Rule34Hentai - Top Animated Button
// @version      0.1
// @description  A button that get the "Top Voted Animations" of the chosen tags!
// @match        https://*.rule34hentai.net/post/list/*
// @namespace https://greasyfork.org/users/766244
// ==/UserScript==

document.addEventListener('DOMContentLoaded', function(){
    var form = document.querySelector('#Navigationleft > div > form')
    var ta_btn = document.createElement('button')
    ta_btn.id = 'ta'
    ta_btn.innerText = 'TOP ANIMATED'
    ta_btn.onclick = function () {
        var tagsInput = form.querySelector('input[name="search"]')
        tagsInput.value += ' animated order=score_desc'
        form.submit()
    }
    form.insertAdjacentElement('beforeend', ta_btn)
})