Skip to content

v2.16.0

Compare
Choose a tag to compare
@github-actions github-actions released this 25 Oct 10:57
· 217 commits to master since this release

Notable changes since 2.15.0:

  • New menu commands to open settings, update matched scripts, reload the page without userscripts
    pic

  • Context menu for the icon
    image

  • update:

    • disallow editing auto-updated scripts by default as long as the update option is enabled + an option to allow edits for those who isn't afraid to lose their changes next time the script is auto-updated
      pic
    • check only 2 scripts simultaneously when updating all scripts
    • disable browser cache when checking for an update
    • force a re-download from server when manually checking an individual script for update
    • allow manually updating a script in the dashboard even if its update option is disabled in the editor, the icon is hollowed in this case: image
  • Chrome 86+: tracking of edits in a local file by drag'n'dropping it into any Violentmonkey page/popup. Now you don't need to enable the unsafe access to file URLs in chrome://extensions page for Violentmonkey and you don't need to install a local HTTP server. To make life even easier you can assign a hotkey to activate the extension's popup and press it while dragging the file, then drop it inside.

  • use 'nonce' of the page in Firefox to automatically inject in page mode (examples: twitter, reddit).

  • CtrlS or S hotkey in text fields inside Violentmonkey's advanced options section

  • Alt or key or double-click to select the script name when sorting by execution order

  • added keyboard navigation in the list of @require/@resource viewer

  • Added Undo button in the info bubble shown after importing the backup file

  • minimum Chrome version is 61

  • New installation buttons:

    image

    You can click the checkbox to set the default button and enable the hotkey CtrlEnter or Enter:
    image

    The next button's checkbox overrides the previous button's checkbox:
    image

    For local files:
    image

    Auto-reload of the tab:
    image

  • GM_info:

    • added GM_info.isIncognito boolean
    • added GM_info.platform.brand (also exposed as browserBrand), it's the most unique brand from navigator.userAgentData.brands (currently supported only by Chrome/ium 90 and newer), it's guaranteed to be unaltered by another extension in the page.
    • added shorter aliases name and version in GM_info.platform for browserName and browserVersion.
  • GM_notification:

    • added zombieTimeout, tag, silent options;
    • when onclick function is specified the notification will be shown until the user clicks it (in Chrome).
  • GM_registerMenuCommand: new parameter to specify the command's hint, auto-close behavior, and an id to change the command without recreating it.

Notable fixes:

  • old code was injected under certain conditions when editing scripts, #1793
  • old GM storage was used when the tab was reloaded quickly, #1899
  • pre-rendering and bfcache in Chrome
  • script installation in sleazyfork
  • script version detection on greasyfork
  • GM_getResourceURL in Chrome 109 and newer;
    in earlier versions of Violentmonkey please use GM_getResourceURL('name', false) as a workaround
  • GM_log in Chrome 109+
  • GM_xmlhttpRequest:
    • stop sending duplicate readystatechange 4 events in Firefox
    • improve internal performance for a huge text response

Commit log: v2.15.0...v2.16.0