CARVIEW |
Select Language
HTTP/2 200
date: Thu, 31 Jul 2025 01:53:22 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/gorhill/uBlock.git
etag: W/"c1ec664a0023305303b182cb8c101056"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=k0eJhNQhBPJizv6WHp0oYh3U0Lilh207IkjdpOGgD7oTs7ycfOoRykv%2B%2BbOkas88znmm0UXS3r3JmbgYmMGMPHxhCeFiYANZes%2FRoOrmePs%2FH16d2ikjWJAei0Psrj3wytrcquL2mQ%2Fkn%2Bc4AOvhxzT815tHZnxxUHtVTP4hzrA0qCur3ifoNrPeTPzH3UXCD2JPy8S4ONCZPRvi7G%2Fyp4LCt2vY%2FENL359QeUqn21m4jwaE42gdZJrezsk6HJeO%2FswnjpFqJ36WLE1JaAj2ug%3D%3D--Eomb%2B5tHMIpeICgR--LiGCXWsDDeEJxLF%2F0Jxdfg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.262388636.1753926801; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 01:53:21 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 01:53:21 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 9DA8:2198DD:146022:1EE500:688ACC91
Add new procedural cosmetic operator: `:matches-path(...)` · gorhill/uBlock@9dece3b · GitHub
Copy file name to clipboardExpand all lines: src/js/codemirror/ubo-static-filtering.js
Copy file name to clipboardExpand all lines: src/js/contentscript-extra.js
Copy file name to clipboardExpand all lines: src/js/static-filtering-parser.js
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit 9dece3b
committed
Add new procedural cosmetic operator:
Related issue:
- uBlockOrigin/uBlock-issues#1690
New procedural operator: `:matches-path(...)`
Description: this is a all-or-nothing passthrough operator, which
on/off behavior is dictated by whether the argument match the
path of the current location. The argument can be either plain
text to be found at any position in the path, or a literal regex
against which the path is tested.
Whereas cosmetic filters can be made specific to whole domain,
the new `:matches-path()` operator allows to further narrow
the specificity according to the path of the current document
lcoation.
Typically this procedural operator is used as first operator in
a procedural cosmetic filter, so as to ensure that no further
matching work is performed should there be no match against the
current path of the current document location.
Example of usage:
example.com##:matches-path(/shop) p
Will hide all `p` elements when visiting `https://example.com/shop/stuff`,
but not when visiting `https://example.com/` or any other page
on `example.com` which has no instance of `/shop` in the path part
of the URL.:matches-path(...)
1 parent 5d2c295 commit 9dece3bCopy full SHA for 9dece3b
File tree
Expand file treeCollapse file tree
3 files changed
+22
-3
lines changedFilter options
- src/js
- codemirror
Expand file treeCollapse file tree
3 files changed
+22
-3
lines changedsrc/js/codemirror/ubo-static-filtering.js
Copy file name to clipboardExpand all lines: src/js/codemirror/ubo-static-filtering.js+2-3Lines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
417 | 417 |
| |
418 | 418 |
| |
419 | 419 |
| |
420 |
| - | |
421 |
| - | |
422 |
| - | |
| 420 | + | |
| 421 | + | |
423 | 422 |
| |
424 | 423 |
| |
425 | 424 |
| |
|
src/js/contentscript-extra.js
Copy file name to clipboardExpand all lines: src/js/contentscript-extra.js+16Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
105 | 120 |
| |
106 | 121 |
| |
107 | 122 |
| |
| |||
232 | 247 |
| |
233 | 248 |
| |
234 | 249 |
| |
| 250 | + | |
235 | 251 |
| |
236 | 252 |
| |
237 | 253 |
| |
|
src/js/static-filtering-parser.js
Copy file name to clipboardExpand all lines: src/js/static-filtering-parser.js+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1618 | 1618 |
| |
1619 | 1619 |
| |
1620 | 1620 |
| |
| 1621 | + | |
1621 | 1622 |
| |
1622 | 1623 |
| |
1623 | 1624 |
| |
| |||
1793 | 1794 |
| |
1794 | 1795 |
| |
1795 | 1796 |
| |
| 1797 | + | |
| 1798 | + | |
1796 | 1799 |
| |
1797 | 1800 |
| |
1798 | 1801 |
| |
| |||
1826 | 1829 |
| |
1827 | 1830 |
| |
1828 | 1831 |
| |
| 1832 | + | |
1829 | 1833 |
| |
1830 | 1834 |
| |
1831 | 1835 |
| |
|
You can’t perform that action at this time.
0 commit comments