GM_xmlhttpRequest
issue with large responses when using 'fetch' mode
GM_download
in browser API mode
GM_download
and GM_xmlhttpRequest
GM_xmlhttpRequest
Blob
and File
download capabilities to GM_download
console
to make its properties configurable
onurlchange
so it fires on hash changes triggered by pushState
ArrayBuffer
and UInt8Array
objects via GM_xmlhttpRequest
$DATETIME$
variable for use in script templates
window.location
now navigates via background context
GM.cookie.list()
to resolve also if called without an argument
GM_registerMenuCommand
entries reappeared until clicked
GM_xmlhttpRequest
GM_xmlhttpRequest
GM_xmlhttpRequest
retains specified request headers during redirects
@run-in
support
GM_cookie
should be able to access HttpOnly
cookies
GM_xmlhttpRequest
response header separator
@noframes
support in dynamic userScripts mode
GM_download
GM_xmlhttpRequest
GM_xmlhttpRequest
issues
GM_xmlhttpRequest.finalUrl
to include hash components again
GM_registerMenuCommand
issue with non-letter accessKey
s
GM_xmlhttpRequest
cookie issue
GM_xmlhttpRequest
issues with non-ASCII header values
GM_xmlhttpRequest
cookie issue
UserScripts Dynamic Mode
to support real document_start
@sandbox DOM
mode work again
GM_xmlhttpRequest
cookie issue
GM_xmlhttpRequest
cookie issues
GM_registerMenuCommand
if the command was registered multiple times (e.g. from different frames)
GM_download
sometimes downloading files in wrong encoding
GM_cookie
for all versions (HttpOnly
cookie access still only at the beta versions)
partitionKey
support to GM_cookie
cookiePartition
support to GM_xmlhttpRequest
@include
and @match
entry is saved the first time
@include
and @match
entry
Userscript URL detection
to Legacy
GM_webRequest
is not (yet) supported in Manifest V3
GM_xmlhttpRequest
fires only one progress event (you can use responseType
stream
for now)
UserScript API Dynamic
mode scripts that are using a RegExp @require
cause overhead by being injected into every frame
GM_download
to make the name
parameter optional and implemented extraction from the response headers
DOMNodeInserted
and MutationEvent
events
url
property of GM_notification
when no onclick listener is set
GM_download
to initiate downloads in parallel again
xhr.responseXML
of HTTP responses
window.showDirectoryPicker
id
parameter in GM_registerMenuCommand
to update existing commands
tag
in GM_notification
to overwrite existing notifications
url
property in GM_notification
to open a new tab on click (can be cancelled by onClick
event via preventDefault
)
url
nor a tag
was specified
GM_download
to prevent frequent triggering of onload
1.0-0.3
is now considered a lower version number than 1.0
window
addEventListener
to support EventListenerObject
s
title
option to GM_registerMenuCommand
JavaScript
-mode @sandbox
, which may require cloneInto
and friends for unsafeWindow
property modificationGM_registerMenuCommand
to prevent automatic closing of the popup on click
GM_xmlhttpRequest
FormData key-value order
getPlatformInfo
response
document.write
document.write
was called
GM_xhr.redirect
is set to manual
Add GM functions to this or window
GM_xhr.redirect
option support with one of follow
, error
or manual
as possible value
GM_info.userAgent
in favor of GM_info.userAgentData
with all properties of NavigatorUAData and some "high entropy" values
GM.download(url, name)
GM_info.userAgent
GM_setValue
with binary content
GM_deleteValue
to really delete values also in background
undefined
values as well
wrappedJSObject
compatibility option by default
GM_unregisterMenuCommand
GM.saveTab
@sandbox
always default to raw
console
methods enumerable again
@resource
SVG handling
GM_xmlhttpRequest
streams to be canceled
GM_download.details.conflictAction
(works only in browser API mode)
GM_xmlhttpRequest
upload.onprogress support
@require
s
@sandbox
support with possible values 'raw', 'JavaScript' and 'DOM'@sandbox
is omitted.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.unsafeWindow
access. If enabled these scripts are executed inside the extension context or at any other enabled context otherwise.document.addEventListener('DOMContentLoaded', ...)
delayed event dispatching for document-start
scripts executed later than the event
@require
s
@require
and @resource
content is not updated by default anymore unless the script was updated
@include
a little bit more like @match
if ://
is present and add an option to control @include
's behavior@include *://tmnk.net/*
to match pages at tmnk.net
only, but it also matches https://example.com/?http://tmnk.net/
.@include
s 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.
importScripts
force reloads the page
GM_getValue
and GM_xmlhttpRequest
response prototype confusion
GM_setValue
and include enumerable array values of the prototype chain as well
@connect *
work with requests to IPs and hostnames (like localhost) again
GM_getValue
to return undefined
as value
@unwrap
tag
GM_xmlhttpRequest
to forward status and statusText in fetch mode once available
GM_xmlhttpRequest
JSON array response
GM_xmlhttpRequest
mode
@grant
as well as header tags in general
@require
or @resource
couldn't be loaded
GM_xmlhttpRequest
event timings and make response readable on request errors as well
GM_notification.highlight
focus the window as well
GM_registerMenuCommand
callbacks
GM_openInTab
GM_xmlhttpRequest.responseType
'stream' support
GM_xmlhttpRequest.responseType
is set to 'document'
GM_notification
sometimes not using the given image
DOMContentLoaded
being fired after the load
event
GM_setStyle
/GM_addElement
of document-start
scripts in case of very early script execution
@include
's favicon can't be loaded
GM_download
calls in non-native mode if executed too quickly one after the other
GM_xmlhttpRequest
issues in combination with page CSPs
GM_xmlhttpRequest
responses
GM_xmlhttpRequest
data might be available at readyState 3 now
GM_info.version
being undefined
@icon
tag showing the domain's favicon if a URL is available
@require
or @match
statement(like all other scripts)
@match
hostname and scheme case insensitive by default
GM_xmlhttpRequest
exceptions related to responseType 'document' and 'text'
@connect
permission request handling
GM_xmlhttpRequest
requests
GM_download.details.headers
GM.setClipboard
GM_deleteValue
GM_addScript
by GM_addElement
support to workaround page CSP issues
eslint:recommended
GM_xmlhttpRequest
: Fix protocol-relative URLs
GM_xmlhttpRequest
: Fix reported status
of requests in progress
GM_info.isFirstPartyIsolation
GM_registerMenuCommand
is executed
GM_xmlhttpRequest.finalUrl
available on progress events as well
GM_notification
silent option
GM_notification
onclose listener
GM_notification
user interaction mandatory if possible
GM_xmlhttpRequest
onabort callback
GM_xmlhttpRequest
blob response type property
GM_cookie
for official beta versions
GM_cookie
support for now
GM_webRequest
redirect via from/to
GM_xmlhttpRequest
which could lead to crashes
GM_xmlhttpRequest
header modification at Chrome 72+
GM_openInTab.name
GM_xmlhttpRequest.finalUrl
at Chrome 70+
.*.*
GM_xmlhttpRequest
with responseType
'document' or 'json' which could crash the browser
tampermonkey.net
GM_xmlhttpRequest.responseType
'document' support
GM_registerMenuCommand
usage
globals
definition work
@resource
and @require
)
zip.js
by JSZip
GM_tabs
data on tab close
GM_download
events sometimes being fired too early
@downloadURL none
support
GM_notification
click listener
GM_download
progress events
GM_download.abort
GM_openInTab.name=
or GM_openInTab.close
was used at more than one tab
GM.openInTab
setParent
option
@require
and @resource
feature icons a link to the script's externals tab
@require
and @resource
content editable (if applicable)
userstyles.org
as known script source and add includes
on installation if no @include
is set
window.name
to be set in sandbox mode | thanks to Mahab
GM.API
names and make more functions return promises
GM_xmlhttpRequest
Instant Injection
mode
@resource
mime type detection
GM_*
API usage stats
Instant Injection
mode
@name:zh_CN
)
GM_xmlhttpRequest.responseType
'document' support
GM_openInTab
support the setParent
flag
@connect
, @include
, @match
and @exclude
changes | thanks to nux
GM_webRequest
and @webRequest
support - please discuss this API here
GM_xmlhttpRequest
header issues | thanks to scriptmaster
GM_xmlhttpRequest
headers to get deleted (by setting to null)
GM_xmlhttpRequests
@require
related errors at the page console
GM_xmlhttpRequest.responseHeaders
to contain 'Set-Cookie' items as well
auxclick
event listener to recognize middle mouse clicks at Chrome 55
fast script injection mode
(disabled by default)
fast script injection mode
, because it causes problems with iframes even when disabled
GM_openInTab
now opens tabs in background if no option is given
GM_addStyle
now returns the injected style tag
@match
again
GM_xmlhttpRequest
requests (not completely working in fetch mode)
GM_xmlhttpRequest.data
FormData support (Chrome 51+ or Firefox required)
GM_xmlhttpRequest.url
now supports Location and URL objects
GM_xmlhttpRequest
response header format if fetch (== anonymous) is used
GM_xmlhttpRequest
failed due to @connect
@grant none
supersede all other @grants again | thanks to terjanq
document.write/document.open
fixes
document.write
was called
@connect
error messages at the request source tab
GM_xmlhttpRequest
to access same-origin URLs
GM_xmlhttpRequest.fetch/anonymous
encoding
@connect
+ relative URLs
x-userscript-meta
is supported
GM_xmlhttpRequest.headers.cookie
support
@grant none
is set
@connect
dialogs
@connect
dialog twice (due to a redirect) and both times 'Always allow' is choosen | thanks to CptPicard
GM_getTabs
, GM_getTab
and GM_saveTab
being undefined
GM_addStyle
ignore CSPs
@connect
related translations
@connect
related strings
@match
statement to make a script run
no-cache
option set
@grant
statement in order to access GM_* functions
@connect
statements (Allow specials, domains, IPs or localhost)
GM_xmlhttpRequest
binary mode encoding
@connect-src
to @connect for more expressiveness (the old name will still work)
GM_xmlhttpRequest
requests of scripts using * as @connect-src
value
GM_xmlhttpRequest
requests
DOMNodeInserted
event repeating for document-start scripts
GM_xmlhttpRequest
requests only to predefined domains
GM_xmlhttpRequest
as well
GM_getResourceURL
sometimes returned just a base64 encoded string
GM_openInTab.focus
and close
GM_info.matches
GM_xmlhttpRequest
header support as much as possible
GM_info.version
@grant
is not none | thanks to zanetu
GM_xmlhttpRequest.onloadstart
support
GM_openInTab
defaults according to issue #209
@match
rules
@match
matches any port of a host
GM_xmlhttpRequest.finalUrl
for URLs with special characters
GM_xmlhttpRequest
: fix finalUrl
in case two Tampermonkey extensions are running
GM_download
support dataURIs
confirm
, alert
and prompt
name
property of tab opened by GM_openInTab
is set
DOMContentLoaded
events
document-idle
support
document-end
scripts to run slightly earlier
window.name
of windows opened via GM_openInTab
to be set
GM_info
that reflects the according user setting
GM_xmlhttpRequest
: make finalUrl
always contain fully qualified URLs
@icon
for notifications
GM_xmlhttpRequest
calls that return a large amount of data
@require
order is preserved also if some items need to be loaded first
document.evaluate
calls that don't make a find for elements that aren't part of the DOM
@grant none
@grant
directive is set
GM_download
invocation with URL and name parameter
GM_xmlhttpRequest
and GM_download
closed
property and an onclose
listener to the GM_openInTab
return value
@resource
and @require
usage at the dashboard
externals
tab to the script view
@require
and @resource
data at Tampermonkey's internal DB
disabled
icon only if the page is blocked for extensions or Tampermonkey is disabled
@require
or @resource
request timeouts
@grant none
chrome.i18n.getMessage
with numeric parameters
@match
expressions before adding them to the user excludes
window.frames
variable
Accept: text/x-userscript-meta
to the request headers when checking for script updates
window.location
promises
for cleaner code
DOMContentLoaded
is fired before the load event
GM_unregisterMenuCommand
localStorage
current tab
, new tab
, default
)default
means to create a new tab for the buggy Chrome versions 31 and 32 and to use the current tab otherwise
@resource
of @run-at document-start scripts
GM_xmlhttpRequest
callbacks to use the XMLHttpRequest status enumeration (this.DONE, this.OPENED, ...)
GM_xmlhttpRequest
with responseType option (if set there is still no cross-origin support)
@resource
and @require
retrieval
@resource
s and @require
data a little bit more often
GM_xmlhttpRequest
cookies if the source tab is in incognito mode
@grant none
work if the unsafeWindow retrieval is set to native
@resource
and @require
objects
@resource
URLs
@resource
in association with binary data and 'file://' URIs
@grant none
@grant none
@match
interpretation to allow any URL that is on the given domain (make '*.foo.de' allow 'bar.foo.de' and also 'foo.de')
@resource
s and @requires from being cached again
@match
statement
GM_xmlhttpRequest
headers
GM_xmlhttpRequest
for Chrome 26
GM_xmlhttpRequest
for Chrome < 27 and the 'Native' unsafeWindow retrieval method
@match
to work more like it's stated here: https://developer.chrome.com/docs/extensions/mv2/match_patterns/
@require
and @resource
@grant
tag (including 'none')
GM_xmlhttpRequest
to handle relative paths too
GM_xmlhttpRequest
on pages with a very strict CSP | thanks to Anaximelis @match
statements at the "Sites" column too
GM_openInTab
{ active: _true_|false, insert: true|_false_ }
@resource
- overideMimetype is now used as content-type at response headers
GM_info
for GM compatibility
@resource
tags
@match
and @include statements (newly installed scripts only | uso:89322)
@require
statements that refer to local files (I swear this was working some days ago... -_-)
@match
and @nocompat tag to detect Chrome aware scripts that don't need FF compatiblity
GM_xmlhttpRequest
headers (user-agent, referer, ...) -> needs webRequest permission
GM_openInTab
return a object with a close function
@require
tag... sorry for any inconvenience