We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
对@run-at统一设定为document-start跟document-end的脚本。
@run-at
document-start
document-end
有的document-start会预期执行,有的执行却比设定document-end的还慢。
把脚本导出再导入到tampermonkey,反而不会出现执行顺序问题。
tampermonkey
只设置@run-at,其余默认,内容统一为console.log('执行时期'),
console.log('执行时期')
scriptcat-backup-2024-12-01.zip
预期执行
非预期执行
The text was updated successfully, but these errors were encountered:
需要登录么?没有复现出来,试试打印一下url,看看是不是iframe呢?
Sorry, something went wrong.
没戏,这可能将成为一个未解之谜吧。
也许重构到MV3后问题就会消失,说不定是Chrome在有意无意的降低对MV2的兼容性。
!function(){ console.log('run test document-start', location.href, window.self === window.top) }();
显然,结果依旧
Chrome已经在各种界面,开始要求你移除MV2的插件了。
它要是主动忽略一些对MV2的兼容,只要你还能勉强跑它就不会来给你修也很正常,毕竟再几个月就移除了。
MV3已经在重构了💔,等mv3重构后再看看还会不会有这个问题吧
No branches or pull requests
问题描述
对
@run-at
统一设定为document-start
跟document-end
的脚本。有的
document-start
会预期执行,有的执行却比设定document-end
的还慢。把脚本导出再导入到
tampermonkey
,反而不会出现执行顺序问题。测试示例
测试环境
脚本文件
只设置
@run-at
,其余默认,内容统一为console.log('执行时期')
,scriptcat-backup-2024-12-01.zip
测试输出
预期执行
非预期执行
非预期执行
The text was updated successfully, but these errors were encountered: