Tampermonkey® by Jan Biniok

Recent Changes

4.20.6187
2023-08-29
General
Add a title option to GM_registerMenuCommand
Add script version number when saving a script
Content-security-policy (CSP) directives are not relaxed by default anymore
Notes:
  • In Chrome script injection should work as usual but some userscripts might depent on a relaxed CSP
  • In Firefox, if the page CSP blocks injection, userscripts are now injected into a JavaScript-mode @sandbox, which might require cloneInto and friends for unsafeWindow property modification
  • The old behavior can be restored by setting 'Modify existing content security policy (CSP) headers' to 'Yes'
  • This change helps to better comply with the Mozilla add-on development policies
Locally modified scripts are still not updated, but now can be reverted by a manual update and confirmation
Add an option to GM_registerMenuCommand to not auto close the popup on click
Fix GM_xmlhttpRequest FormData key-value order
Fix ESLint to allow top-level await
Fix BSD issue due to wrong getPlatformInfo response
Regression
Fix tab opening from extension pages
Locales
Update Italian translation | thanks to bovirus
Update Portuguese-Brazil translation | thanks to igorruckert
Update Japanese translation | thanks to shirayuki
Update Russian translation | thanks to ACherepkov1989
Update Turkish translation | thanks to selimsumlu
Update Chinese (traditional) translation | thanks to 5idereal
Update French translation | thanks to Juknum
UI
Allow tabs to be scrolled horizontally if too many tabs are present
Always start search-as-you type from the current position
4.19.6183
2023-05-03
General
Additional fixes related to document.write
Fix the active script count when an embedded frame is removed
Fix issues when document.write was called
Fix cookies response headers if GM_xhr.redirect is set to manual
UI
Introducing Tam, your helpful assistant for getting started
Confirm script deletion in the dashboard if the trash is disabled
Locales
Show a localized extension name to Chinese users
Update Italian translation | thanks to bovirus
Sync
Make TamperDAV script change detection work regardless of boot order
When using WebDAV, add a trailing slash notation to collection names as suggested by the spec
Fix issues regarding enabling and disabling sync
4.19.6180
2023-03-13
General
Fix automatic detection mode of Add GM functions to this or window
Add GM_xhr.redirect option support with one of follow, error or manual as possible value
Remove GM_info.userAgent in favor of GM_info.userAgentData with all properties of NavigatorUAData and some "high entropy" values
Fix disappearing 'Yes' value of the 'Modify existing content security policy headers' option
Fix GM.download(url, name)
Add experimental GM_info.userAgent
UI
Show more site icons per script
Search editor as you type
Assure editor search results are scrolled in view
Locales
Localize extension name and description
4.19.6177
2023-01-30
General
Fix GM_setValue with binary content
Fix sometimes broken userscript link in stack trace
Allow cloud backups to be downloaded
ESLint updated to 8.32.0
Fix menu command listeners sometimes being executed multiple times
Fix GM_deleteValue to really delete values also in background
Make the storage editor show undefined values as well
Internal cleanup and rework for manifest v3
Locales
Update Italian translation | thanks to bovirus
Update Japanese translation | thanks to shirayuki
Update Chinese (simplified) translation | thanks to gin3715
Update Russian translation | thanks to Tyemak
Experimental
Support userscript editing at vscode.dev if the Tampermonkey Editors extension is installed
4.19.6175
2022-11-09
Chrome >= 71, Firefox >= 65
General
Internal rework and cleanup
Disable wrappedJSObject compatibility option by default
Fix GM_unregisterMenuCommand
Fix GM.saveTab
Make @sandbox always default to raw
Make console methods enumerable again
UI
Improve visualization of blacklisted scripts
Sync
Don't disable script updates on sync triggered change imports
4.18.6168
2022-09-19
General
RC2
Fix @resource SVG handling
UI
Allow script tabs to be closed via middle mouse click
Locales
Add Macedonian translation | thanks to EntityPlantt
4.18.6167
2022-09-02
General
RC1
Allow GM_xhr streams to be canceled
Add some more entries to the download file extension whitelist
Add GM_download.details.conflictAction (works only in browser API mode)
UI
Add a close button to the header of some more dialogs
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.
4.18.6166
2022-07-18
General
Add GM_xhr.upload.onprogress support
UI
Fix script toggle element if darker theme is enabled
4.18.6165
2022-06-15
Regression
Fix issues with some @requires
Fix sometimes not working script injection at Chrome after updating from 4.17.x
Fix execution of some scripts
Fix GM_addElement to set id properties correctly
Fix instant mode issues
Cleanup logging
General
Add .webp to the download whitelist
Add some more editor shortcuts
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
UI
Show script sync log messages at the settings page
Sync
Dropbox: avoid upload of identical content
Locales
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
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
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
General
Minor internal cleanup
4.16.6159
2022-04-01
General
Sandbox improvements
External @require and @resource content is not updated by default anymore unless the script was updated
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
4.16.6158
2022-03-23
General
Sandbox improvements
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
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
Regression
Fix saving settings inside a section with a save button
4.15.6154
2022-03-01
Regression
Fix editor content search
Locales
Update Turkish translation | thanks to Tmp341
4.15.6153
2022-02-25
General
Allow userscript installation via drag and drop to options page also in case local file access is disabled
Fix prototype confusion in sandbox mode
Fix GM_getValue and GM_xmlhttpRequest response prototype confusion
Fix GM_setValue and include enumerable array values of the prototype chain as well
Fix sandbox window to have Object prototype methods agin
Fix custom ESLint config
Add known globals to editor auto-suggestion again
Make @connect * work with requests to IPs and hostnames (like localhost) again
UI
Fix script positioning via drag and drop
Decrease extension size by removing jQuery dependency
4.14.6152
2022-01-05
General
Allow GM_getValue to return undefined as value
Improve JavaScript scriptlet support via @unwrap tag
Fix GM_xmlhttpRequest to forward status and statusText in fetch mode once available
Fix some rare exceptions happening in the wild
Sandbox improvements
Locales
Update Japanese translation | thanks to shirayuki
Update Portuguese-Brazil translation | thanks to igorruckert
Update Chinese (simplified) translation | thanks to xiaopangju
4.14.6151
2021-12-20
Regression
Fix unintentionally overwritten variable in @grant none mode
Microsoft Edge
Initial BETA release