Tampermonkey® by Jan Biniok

近期变动

5.4.0
2025-09-15
General
Added Blob and File download capabilities to GM_download
Added support for sending ArrayBuffer and UInt8Array objects via GM_xmlhttpRequest
Added the $DATETIME$ variable for use in script templates
Fixed intermittent missing progress events for GM_download and GM_xmlhttpRequest
Fixed response text encoding of fetch-based, non-utf8 GM_xmlhttpRequest
Reworked the storage implementation
Reworked the sandbox console to make its properties configurable
Fixed onurlchange so it fires on hash changes triggered by pushState
Microsoft Edge
Fixed downloading large files in 'native' mode
Fixed importing large scripts
Fixed a GM_xmlhttpRequest issue with large responses when using 'fetch' mode
Fixed the "Message length exceeded" error during script updates
Fixed an issue with downloading large data: URIs
UI
Added commands to jump to the next/previous linter problem
Added an option to show no text, but only the badge on script execution
Improved tag editing for selected scripts
Corrected rendering of SVG script icons
Fixed site favicon issues
Made some more strings translatable (unit, editor commands)
Fixed forced action menu updates
Reworked the UI to better distinguish between scripts that are disabled and those that are enabled but not executed
Sync
Added the user-modified flag to the synced properties to prevent overwriting local changes after a sync
Enhanced OneDrive sync by adopting a standardized URL for file listings
Experimental
Added experimental support for GM_audio
Locales
Updated Greek translation | thanks panos78
Updated Spanish translation | thanks pepe1987 and Texaliuz
Updated Russian translation | thanks Blueberryy
Updated Italian translation | thanks to bovirus
Updated Portuguese-Brazil translation | thanks to igorruckert
Updated Japanese translation | thanks to shirayuki
Updated Vietnamese translation | thanks to IoeCmcomc
5.3.3
2024-12-05
General
修复了通过下拉菜单配置脚本位置时出现的问题
修复了 GM.cookie.list() 在无参数调用时无法正确返回结果的问题
使 GreasyFork 的安装按钮在将脚本移至回收站后能够正常更新
5.3.2
2024-10-29
现在需要启用开发者模式才能通过Tampermonkey运行用户脚本
如何启用开发者模式的说明可以在这里找到。
Microsoft Edge
切换到 Manifest V3
General
标签 支持
添加了 @run-in 支持
添加了一个设置来控制 GM_cookie 是否可以访问 HttpOnly cookies
添加了强制更新外部资源的按钮
存储方法 添加了多值支持
修复了 GM_download 中基于头部的文件名问题
重新设计了脚本实例执行计数
增强了前进/后退缓存导航处理
修复了 GM_registerMenuCommand 中非字母 accessKey 的问题
GM_cookie 添加了 partitionKey 支持
GM_xmlhttpRequest 添加了 cookiePartition 支持
当脚本没有 @include@match 条目时,第一次保存时添加警告信息 问题链接
修复了点击下载链接后存储更改监听器的问题
修复了 GM_registerMenuCommand 在命令多次注册(例如来自不同框架)时的问题
UI
在更新对话框中添加了禁用脚本更新的按钮
改进了编辑器搜索功能
修复了编辑器顶部和底部附近的代码选择问题
修复了移动视图中的编辑器高度问题
在没有任何 @include@match 条目的脚本上显示错误图标
Sync
修复了 WebDAV 的同步问题
MV3
Manifest v3 在安装用户脚本时需要不同的工作流程
注意:您可以通过将 Userscript URL detection 更改为 Legacy 来恢复旧行为
Locales
更新了乌克兰语翻译 | 感谢 Postredioriclick0
更新了巴西葡萄牙语翻译 | 感谢 igorruckert
更新了意大利语翻译 | 感谢 bovirus
更新了日语翻译 | 感谢 shirayuki
Known Issues
GM_webRequest 在 Manifest V3 中尚未支持
GM_xmlhttpRequest 仅触发一个进度事件(目前可以使用 responseType stream
UserScript API Dynamic 模式下,使用正则表达式 @require 的脚本会因注入到每个框架而产生开销
GM_xmlhttpRequest 运行时 串行化 有解决方法
5.1.1
2024-04-22
很快就需要启用开发者模式才能通过篡改猴(Tampermonkey)运行用户脚本
启用方法可以在这里找到。
此版本包含为将来的Manifest V3兼容性的重大更新。请在这里报告任何问题。
General
引入权限编辑器以增强主机权限管理
更新了GM_download,使name参数可选,并从响应头中提取信息
移除了已废弃的DOMNodeInsertedMutationEvent事件的使用
Locales
更新了意大利语翻译 | 感谢 bovirus
更新了巴西葡萄牙语翻译 | 感谢 igorruckert
5.1.0
2024-03-15
General
更新了GM_download,再次并行启动下载
解决了访问HTTP响应的xhr.responseXML时的故障
UI
修复了'立即同步'按钮
在编辑器中修正了'保存到磁盘'按钮
Sync
为WebDAV实施匿名请求以防止浏览器会话被覆盖
修复了在意外的现有文件夹结构情况下基于WebDAV的同步
重新工作以减少一些认证请求
Locales
更新了丹麦语翻译 | 感谢 jhertel
更新了简体中文翻译 | 感谢 PaperStrike