Tampermonkey® by Jan Biniok

近期变动

5.1.0
2024-03-15
It will soon be necessary to enable developer mode to run userscripts via Tampermonkey.
Instructions on how to enable it can be found here.
This release includes significant updates for future Manifest V3 compatibility. Please report any issues here.
General
Updated GM_download to initiate downloads in parallel again
Resolved a failure when accessing xhr.responseXML of HTTP responses
UI
Repaired the 'Sync Now' button
Corrected the 'Save To Disk' button in the editor
Sync
Implemented anonymous requests for WebDAV to prevent overwriting of browser sessions
Fixed WebDAV-based sync in cases of unexpected existing folder structures
Reworked to reduce some authentication requests
Locales
Updated Danish translation | thanks to jhertel
Updated Chinese (simplified) translation | thanks to PaperStrike
5.0.1
2024-01-03
General
Resolved issue with GM_notification url property when no onclick listener is set
No longer displaying script modification conflict warnings when there's no conflict
Resolved an issue with Instant Injection mode when a script requires a local file
Addressed problems related to script installation from certain Gitlab URLs
Removed warning about script updates being disabled upon script modification
UI
Restored application of custom CSS to installation pages
Resolved quirks in the darker theme
Corrected 'replace all' functionality in code editor for certain strings
Chrome
Adjusted popup menu behavior when the page is viewed as a 'shortcut'
Locales
Updated Russian translation | thanks to adem4ik
Updated Vietnamese translation | thanks to IoeCmcomc
Updated Japanese translation | thanks to maboroshin and shirayuki
Updated Italian translation | thanks to bovirus
Known Issues
GM_download starts downloads serialized
5.0.0
2023-11-30
很快,您将需要启用开发者模式才能通过Tampermonkey运行用户脚本
如何启用的说明可以在这里找到。
此版本包含了对未来Manifest V3兼容性的重大更新。请在这里报告任何问题。
Chrome
内容安全策略(CSP)指令默认不再放宽
注:
  • 脚本注入应该按预期工作,但是一些用户脚本可能依赖于放宽的CSP
  • 通过将'修改现有内容安全策略(CSP)头'设置为'是',可以恢复之前的行为
已经抑制了警告消息'现在无法编辑标签'
General
解决了可能导致崩溃的几个内部问题
重构了版本号解析器以支持ISO格式日期
注意:由于这个变化,1.0-0.3现在被认为是比1.0低的版本号
修复了window.showDirectoryPicker
引入了GM_notification tag以覆盖现有通知
添加了GM_notification url属性以在点击时打开新标签页(可以通过onClick事件通过preventDefault取消)
当用户脚本卸载时,通知现在会自动关闭,前提是没有指定urltag
添加了GM_registerMenuCommand id参数以更新现有命令
引入了GM_registerMenuCommand title参数
GM_registerMenuCommand中添加了一个选项,以防止点击时自动关闭弹出窗口
修复了GM_download以防止onload触发过于频繁
进行了与Instant Navigation相关的重构
现在在ESLint配置中接受用户定义的全局变量
增强了沙箱window addEventListener以支持EventListenerObjects
在将脚本保存到磁盘时添加了脚本版本号
本地修改的脚本将不会自动更新,但现在可以通过手动更新和确认进行还原
修复了GM_xmlhttpRequest FormData键值顺序
调整了ESLint以允许顶级等待
解决了由于getPlatformInfo响应不正确导致的BSD问题
现在检测到新的GreasyFork脚本URL
UI
只有在更改被保存后,才能启用立即同步和重置同步
修复了脚本搜索徽章模式以显示准确的数字
当标签过多时,现在可以水平滚动标签
即键即搜始终从当前位置开始
Locales
更新了意大利语翻译 | 感谢 bovirus
更新了巴西葡萄牙语翻译 | 感谢 igorruckert
更新了日语翻译 | 感谢 shirayuki
更新了俄语翻译 | 感谢 ACherepkov1989
更新了土耳其语翻译 | 感谢 selimsumlu
更新了繁体中文翻译 | 感谢 5idereal
更新了法语翻译 | 感谢 Juknum
Known Issues
即时注入模式目前与需要本地文件的脚本不兼容
当在Firefox中启用'始终使用私人浏览模式'时,可能会发生崩溃。建议禁用此设置或降级到版本4.19.0