// ==UserScript==
// @name 查看评分
// @version 0.2.8
// @include https://www.mcbbs.net/pinfen
// @author xmdhs
// @description 查看评分。
// @license MIT
// @namespace xmdhs.top
// @downloadURL none
// ==/UserScript==
(async function () {
try {
await fetch(`https://www.mcbbs.net/?new=no&mobile=no`)
} catch (error) {
console.error(error)
}
document.write(`
主页
因为 mcbbs 关闭了 api,用户脚本版本已失效,请使用软件版本。
下载
总之懒得弄界面,就这样吧
在下面那个框中输入 uid,然后回车
`)
document.close();
var t;
window.addEventListener("load", () => {
document.querySelector("#type").addEventListener("change", () => {toanalyze()})
document.getElementById("form").addEventListener("submit", function (event) {
event.preventDefault();
if (!t) {
t = true;
Form(() => {
t = false;
});
} else {
alert("一次只能查询一个用户")
}
})
})
})();