mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
优化油猴脚本
This commit is contained in:
@@ -156,7 +156,7 @@ var i = 1;
|
||||
async function getSite() {
|
||||
return new Promise((resolve, reject) => {
|
||||
GM_xmlhttpRequest({
|
||||
url: `${ptools}${path}?url=${document.location.origin + '/'}&token=${token}`,
|
||||
url: `${ptools}${path}?url=${document.location.host + '/'}&token=${token}`,
|
||||
method: "GET",
|
||||
responseType: "json",
|
||||
onload: function (response) {
|
||||
|
||||
Reference in New Issue
Block a user