Greasy Fork

Greasy Fork is available in English.

Inventory requester

Inventory framework

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

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

// ==UserScript==
// @name         Inventory requester
// @version      0.1
// @description  Inventory framework
// @author       A Meaty Alt
// @match        http://fairview.deadfrontier.com/onlinezombiemmo/index.php?page=35
// @grant        none
// ==/UserScript==

function getPlayerValues(params){
    return new Promise(function(resolve){
        var hashedPassword = params.match(/password=(.*?)&/)[1];
        $.post("https://fairview.deadfrontier.com/onlinezombiemmo/get_values.php",
               "userID="+id+"&password="+hashedPassword,
               function(response){
            resolve(response);
        });
    });
}