See https://violentmonkey.github.io for more info.
Features
-
Editor:
- CodeMirror 5.58.2
- New option to edit in a separate (simple) window
- Click script icon in the dashboard to edit the script
- Switch
code
/settings
/values
/help
panels using AltPageUp and AltPageDown - autocomplete using CtrlSpace
- syntax highlight for embedded HTML and CSS strings
- Confirmation when exiting/reloading with unsaved changes
- Auto-refresh script's values in storage editor when changed elsewhere (e.g. by a userscript)
- Prettify JSON value, show parsing errors
- Navigate in value list via Tab, edit via Enter, delete via CtrlDel
-
@run-at
improvements for the realdocument-start
i.e. running before the page scripts when the document may have no document.head or document.body, the only guaranteed element is document.documentElement-
Chrome
Enabled on pages that open quickly: super fast sites, back-forward navigation, reopening of a closed tab. Not enabled for iframes. Compared to Tampermonkey's instant injection mode in advanced settings, ours is more limited but it wins in two aspects: a) no spamming in devtools console with the SyncXHR deprecation warning and b) super fast sites. As for the slower sites, there's no change, maybe we'll implement it properly someday in Chrome and FF. -
Firefox 59+
Guaranteed for scripts in thepage
injection mode, which is the classic/legacy userscript mode. Not guaranteed for thecontent
mode scripts but chances are there, we just don't have the statistics yet. Unlike Chrome's counterpart, timing for iframes is also improved (inpage
mode only though) so Violentmonkey can be used now with userscripts that absolutely need to run before page scripts.
-
-
New option in advanced settings to toggle exposing of the installed script's version to facilitate installation on the following catalog sites: https://greasyfork.org - enabled by default (just like previously), https://sleazyfork.org - disabled by default
-
Remote resource/require/icon will be rechecked on each save and an error will be shown in the dashboard or editor (or as a notification as appropriate). Furthermore, no-cache mode will be enacted on script update, both automatic and manual. In most cases there's no practical difference, VM simply started to rely on the browser to do the freshness check which should respect the server's time-to-live-in-cache.
-
gmxhr
method
isGET
by default (when not specified or falsy) -
expose all metadata keys in
GM_info.script
Fixes
- Blob requests on Bing with Nano Adblocker, #883
- Custom editor options when opened via the popup, #873
- GM_download and GM_xmlhttpRequest for large files (32MB and bigger) in certain cases + speedup
- Blob URLs in GM_openInTab
- Opening editor from popup in incognito windows, #906
- GM_getResourceText with four-byte UTF-8 codepoints + huge speedup via TextDecoder API
- [FF68+] track local
file://
URLs in script installer - save all custom meta props in editor
- use arraybuffer for gmxhr/gmdl internals in FF, #949
- editing script values, #957
- [FF] don't send expired cookies, #953
- allow installation in incognito tabs, #961
- omit cookie in WebDAV requests, #976
- [Chrome] bug workaround for gmxhr, #980
- semver-compliant comparison of the prerelease chunk
- case-sensitivity adjustments for url matching:
- @include/exclude: case-insensitive like GM4/TM
- @match/exclude-match: only host part is case-insensitive like it should be per extension API (GM4/TM don't implement it correctly at the moment)
Full commit history: v2.12.7...v2.12.8