Tampermonkey® by Jan Biniok

近期变动

4.19.0
2023-05-24
General
如果安装了Tampermonkey编辑器扩展,在vscode.dev支持用户脚本编辑
允许下载云备份
修复嵌入帧移除时活动脚本计数的问题
修复'添加GM函数到this或window'选项的自动检测模式
修复'修改现有内容安全策略头'选项的'是'值消失的问题
修复 GM.download(url, name)
修复 GM_setValue 处理二进制内容的问题
修复堆栈跟踪中的用户脚本链接有时无法打开的问题
修复菜单命令监听器有时被执行多次的问题
修复 GM_deleteValue 在背景中真正删除值的问题
使存储编辑器也显示 undefined
修复调用 document.write 后出现的问题
为manifest v3进行内部清理和重构
改善黑名单脚本的可视化
将ESLint更新到8.32.0
Firefox
使@sandbox JavaScript模式下的cloneInto、exportFunction和createObjectIn能够工作
修复启用Tampermonkey时的XML查看器问题
修复@sandbox JavaScript模式下的GM_addElementnode参数
修复移动端仪表板视图
修复在移动设备上的导出问题
使GM_openInTabsetParent选项在容器内工作
在Android上点击后关闭操作菜单
改善在Android上的脚本安装
UI
引入Tam,您的入门帮助助手
每个脚本显示更多站点图标
输入时搜索编辑器
确保编辑器搜索结果在视图中滚动
如果垃圾箱被禁用,在仪表板中删除脚本时进行确认
Sync
无论启动顺序如何,使TamperDAV 脚本更改检测正常工作
使用WebDAV时,按照规范将尾部斜杠符号添加到集合名称
修复启用和禁用同步的问题
Locales
本地化扩展名和描述
更新意大利语翻译 | 感谢bovirus
更新日语翻译 | 感谢shirayuki
更新简体中文翻译 | 感谢gin3715
更新俄语翻译 | 感谢Tyemak
更新丹麦语翻译 | 感谢jhertel
Experimental
添加实验性的GM_info.userAgentData,其中包含NavigatorUAData的所有属性以及一些"高熵"值
4.18.1
2022-11-13
如果在更新后遇到不可靠的脚本注入,请查看本常见问题条目
General
修复 GM_unregisterMenuCommand
修复 GM.saveTab
@sandbox 总是默认为 raw
console 方法再次变为可枚举
默认禁用 wrappedJSObject 兼容性选项
内部重构和清理
Firefox
修复 JavaScript 沙盒模式中通过 unsafeWindow 访问变量的问题
修复与 document-start 脚本结合使用时的即时注入问题
修复与外部页面的通信
通过更早注入脚本代码来修复一些 CSP 问题
Sync
修复了在同步触发的变更导入时禁用脚本更新的问题
4.18.0
2022-09-30
Chrome >= 71, Firefox >= 65
General
Experimental @sandbox support with possible values 'raw', 'JavaScript' and 'DOM'
  • 'raw' access means that a script for compatibility reasons always needs to run in page context. At the moment this mode is the default if @sandbox is omitted.
  • 'JavaScript' access mode means that this script needs unsafeWindow access. At Firefox a special context is created which should also bypass all remaining CSP issues. Execution in page context is used as fallback at other browsers.
  • 'DOM' access mode means that the script only needs DOM and no direct unsafeWindow access. If enabled these scripts are executed inside the extension context or at any other enabled context otherwise.
Add an option to configure available sandbox modes
Warning: Any option that enables 'DOM' mode is potentially unsecure. Userscripts that run in extension context have almost full extension permissions and can even modify and install new userscripts.
Remove document.addEventListener('DOMContentLoaded', ...) delayed event dispatching for document-start scripts executed later than the event
Remove toSource object prototype compat option
Allow GM_xhr streams to be canceled
Add GM_xhr.upload.onprogress support
Add some more entries to the download file extension whitelist
Add GM_download.details.conflictAction (works only in browser API mode)
Fix @resource SVG handling
Add some more editor shortcuts
Remove GM_setTab in favor of the documented GM_saveTab call
UI
Allow script tabs to be closed via middle mouse click
Add a close button to the header of some more dialogs
Fix script toggle element if darker theme is enabled
Locales
Add Macedonian translation | thanks to EntityPlantt
Add Hellenic (Greek) translation | thanks to panos78
Update Chinese (simplified) translation | thanks to iskandarma
Update Portuguese-Brazil translation | thanks to DavidBrazSan
Update Russian translation | thanks to vanja-san
Sync
Add an access token revoke button to some more cloud storage types
Note: make sure to sign out from the service first if you want to login with another account.
Show script sync log messages at the settings page
Dropbox: avoid upload of identical content
Firefox
Use userScript API to execute userscripts
Add container ID to GM_info
Fix script counter at file URLs
Fix sandbox window to have Object.prototype properties
Make GM_xhr multi-account container aware
4.17.6161
2022-04-25
General
Fix issues with heavily increased page loading time caused by some scripts or @requires
UI
Allow drag and drop inside the editor again
Firefox
Try to fix script loading issues caused by 'too much recursion'
Locales
Update Chinese (traditional) translation | thanks to SiderealArt
Update Italian translation | thanks to bovirus
Update Danish translation | thanks to will2022
4.16.6160
2022-04-04
Firefox
Fix iframe issues
General
Minor internal cleanup
Sandbox improvements
External @require and @resource content is not updated by default anymore unless the script was updated
Improved compatibility for userstyles installed as userscript
Add an option to control whether to bind GM API functions to the userscript's execution context and sandbox window (and do it by default only if necessary)
Details: Enabling this makes it very easy for a userscript to accidentally leak its granted powers to the page
Treat @include a little bit more like @match if :// is present and add an option to control @include's behavior
Details: Many script developers expect @include *://tmnk.net/* to match pages at tmnk.net only, but it also matches https://example.com/?http://tmnk.net/.
To improve this, @includes that contain a :// are now interpreted a little bit different. Every * before :// now only matches the URL scheme. Also, if :// is directly followed by a * or a / somewhere, then the first * or all until / are applied to the hostname only.
Fix encoding of userscript file and URL imports
UI
Show script and external resources size in dashboard
Show last updated time as relative time if within 4 weeks or as absolute date otherwise
Fix darker theme quirk
Fix favicons with transparent background
Improve editor menu if advanced editor is disabled
Add a localStorage option to manually disable the linter worker if importScripts force reloads the page