你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/445697-greasy-fork-api/discussions/198962,源站連結 點此以跳轉。
Get information from Greasy Fork and do actions in it.
The same applys for the GM_openInTab -> GM.openInTab
Okay, got you, will update it right now.
Thanks for the bug report.
Oh, actually, you just should add GM_xmlhttpRequest (or GM.xmlHttpRequest) to the @grants like so:
// @grant GM_xmlhttpRequest
or so:
// @grant GM.xmlHttpRequest
P.S.: Don't forget to update to the last version of Greasy Fork API.
And also GM.openInTab as well!
Hi, first of all thanks for the script.
After I wanted to include the version 2.0 I get the following error.
Method:
GreasyFork.getScriptData('xxxxxx').then(data => {[...]Error:
Uncaught (in promise) ReferenceError: GM_xmlhttpRequest is not definedI got it working for me as follows.
// @grant GM_xmlhttpRequest->// @grant GM.xmlHttpRequestGM_xmlhttpRequest({->GM.xmlHttpRequest({According to information I found about this bug, the function was changed in version 4.0.
https://stackoverflow.com/a/54456646
If it is intended this way it might help someone else who also has this bug.
I am using Chrome 116.0.5845.111 with Tampermonkey v4.19.0
This is my first bug report on GreasyFork, sorry if I forgot anything.