@@ -634,11 +634,6 @@ <h3>Keyboard Shortcuts</h3>
634634 < td > < kbd > Ctrl</ kbd > + < kbd > S</ kbd > </ td >
635635 < td > < kbd > Cmd</ kbd > + < kbd > S</ kbd > </ td >
636636 </ tr >
637- < tr >
638- < td > Format Code</ td >
639- < td > < kbd > Alt</ kbd > + < kbd > F</ kbd > </ td >
640- < td > < kbd > Alt</ kbd > + < kbd > F</ kbd > </ td >
641- </ tr >
642637 < tr >
643638 < td > Autocomplete</ td >
644639 < td > < kbd > Ctrl</ kbd > + < kbd > Space</ kbd > </ td >
@@ -670,16 +665,15 @@ <h3>Keyboard Shortcuts</h3>
670665 </ tr >
671666 </ tbody >
672667 </ table >
673- < p class ="help-note " style ="margin-top: 8px; color: #9ca3af ">
674- Notes: Shortcuts reflect the current editor configuration. Formatting uses the
675- built-in beautifier. The minimap can also be toggled from Settings.
676- </ p >
677668 </ div >
678669 </ div >
679670 < div class ="help-tab-content " id ="help-tab-wildcards ">
680671 < div class ="help-section ">
681672 < h3 > URL Matching with Wildcards</ h3 >
682- < p > The URL matching system supports the following patterns:</ p >
673+ < p >
674+ CodeTweak uses a match-pattern style URL matcher. Patterns are split into
675+ < code > scheme://host/path</ code > .
676+ </ p >
683677 < table class ="wildcards-table ">
684678 < thead >
685679 < tr >
@@ -690,19 +684,43 @@ <h3>URL Matching with Wildcards</h3>
690684 </ thead >
691685 < tbody >
692686 < tr >
693- < td > < code > *</ code > </ td >
694- < td > Matches any characters except < code > /</ code > </ td >
695- < td > < code > https://example.com/*</ code > matches any page on example.com</ td >
687+ < td > < code > *://</ code > </ td >
688+ < td > Any scheme (< code > http</ code > or < code > https</ code > )</ td >
689+ < td > < code > *://example.com/*</ code > </ td >
690+ </ tr >
691+ < tr >
692+ < td > < code > *</ code > (host)</ td >
693+ < td > Any host</ td >
694+ < td > < code > *://*/*</ code > matches all URLs</ td >
695+ </ tr >
696+ < tr >
697+ < td > < code > *.example.com</ code > </ td >
698+ < td > Any subdomain of a domain (also matches the bare domain)</ td >
699+ < td > < code > https://*.example.com/*</ code > </ td >
700+ </ tr >
701+ < tr >
702+ < td > < code > *</ code > (path)</ td >
703+ < td > Matches one or more path segments</ td >
704+ < td >
705+ < code > https://example.com/*</ code > matches < code > /a</ code > , < code > /a/b</ code > ,
706+ etc.
707+ </ td >
696708 </ tr >
697709 < tr >
698- < td > < code > **</ code > </ td >
699- < td > Matches any characters including < code > /</ code > </ td >
700- < td > < code > https://**/api/**</ code > matches any API endpoint on any domain</ td >
710+ < td > < code > **</ code > (path segment)</ td >
711+ < td > Matches across path boundaries (including < code > /</ code > )</ td >
712+ < td >
713+ < code > https://example.com/api/**</ code > matches < code > /api</ code > ,
714+ < code > /api/v1/users</ code > , etc.
715+ </ td >
701716 </ tr >
702717 < tr >
703- < td > < code > ?</ code > </ td >
704- < td > Matches any single character</ td >
705- < td > < code > file?.js</ code > matches file1.js, file2.js, etc.</ td >
718+ < td > < code > foo*</ code > (path segment)</ td >
719+ < td > Wildcard within a single path segment</ td >
720+ < td >
721+ < code > https://example.com/foo*</ code > matches < code > /foo</ code > ,
722+ < code > /foobar</ code > , etc.
723+ </ td >
706724 </ tr >
707725 </ tbody >
708726 </ table >
@@ -713,74 +731,18 @@ <h3>URL Matching with Wildcards</h3>
713731 < h3 > GM API Documentation</ h3 >
714732 < p >
715733 The GM API provides special functions for userscripts to interact with the browser
716- and page.< br />
734+ and page.
735+ </ p >
736+ < p >
717737 < a
718- href ="https://wiki.greasespot.net/Greasemonkey_Manual:API "
738+ href ="https://mrblankcoding.github.io/CodeTweak/reference/gm-apis "
719739 target ="_blank "
720740 rel ="noopener "
721741 style ="color: #4ea1ff; text-decoration: underline "
722742 >
723- View the full official GM API documentation
743+ Open the official GM API documentation
724744 </ a >
725745 </ p >
726- < table class ="gmapi-table ">
727- < thead >
728- < tr >
729- < th > API</ th >
730- < th > Description</ th >
731- </ tr >
732- </ thead >
733- < tbody >
734- < tr >
735- < td > < code > GM_setValue</ code > </ td >
736- < td > Stores a value that persists across page loads.</ td >
737- </ tr >
738- < tr >
739- < td > < code > GM_getValue</ code > </ td >
740- < td > Retrieves a value stored with < code > GM_setValue</ code > .</ td >
741- </ tr >
742- < tr >
743- < td > < code > GM_deleteValue</ code > </ td >
744- < td > Deletes a value stored with < code > GM_setValue</ code > .</ td >
745- </ tr >
746- < tr >
747- < td > < code > GM_listValues</ code > </ td >
748- < td > Lists all keys stored with < code > GM_setValue</ code > .</ td >
749- </ tr >
750- < tr >
751- < td > < code > GM_openInTab</ code > </ td >
752- < td > Opens a URL in a new browser tab.</ td >
753- </ tr >
754- < tr >
755- < td > < code > GM_notification</ code > </ td >
756- < td > Shows a desktop notification.</ td >
757- </ tr >
758- < tr >
759- < td > < code > GM_getResourceText</ code > </ td >
760- < td > Gets the content of a resource as text.</ td >
761- </ tr >
762- < tr >
763- < td > < code > GM_getResourceURL</ code > </ td >
764- < td > Gets the URL of a resource.</ td >
765- </ tr >
766- < tr >
767- < td > < code > GM_addStyle</ code > </ td >
768- < td > Injects CSS styles into the page.</ td >
769- </ tr >
770- < tr >
771- < td > < code > GM_registerMenuCommand</ code > </ td >
772- < td > Adds a custom command to the userscript menu.</ td >
773- </ tr >
774- < tr >
775- < td > < code > GM_setClipboard</ code > </ td >
776- < td > Copies data to the clipboard.</ td >
777- </ tr >
778- < tr >
779- < td > < code > GM_xmlhttpRequest</ code > </ td >
780- < td > Makes cross-origin HTTP requests.</ td >
781- </ tr >
782- </ tbody >
783- </ table >
784746 </ div >
785747 </ div >
786748 </ div >
0 commit comments