Tampermonkey® by Jan Biniok

Table of Contents

Userscript Header

@name@namespace@copyright@version@description@icon, @iconURL, @defaulticon@icon64, @icon64URL@grant@author@homepage, @homepageURL, @website, @source@antifeature@require@resource@include@match@exclude@run-at@run-in <sup>v5.3+</sup>@sandbox <sup>4.18+</sup>@tag@connect@noframes@updateURL@downloadURL@supportURL@webRequest@unwrap

Application Programming Interface

unsafeWindowSubresource IntegrityGM_addElement(tag_name, attributes), GM_addElement(parent_node, tag_name, attributes)GM_addStyle(css)GM_download(details), GM_download(url, name)GM_getResourceText(name)GM_getResourceURL(name)GM_infoGM_log(message)GM_notification(details, ondone), GM_notification(text, title, image, onclick)GM_openInTab(url, options), GM_openInTab(url, loadInBackground)GM_registerMenuCommand(name, callback, options_or_accessKey)GM_unregisterMenuCommand(menuCmdId)GM_setClipboard(data, info, cb)GM_getTab(callback)GM_saveTab(tab, cb)GM_getTabs(callback)GM_setValue(key, value)GM_getValue(key, defaultValue)GM_deleteValue(key)GM_listValues()GM_setValues(values) <sup>v5.3+</sup>GM_getValues(keysOrDefaults) <sup>v5.3+</sup>GM_deleteValues(keys) <sup>v5.3+</sup>GM_addValueChangeListener(key, (key, old_value, new_value, remote) => void)GM_removeValueChangeListener(listenerId)GM_xmlhttpRequest(details)GM_webRequest(rules, listener)GM_cookie.list(details[, callback])GM_cookie.set(details[, callback])GM_cookie.delete(details, callback)GM_audio.setMute(details, callback?)GM_audio.getState(callback)GM_audio.addStateChangeListener(listener, callback)GM_audio.removeStateChangeListener(listener, callback)window.onurlchangewindow.closewindow.focus<><![CDATA[...]]></>

Settings

Content Script API

Deployment

OverviewCreating the Provisioning JSONHash HandlingManaged Storage SchemaExtension IDsFirefox DeploymentChromium-Based Browsers