Framework to be used by most DF requesters/scripts
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greatest.deepsurf.us/scripts/34464/225720/Common%20Framework.js
// ==UserScript==
// @name Common Framework
// @version 0.6
// @description Framework to be used by most DF requesters/scripts
// @author A Meaty Alt
// @grant none
// ==/UserScript==
var params = $("#flashMain1")[0].children[0].value;
var sc = params.match(/sc=(.*?)\&/)[1];
var userId = params.match(/userID=(.*?)\&/)[1];
var hashedPassword = params.match(/password=(.*?)\&/)[1];
var pageTime = params.match(/pagetime=(.*?)\&/)[1];
setInterval(() => {
$.get("http://fairview.deadfrontier.com/onlinezombiemmo/index.php?page=35",
(response) => {
pageTime = response.match(/pagetime=(.*?)\&/)[1];
});
}, 60000);
function buildSecureBody(){
return {
pagetime: pageTime,
userId: userId,
sc: sc,
password: hashedPassword
};
}