优化油猴脚本

This commit is contained in:
ngfchl
2023-02-09 22:02:31 +08:00
parent 740cbd850f
commit b66bd6a4be
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {