Giphy Categorization

Reverse Engineered because I have no clue what I'm doing!

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name       Giphy Categorization
// @version    0.4
// @description  Reverse Engineered because I have no clue what I'm doing!
// @updateurl  
// @include       *
// @copyright  
// @namespace https://greatest.deepsurf.us/users/5064
// ==/UserScript==


 
var content = document.getElementById("button_window");
content.tabIndex = "0";
content.focus();
 
document.onkeydown = showkeycode;
function showkeycode(evt){
    var keycode = evt.keyCode;
       switch (keycode) {
            case 97: //Numberpad 1
                document.getElementById("For Children ").click();              
                document.getElementById("mturk_form").submit();
                break;
            case 98: //Numberpad 2
                document.getElementById("For Children - Animated").click();
                document.getElementById("mturk_form").submit();
                break;
            case 99: //Numberpad 3
                document.getElementById("For Young Adults ").click();
                document.getElementById("mturk_form").submit();
                break;
            case 100: //Numberpad 4
                document.getElementById("For Adults").click();
                document.getElementById("mturk_form").submit();
                break;
            case 101: //Numberpad 5
                document.getElementById("For Adults - Porn ").click();
                document.getElementById("mturk_form").submit();
                break;

    }
}