Skip to content

Commit

Permalink
Update docs on Tampermonkey APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
JingMatrix committed Aug 26, 2023
1 parent fc86daa commit 5258d76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ You can then install UserScripts from popular sources: URLs that ends with `.use

Currently, ChromeXt supports almost all [Tampermonkey APIs](https://www.tampermonkey.net/documentation.php?locale=en):

1. @name (colons and backslashes not allowed), @namespace (backslashes not allowed), @description and so on
2. @match (must present and conform to the [Chrome Standard](https://developer.chrome.com/docs/extensions/mv2/match_patterns/))
1. @name (colons not allowed), @namespace, @description and so on
2. @match (use the [Chrome Standard](https://developer.chrome.com/docs/extensions/mv2/match_patterns/), supports regular expressions)
3. @include = @match, @exclude
4. @run-at: document-start, document-end, document-idle (the default and fallback value)
5. @grant GM_addStyle, GM_addElement, GM_xmlhttpRequest, GM_openInTab, GM_registerMenuCommand (`Resources` panel of eruda), GM_unregisterMenuCommand, GM_download, unsafeWindow (= window)
5. @grant GM_addStyle, GM_addElement, GM_xmlhttpRequest, GM_openInTab, GM_registerMenuCommand (shown in the `Resources` panel of eruda), GM_unregisterMenuCommand, GM_download, unsafeWindow (= window)
6. @grant GM_setValue, GM_getValue (less powerful than GM.getValue), GM_listValues, GM_addValueChangeListener, GM_removeValueChangeListener, GM_setClipboard
7. @require, @resource (Without [Subresource Integrity](https://www.tampermonkey.net/documentation.php#api:Subresource_Integrity))

Expand Down

0 comments on commit 5258d76

Please sign in to comment.