// ==UserScript== // @name M-Team // @namespace https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a // @version 2.2.1 // @author janlay // @loginURL https://kp.m-team.cc/login // @updateURL https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a/raw/m-team.js // @expire 604800e3 // @domain kp.m-team.cc // ==/UserScript== const endpoint = 'https://api.m-team.cc'; exports.run = exports.check = async function(param) { var { message, code } = (await axios.post(`${endpoint}/api/system/hello`)).data; if (code == '0') return 'OK'; throw message; };