summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoofar <toofar@spalge.com>2024-07-27 11:13:16 +1200
committertoofar <toofar@spalge.com>2024-07-27 11:13:16 +1200
commit152571c9cd811c0ccbf94548c9e0f6e03fb92493 (patch)
treeec314cdd61803512c99f453c9a5a6458e63b9e77
parent5003929cdd39557eba5192e50932ac878c990d95 (diff)
parentd65489da9151d9da6e42f08348418ebafb6e8118 (diff)
downloadqutebrowser-152571c9cd811c0ccbf94548c9e0f6e03fb92493.tar.gz
qutebrowser-152571c9cd811c0ccbf94548c9e0f6e03fb92493.zip
Merge pull request #8268 from greenfoo/update_match_patterns_link
Update link to chrome match patterns documentation
-rw-r--r--doc/help/configuring.asciidoc2
-rw-r--r--doc/help/settings.asciidoc2
-rw-r--r--qutebrowser/config/configtypes.py5
-rw-r--r--qutebrowser/utils/urlmatch.py2
4 files changed, 6 insertions, 5 deletions
diff --git a/doc/help/configuring.asciidoc b/doc/help/configuring.asciidoc
index d61743040..54f4f34f9 100644
--- a/doc/help/configuring.asciidoc
+++ b/doc/help/configuring.asciidoc
@@ -31,7 +31,7 @@ patterns. The link:settings{outfilesuffix}[settings documentation] marks such
settings with "This setting supports URL patterns.
The syntax is based on Chromium's
-https://developer.chrome.com/docs/extensions/mv3/match_patterns/[URL pattern syntax].
+https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns/[URL pattern syntax].
As an extension, the scheme and path can be left off as a short-hand syntax, so
`example.com` is equivalent to `*://example.com/*`.
diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc
index 1ff5580c6..629efa96c 100644
--- a/doc/help/settings.asciidoc
+++ b/doc/help/settings.asciidoc
@@ -4882,6 +4882,6 @@ See the setting's valid values for more information on allowed values.
|Url|A URL as a string.
|UrlPattern|A match pattern for a URL.
-See https://developer.chrome.com/apps/match_patterns for the allowed syntax.
+See https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns for the allowed syntax.
|VerticalPosition|The position of the download bar.
|==============
diff --git a/qutebrowser/config/configtypes.py b/qutebrowser/config/configtypes.py
index 60faf9bc3..9fa374712 100644
--- a/qutebrowser/config/configtypes.py
+++ b/qutebrowser/config/configtypes.py
@@ -1984,8 +1984,9 @@ class UrlPattern(BaseType):
"""A match pattern for a URL.
- See https://developer.chrome.com/apps/match_patterns for the allowed
- syntax.
+ See
+ https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns
+ for the allowed syntax.
"""
def to_py(
diff --git a/qutebrowser/utils/urlmatch.py b/qutebrowser/utils/urlmatch.py
index 620e4d143..55b0037dc 100644
--- a/qutebrowser/utils/urlmatch.py
+++ b/qutebrowser/utils/urlmatch.py
@@ -5,7 +5,7 @@
"""A Chromium-like URL matching pattern.
See:
-https://developer.chrome.com/apps/match_patterns
+https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns
https://cs.chromium.org/chromium/src/extensions/common/url_pattern.cc
https://cs.chromium.org/chromium/src/extensions/common/url_pattern.h