Giphy Categorization

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

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name       Giphy Categorization
// @version    0.4
// @description  Reverse Engineered because I have no clue what I'm doing!
// @updateurl  
// @include       *
// @copyright  
// @namespace https://greasyfork.org/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;

    }
}