Notable changes since v2.13.0:
-
Injection is quicker and more spoof-resistant, nothing is injected at all if there are no scripts in page context, faster injection for
document-start
anddocument-body
scripts noticeable if you have huge scripts that run at document-end (default mode) or later -
Separate cookies in GM_xmlhttpRequest per container/incognito
-
Popup:
- Added openuserjs.org
(OUJS)
to find scripts
- Added openuserjs.org
-
Options:
- New option:
Group disabled scripts
in popup - New option:
Badge colors
for the icon - New option:
Export to zip
file name is customizable using a subset of moment.js tokens - Faster import from zip
- New option:
-
Advanced options:
- Synchronous injection for scripts that really want to run as early as possible
- CodeMirror theme
-
Script installation:
- The installation button's color and text is different if the script was already installed
- CtrlEnter or ⌘Enterhotkey to confirm installation
Track local file
option can be checked independently ofClose after installation
i.e. the installer will be auto-closed for remote files while local files will be auto-tracked.
-
Editor -> settings tab: added
@noframes
Notable changes for userscript authors:
- Added GM_addElement and
GM.addElement
- Added
@unwrap
meta key to inject scripts "as is" into the global scope of the page, i.e. without our standard function wrapper. - Added GM_getResourceURL second parameter: set it to
false
to produce adata:
URI like Tampermonkey - Exposed the
#hash
part in GM_xmlhttpRequest's finalUrl - Changed
globalThis
to point to the sandboxedwindow
- Changed default
run-at
mode (document-end) to see DOM in a more finalized state on complex sites, same as in Tampermonkey - Speedup when accessing globals like
Array
orObject
: up to 5x in sandboxed mode and up to 50x otherwise ("grantless" mode) - Opening a virtual .user.js URL from devtools Sources or console in a new tab will open it in Violentmonkey editor
- DOM event of the click/hotkey in the popup is available in GM_registerMenuCommand function
window.focus()
will unminimize and focus the tab's window- GM_xmlhttpRequest in Firefox is much faster with huge files.
See https://violentmonkey.github.io/ for more details.