您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script autofocuses the HIT and gives keyboard inputs for all functions with just four clustered keys - 1, 2, w and e.
当前为
// ==UserScript== // @name mkrobert - Efficiency for IWS - Answer questions about a photo // @namespace mkrobert // @version 1.02 // @description This script autofocuses the HIT and gives keyboard inputs for all functions with just four clustered keys - 1, 2, w and e. // @author mkrobert // @include * // @icon http://mturkgrind.com/data/avatars/l/8/8874.jpg?1445404860 // @grant none // ==/UserScript== // https://github.com/mkrobert runScript(); function runScript() { $('#b0').focus(); //saves you from needing to click on the background at the start window.onkeydown = function (e) { if (e.keyCode === 87) //press w for "0 people" $('#b0').click(); if (e.keyCode === 49) { //press 1 for YES or "1 person" $('#yesButton').click(); $('#b1').click(); } if (e.keyCode === 50) { //press 2 for NO or "2 or more people" $('#noButton').click(); $('#b2').click(); } if (e.keyCode === 69) //press e for "Yes - Submit" $('#submitButton').click(); } }