Skip to content

Instantly share code, notes, and snippets.

@abc1763613206
Last active September 9, 2019 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abc1763613206/6393aee33269879090f28e740c310a92 to your computer and use it in GitHub Desktop.
Save abc1763613206/6393aee33269879090f28e740c310a92 to your computer and use it in GitHub Desktop.
MocloudPlus 转账临时补丁,专治各种鸽子(逃
// ==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