格式化、添加用户脚本调试模板
This commit is contained in:
parent
cdce46984b
commit
e2e746e6ea
@ -0,0 +1,22 @@
|
|||||||
|
// ==UserScript==
|
||||||
|
// @name Debug Userscript
|
||||||
|
// @namespace https://github.com/einverne/userscripts
|
||||||
|
// @version 0.1
|
||||||
|
// @description This is a debug script to load userscripts from local file system. NOTICE, you need to turn on Allow access to file URLs to @require local file https://www.tampermonkey.net/documentation.php
|
||||||
|
// @author Ein Verne
|
||||||
|
// @match http*://*
|
||||||
|
// @include http://*
|
||||||
|
// @include https://*
|
||||||
|
// @include *
|
||||||
|
// @grant GM_xmlhttpRequest
|
||||||
|
// @grant GM_addStyle
|
||||||
|
// @grant GM_getResourceText
|
||||||
|
// @require {{file path}}
|
||||||
|
// ==/UserScript==
|
||||||
|
|
||||||
|
(function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
console.log("debug script start here");
|
||||||
|
// Your code here...
|
||||||
|
})();
|
||||||
@ -10019,9 +10019,12 @@ z-index:100001;
|
|||||||
if (id !== null) return;
|
if (id !== null) return;
|
||||||
p.innerHTML = '状态:已开';
|
p.innerHTML = '状态:已开';
|
||||||
id = setInterval(async () => {
|
id = setInterval(async () => {
|
||||||
let res = await (await fetch(url + uid.value)).text();
|
let res = await (await fetch(url + uid.value, {
|
||||||
|
headers: { 'X-Requested-With': 'XMLHttpRequest' },
|
||||||
|
referrer: "loader.php?sid=attack&user2ID=" + uid.value
|
||||||
|
})).text();
|
||||||
console.log(count++, JSON.parse(res.split('<div')[0]));
|
console.log(count++, JSON.parse(res.split('<div')[0]));
|
||||||
}, 2000);
|
}, 500);
|
||||||
});
|
});
|
||||||
|
|
||||||
stop.addEventListener('click', () => {
|
stop.addEventListener('click', () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user