Greasy Fork

Greasy Fork is available in English.

Bank Requester

Helper to withdraw/deposit

当前为 2017-09-12 提交的版本,查看 最新版本

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

// ==UserScript==
// @name         Bank Requester
// @version      1.1
// @description  Helper to withdraw/deposit
// @author       A Meaty Alt
// @include      /fairview.deadfrontier.com/
// @grant        none
// @require      https://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js
// ==/UserScript==

function withdraw(money, params){
    var sc = params.match(/sc=(.*?)&/)[1];
    var id = params.match(/userID=(.*?)&/)[1];
    var password = params.match(/password=(.*?)&/)[1];
    $.post("https://fairview.deadfrontier.com/onlinezombiemmo/bank.php",
                   "withdraw="+money+"&templateID=undefined&sc=" + sc + "&userID="+id+"&password="+password);
}
function deposit(money, params){
    var sc = params.match(/sc=(.*?)&/)[1];
    var id = params.match(/userID=(.*?)&/)[1];
    var password = params.match(/password=(.*?)&/)[1];
    $.post("https://fairview.deadfrontier.com/onlinezombiemmo/bank.php",
                   "deposit="+money+"&templateID=undefined&sc=" + sc + "&userID="+id+"&password="+password);
}