github violentmonkey/violentmonkey v2.13.1

latest releases: v2.19.0, v2.18.3, v2.18.2...
20 months ago

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 and document-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
  • 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
  • Advanced options:

    • Synchronous injection for scripts that really want to run as early as possible
    • CodeMirror theme
    UI theme (auto/dark/light)
  • Script installation:

    UI shows metadata, code viewer (also for external files), resizable panels
    • 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 of Close 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

Dashboard: script size
Editor: overall size of all values and individual size
Editor: temporary recycle bin in `Values`

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 a data: URI like Tampermonkey
  • Exposed the #hash part in GM_xmlhttpRequest's finalUrl
  • Changed globalThis to point to the sandboxed window
  • 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 or Object: 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.

Don't miss a new violentmonkey release

NewReleases is sending notifications on new releases.