CS User Manuals Hot Key

Mturk Hit the ? key for key list

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name       CS User Manuals Hot Key
// @author     Cristo
// @version    0.1
// @description Mturk Hit the ? key for key list
// @include       *
// @copyright  2012+, You
// @namespace https://greasyfork.org/users/1973
// ==/UserScript==

var cI = 0;
var page = document.getElementById("target"); 
var table = page.getElementsByClassName("w");
var radio = table[cI].getElementsByTagName("input");
var sub = document.getElementById("submitButton"); 

page.tabIndex = 0;
page.focus();
table[cI].scrollIntoView(false);

function moveGrove(){

    cI++
    radio = table[cI].getElementsByTagName("input");
    table[cI].scrollIntoView(false);    
}

document.addEventListener( "keydown", kas, false);

function kas(i) {
if ( i.keyCode == 83 ) { // yes
    radio[0].checked=true;
    moveGrove();
}
if ( i.keyCode == 70 ) { // no
    radio[1].checked=true;
    moveGrove();
}
if ( i.keyCode == 69 ) { // submit
	sub.click();
}
if ( i.keyCode== 191 ) { //? Key - Shows Keys
    alert("S Key - Yes\nF Key - No\nE Key - Submit"); 
    }
}