Giphy Categorization

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

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 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       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;

    }
}