Fuck educoder and tell their fucking developer who is the king!
当前为
// ==UserScript==
// @name FuckEducoder
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Fuck educoder and tell their fucking developer who is the king!
// @author SunSeaLucky
// @match https://www.educoder.net/tasks/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// @run-at document-start
// @license MIT
// ==/UserScript==
(function () {
'use strict';
let oldFetch = fetch;
function hookFetch(...args) {
return new Promise((resolve, reject) => {
oldFetch.apply(this, arguments).then((response) => {
if (arguments[0].indexOf('homework_common_id') !== -1) {
const oldJson = response.json;
response.json = function () {
return new Promise((resolve, reject) => {
oldJson.apply(this, arguments).then((result) => {
if (result.user.name == '严从营' || result.user.name == '夏清伟') {
result.shixun.name = "鉴于您的过往记录,您无资格使用该脚本,感谢您的安装。"
} else {
result.shixun.forbid_copy = false;
result.shixun.name = "FuckEducoder - Powered By SunSeaLucky";
result.user.name += " - 新大第一帅哥";
}
resolve(result);
});
});
};
}
resolve(response);
});
});
}
window.fetch = hookFetch;
})();