Greasy Fork

Bank Requester

Helper to withdraw/deposit

目前为 2017-09-12 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.icu/scripts/33146/217573/Bank%20Requester.js

// ==UserScript==
// @name         Bank Requester
// @version      1
// @description  Helper to withdraw/deposit
// @author       A Meaty Alt
// @include      /fairview.deadfrontier.com/
// @grant        none
// ==/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);
}