Last active
September 9, 2019 10:58
-
-
Save abc1763613206/6393aee33269879090f28e740c310a92 to your computer and use it in GitHub Desktop.
MocloudPlus 转账临时补丁,专治各种鸽子(逃
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name MocloudPlus Transfer Fix | |
// @namespace https://github.com/abc1763613206 | |
// @version 0.2 | |
// @description MocloudPlus 转账临时补丁,专治各种鸽子(逃 | |
// @author abc1763613206 | |
// @match https://mocloudplus.com/user/invite | |
// @match https://*mocloudplus.com/user/invite* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
$(document).ready(function () { | |
$("#trans").click(function () { | |
$.ajax({ | |
type: "POST", | |
url: "transmoney", | |
dataType: "json", | |
data: { | |
email: $("#email").val(), | |
count: $("#count").val(), | |
}, | |
success: function (data) { | |
if (data.ret) { | |
$("#result").modal(); | |
$("#msg").html(data.msg); | |
} else { | |
$("#result").modal(); | |
$("#msg").html(data.msg); | |
} | |
window.setTimeout("window.location.href='/user/invite'", 1800); | |
}, | |
error: function (jqXHR) { | |
$("#result").modal(); | |
$("#msg").html("发生错误:" + jqXHR.status + data.msg); | |
window.setTimeout("window.location.href='/user/invite'", 1800); | |
} | |
}) | |
}) | |
}) | |
// Your code here... | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment