Amazon requester Customer Interests

hotkeys

目前为 2017-01-22 提交的版本。查看 最新版本

// ==UserScript==
// @name        Amazon requester Customer Interests
// @namespace    https://gf.qytechs.cn/en/users/9054
// @version      0.1
// @author       ikarma
// @description  hotkeys
// @include      https://www.mturk.com/*
// @include      https://s3.amazonaws.com/mturk_bulk/*
// @grant        none
// @require      http://code.jquery.com/jquery-2.1.0.min.js

// ==/UserScript==

var $j = jQuery.noConflict(true);

if (document.location.toString().indexOf('mturk') != -1){
    var Requester_Name = $(window.self.parent.document).find("td.capsule_field_text").eq(0).text().trim(); // Gets the requester's name.
    var HIT_Title = $(window.self.parent.document).find("td.capsulelink_bold").eq(0).text().trim();// Gets the HIT's title.
}

if (Requester_Name.indexOf("Amazon Requester Inc. - Customer Interests")>=0){ Hkeys(); }


function Hkeys(){
    document.addEventListener( "keydown", kas, false);
}




function kas(i) {
    if (i.keyCode == 97 ) { //A or npad 1
        $j('input[value="yes"]').eq(0).click();
        $j('input[id="submitButton"]').eq(0).click();
    }
    if (i.keyCode == 98 ) { //S or npad 2
        $j('input[value="no"]').eq(0).click();
        $j('input[id="submitButton"]').eq(0).click();
    }
    if (i.keyCode == 99 ) { //D or npad 3
        $j('input[name="skip"]').eq(0).click();
        $j('input[id="submitButton"]').eq(0).click();
    }

}





QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址