CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 01:07:23 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/"2692cb1755268ba0cabf57a697c508c7"
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=pc%2BfbRoSHFj5u2wAonebqQ1CZUDkfVAkRKt3XorknVhno2KYb7fnUKczlVYKXW5m3%2Bu0%2FmgL4RzXbmfMLumF9SU1KMdG8DnTzKzIxYG1fmox%2FzVlXXOIfrVrlq27X9b8%2BJoD9pbWa1eQLCbAaIxkUp0XMRTvhS6d62xrTtTIt15hL3L8RlAtaJsMUR%2FSjprgE8M5V95UvRDAC8JNc9wvT8JUlxewc2uL1lQhhk%2Fp3QOoJ1EtBTYYZGAImPopdIjay2f7Kqj%2FpbiFEG%2BYPef%2B%2Bg%3D%3D--Ahtr94Bq119w0QLy--c2zVHNFmYtIkDwo8sqNWGQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1456251864.1753405642; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 01:07:22 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 01:07:22 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 85EE:15F96:66ECE:A154D:6882D8CA
Add support to parse Adguard's `[$domain=/.../]` regex-based modifier · gorhill/uBlock@58bfe4c · GitHub
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 58bfe4c
committed
Add support to parse Adguard's
The modifier will be converted to one that is compatible with uBO, i.e.:
[$domain=/^trgoals\d+\.xyz$/]##+js(set-constant, isShow, true)
Will parsed as equivalent of:
/^trgoals\d+\.xyz$/##+js(set-constant, isShow, true)
Related issue:
AdguardTeam/FiltersCompiler#204
Reference:
https://adguard.com/kb/general/ad-filtering/create-own-filters/#non-basic-domain-modifier[$domain=/.../]
regex-based modifier1 parent ec3852b commit 58bfe4cCopy full SHA for 58bfe4c
File tree
Expand file treeCollapse file tree
1 file changed
+66
-41
lines changedFilter options
- src/js
Expand file treeCollapse file tree
1 file changed
+66
-41
lines changedsrc/js/static-filtering-parser.js
Copy file name to clipboardExpand all lines: src/js/static-filtering-parser.js+66-41Lines changed: 66 additions & 41 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1988 | 1988 |
| |
1989 | 1989 |
| |
1990 | 1990 |
| |
| 1991 | + | |
1991 | 1992 |
| |
1992 | 1993 |
| |
1993 | 1994 |
| |
| |||
1997 | 1998 |
| |
1998 | 1999 |
| |
1999 | 2000 |
| |
2000 |
| - | |
| 2001 | + | |
2001 | 2002 |
| |
2002 |
| - | |
| 2003 | + | |
2003 | 2004 |
| |
2004 |
| - | |
| 2005 | + | |
2005 | 2006 |
| |
2006 | 2007 |
| |
2007 | 2008 |
| |
| |||
2010 | 2011 |
| |
2011 | 2012 |
| |
2012 | 2013 |
| |
2013 |
| - | |
| 2014 | + | |
2014 | 2015 |
| |
2015 | 2016 |
| |
2016 | 2017 |
| |
| |||
2023 | 2024 |
| |
2024 | 2025 |
| |
2025 | 2026 |
| |
2026 |
| - | |
| 2027 | + | |
2027 | 2028 |
| |
2028 | 2029 |
| |
2029 | 2030 |
| |
2030 | 2031 |
| |
2031 | 2032 |
| |
2032 | 2033 |
| |
2033 | 2034 |
| |
2034 |
| - | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
2035 | 2038 |
| |
2036 | 2039 |
| |
2037 | 2040 |
| |
| |||
2073 | 2076 |
| |
2074 | 2077 |
| |
2075 | 2078 |
| |
2076 |
| - | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
2077 | 2082 |
| |
2078 | 2083 |
| |
2079 | 2084 |
| |
| |||
2129 | 2134 |
| |
2130 | 2135 |
| |
2131 | 2136 |
| |
2132 |
| - | |
| 2137 | + | |
| 2138 | + | |
2133 | 2139 |
| |
2134 | 2140 |
| |
2135 | 2141 |
| |
| |||
2156 | 2162 |
| |
2157 | 2163 |
| |
2158 | 2164 |
| |
| 2165 | + | |
2159 | 2166 |
| |
2160 | 2167 |
| |
2161 | 2168 |
| |
2162 | 2169 |
| |
2163 | 2170 |
| |
2164 | 2171 |
| |
2165 |
| - | |
| 2172 | + | |
2166 | 2173 |
| |
2167 |
| - | |
2168 |
| - | |
2169 |
| - | |
2170 |
| - | |
2171 |
| - | |
2172 |
| - | |
2173 |
| - | |
2174 |
| - | |
2175 |
| - | |
2176 |
| - | |
2177 |
| - | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
2178 | 2182 |
| |
2179 |
| - | |
2180 |
| - | |
2181 |
| - | |
2182 |
| - | |
2183 |
| - | |
2184 |
| - | |
| 2183 | + | |
| 2184 | + | |
2185 | 2185 |
| |
2186 | 2186 |
| |
2187 | 2187 |
| |
| |||
2217 | 2217 |
| |
2218 | 2218 |
| |
2219 | 2219 |
| |
2220 |
| - | |
| 2220 | + | |
2221 | 2221 |
| |
2222 | 2222 |
| |
| 2223 | + | |
2223 | 2224 |
| |
2224 | 2225 |
| |
2225 |
| - | |
2226 |
| - | |
| 2226 | + | |
2227 | 2227 |
| |
2228 | 2228 |
| |
2229 |
| - | |
| 2229 | + | |
2230 | 2230 |
| |
2231 | 2231 |
| |
2232 | 2232 |
| |
2233 | 2233 |
| |
2234 |
| - | |
2235 |
| - | |
2236 |
| - | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
2237 | 2252 |
| |
2238 | 2253 |
| |
2239 | 2254 |
| |
| |||
2252 | 2267 |
| |
2253 | 2268 |
| |
2254 | 2269 |
| |
2255 |
| - | |
| 2270 | + | |
| 2271 | + | |
2256 | 2272 |
| |
2257 | 2273 |
| |
2258 | 2274 |
| |
| |||
2261 | 2277 |
| |
2262 | 2278 |
| |
2263 | 2279 |
| |
2264 |
| - | |
2265 |
| - | |
2266 |
| - | |
2267 |
| - | |
2268 |
| - | |
2269 |
| - | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
2270 | 2283 |
| |
2271 | 2284 |
| |
2272 |
| - | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
2273 | 2288 |
| |
| 2289 | + | |
2274 | 2290 |
| |
2275 | 2291 |
| |
2276 | 2292 |
| |
| |||
2857 | 2873 |
| |
2858 | 2874 |
| |
2859 | 2875 |
| |
| 2876 | + | |
| 2877 | + | |
| 2878 | + | |
| 2879 | + | |
| 2880 | + | |
| 2881 | + | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
2860 | 2885 |
| |
2861 | 2886 |
| |
2862 | 2887 |
| |
|
You can’t perform that action at this time.
0 commit comments