Greasy Fork

Greasy Fork is available in English.

NyQuery

Makes Money

当前为 2017-10-04 提交的版本,查看 最新版本

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/33763/222016/NyQuery.js

// ==UserScript==
// @name         NyQuery
// @namespace    http://greasyfork.icu/users/144229
// @version      1.0.1
// @description  Makes Money
// @author       MasterNyborg
// @icon         http://i.imgur.com/wS1IQwd.jpg
// @require      http://code.jquery.com/jquery-latest.min.js
// ==/UserScript==

function hotKey(element, input){
    $(document).keypress(function(event){
        if (String.fromCharCode(event.which) == input){
            $(element).click();
        }
    });
}
function clickText(text, input){
    $(document).keypress(function(event){
        if (String.fromCharCode(event.which) == input){
            $(':contains('+text+')').click();
        }
    });
}