From 5258d76d8ac29a83cca08491358e2ea187ee3ee5 Mon Sep 17 00:00:00 2001 From: JingMatrix Date: Sat, 26 Aug 2023 21:28:42 +0200 Subject: [PATCH] Update docs on Tampermonkey APIs --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c3db42c2..1340f1e9 100644 --- a/README.md +++ b/README.md @@ -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))