CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 01:41:49 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/"5433a30ae2982996f0ab25ff6e06ae6f"
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 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=Q4%2BAzSjdin%2FbJR47SVxZTWlSCGXBJhzPQ6dgHyskxQULNpzfxLMMY%2BJ%2Bfnsx0gv7ch6cF%2BDCdk6PYZqGZaGD9BoiLCRTHHlUMxAZgNlAxjN5Hm5KPv9cpfMX5Pe6ga%2FnCmTcVB7iRSsWWalFGb67w2lSCbBI57Zet9qvprG6wLZQB4oOInO4srqeJNNXSKGX8usBD8M5eWORV8faFkGNr7rByxLn8LSN9e2BhdTW4yGSayVKDJ62%2F5sa0Ykd6hCM7PDcIXE%2FSLbBV1tvOfR9Mg%3D%3D--VamfFge90f4u3ucG--KHsCBp1%2F5ZDpepC%2BaKMRHw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.179650696.1753494108; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 01:41:48 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 01:41:48 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 908A:1E56AF:96126:EFDA9:6884325C
[mv3] Add support to convert `header=` option to DNR rules · gorhill/uBlock@408b538 · GitHub
Copy file name to clipboardExpand all lines: platform/mv3/make-rulesets.js
Copy file name to clipboardExpand all lines: src/js/static-filtering-parser.js
Copy file name to clipboardExpand all lines: src/js/static-net-filtering.js
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit 408b538
committed
[mv3] Add support to convert
Related issue:
uBlockOrigin/uBOL-home#157
The `header=` option will be converted into DNR's `responseHeaders`
condition.
There will be an attempt to convert regex-based values into DNR-
compatible syntax. Not all regex-based patterns can be converted to
use DNR's patterns with `*` and `?` special characters.
The implementation of `header=` option in uBO has been revisited to
improve compatibility with DNR syntax to minimize burden for list
maintainers when creating `header=` filters compatible with both
uBO and uBOL.
The changes:
- Header names are now case-insensitive by default
- Occurrences of `*` in non-regex-based header values now mean
"matches any number of characters"
- Occurrences of `?` in non-regex-based header values now mean
"matches zero or one character"
At time of commit, and as per MDN, only Chromium-based browsers
currently support filtering on repsonse headers:
https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/HeaderInfo
Also as per MDN, Chromium 121-127 silently ignore the `responseHeaders`
condition, potentially causing undue blocking of network requests.
Currently uBOL support Chromium 122 and later, meaning we need to mind
potential false positives in Chromium 122-127 for filters using
`header=` option.header=
option to DNR rules1 parent c44f043 commit 408b538Copy full SHA for 408b538
File tree
Expand file treeCollapse file tree
4 files changed
+125
-17
lines changedFilter options
- platform/mv3
- src/js
Expand file treeCollapse file tree
4 files changed
+125
-17
lines changedplatform/mv3/make-rulesets.js
Copy file name to clipboardExpand all lines: platform/mv3/make-rulesets.js+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
333 | 333 |
| |
334 | 334 |
| |
335 | 335 |
| |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
336 | 340 |
| |
337 | 341 |
| |
338 | 342 |
| |
|
+54Lines changed: 54 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
| 64 | + | |
| 65 | + | |
64 | 66 |
| |
65 | 67 |
| |
66 | 68 |
| |
| |||
200 | 202 |
| |
201 | 203 |
| |
202 | 204 |
| |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + |
src/js/static-filtering-parser.js
Copy file name to clipboardExpand all lines: src/js/static-filtering-parser.js+32-11Lines changed: 32 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
630 | 630 |
| |
631 | 631 |
| |
632 | 632 |
| |
| 633 | + | |
| 634 | + | |
| 635 | + | |
633 | 636 |
| |
634 | 637 |
| |
635 | 638 |
| |
| |||
3024 | 3027 |
| |
3025 | 3028 |
| |
3026 | 3029 |
| |
3027 |
| - | |
| 3030 | + | |
3028 | 3031 |
| |
3029 | 3032 |
| |
3030 | 3033 |
| |
3031 | 3034 |
| |
3032 | 3035 |
| |
| 3036 | + | |
3033 | 3037 |
| |
3034 |
| - | |
3035 |
| - | |
3036 |
| - | |
3037 |
| - | |
3038 |
| - | |
3039 |
| - | |
3040 |
| - | |
| 3038 | + | |
| 3039 | + | |
| 3040 | + | |
| 3041 | + | |
| 3042 | + | |
| 3043 | + | |
| 3044 | + | |
| 3045 | + | |
| 3046 | + | |
| 3047 | + | |
| 3048 | + | |
| 3049 | + | |
3041 | 3050 |
| |
| 3051 | + | |
| 3052 | + | |
| 3053 | + | |
| 3054 | + | |
| 3055 | + | |
| 3056 | + | |
| 3057 | + | |
| 3058 | + | |
| 3059 | + | |
| 3060 | + | |
| 3061 | + | |
| 3062 | + | |
| 3063 | + | |
| 3064 | + | |
3042 | 3065 |
| |
3043 | 3066 |
| |
3044 | 3067 |
| |
3045 |
| - | |
3046 | 3068 |
| |
3047 | 3069 |
| |
3048 | 3070 |
| |
| |||
3194 | 3216 |
| |
3195 | 3217 |
| |
3196 | 3218 |
| |
3197 |
| - | |
3198 | 3219 |
| |
3199 | 3220 |
| |
3200 | 3221 |
| |
| |||
4043 | 4064 |
| |
4044 | 4065 |
| |
4045 | 4066 |
| |
4046 |
| - | |
| 4067 | + | |
4047 | 4068 |
| |
4048 | 4069 |
| |
4049 | 4070 |
| |
|
src/js/static-net-filtering.js
Copy file name to clipboardExpand all lines: src/js/static-net-filtering.js+35-6Lines changed: 35 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
| 26 | + | |
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| |||
2929 | 2929 |
| |
2930 | 2930 |
| |
2931 | 2931 |
| |
2932 |
| - | |
| 2932 | + | |
2933 | 2933 |
| |
2934 | 2934 |
| |
2935 | 2935 |
| |
2936 | 2936 |
| |
2937 |
| - | |
2938 |
| - | |
2939 |
| - | |
| 2937 | + | |
| 2938 | + | |
| 2939 | + | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
2940 | 2943 |
| |
2941 | 2944 |
| |
2942 | 2945 |
| |
2943 |
| - | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
2944 | 2952 |
| |
2945 | 2953 |
| |
2946 | 2954 |
| |
| |||
2954 | 2962 |
| |
2955 | 2963 |
| |
2956 | 2964 |
| |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
| 2974 | + | |
| 2975 | + | |
| 2976 | + | |
| 2977 | + | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
2957 | 2986 |
| |
2958 | 2987 |
| |
2959 | 2988 |
| |
|
You can’t perform that action at this time.
0 commit comments