-
Notifications
You must be signed in to change notification settings - Fork 173
支持 GM_info.scriptHandler #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
bug
Something isn't working
Comments
测试了下,总算知道为啥了。 // ==UserScript==
// @name ChatGPT Search
// @namespace https://greasyfork.org/scripts/456077
// @version 0.7.0
// @author Zheng Bang-Bo(https://github.com/zhengbangbo)
// @description ChatGPT answers displayed in sidebar after search (Google, Bing, Baidu, DuckDuckGo and DeepL)
// @match https://*.google.com/search*
// ==/UserScript==
(function() {
"use strict";
var monkeyWindow = window;
var GM_info = /* @__PURE__ */ (() => monkeyWindow.GM_info)();
document.createElement("div");
async function main() {
console.log(GM_info);
}
main().catch((e) => {
console.log(e);
});
})(); 在 ScriptCat 中会打印 undefined |
那这应该算是一个bug,我调试一下 |
@zhengbangbo // ==UserScript==
// @name ChatGPT Search
// @namespace https://greasyfork.org/scripts/456077
// @version 0.7.0
// @author Zheng Bang-Bo(https://github.com/zhengbangbo)
// @description ChatGPT answers displayed in sidebar after search (Google, Bing, Baidu, DuckDuckGo and DeepL)
// @match https://bbs.tampermonkey.net.cn/
// @grant none
// ==/UserScript==
console.log('ok');
console.log(GM_info);
(function() {
"use strict";
var monkeyWindow = window;
var GM_info = /* @__PURE__ */ (() => monkeyWindow.GM_info)();
document.createElement("div");
async function main() {
console.log(GM_info);
}
main().catch((e) => {
console.log(e);
});
})(); |
CodFrm
added a commit
that referenced
this issue
Dec 15, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
希望能够支持 GM_info.scriptHandler,用来处理可能存在的兼容性问题。
其他脚本管理器的结果是返回
或许本管理器可以返回
Scriptcat
The text was updated successfully, but these errors were encountered: