CARVIEW |
Select Language
HTTP/2 200
date: Wed, 30 Jul 2025 07:18:53 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/"9925782c1ecfe8518c4c1b1a9a4156fa"
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=v%2BiFVf4MOUc7PZUCuFaifJX5p3o%2FYa7muikgnPYMfyz0xAvn0au8F2dFO3gutWM7wUYJeRbYDf7Ft%2BkxNsy%2BDgm1dK%2BOuDQXdHDgr8%2Bk3r8Bordy5NzYlGP9irWBW3%2Ff3EzmA%2F%2B%2FPh%2B28up5q42mtDkroKv5b53f59an%2FYU42M5881NxbIqVso74ln9vXq7oh2WpCO7%2BoP5YZWaCjJtylMOlM%2FsYe4UxdsxPxRwHvUZ8nT7Rm6JHyJaHfahdefaakOxytqvc%2BGQnnh2C0%2FdT%2Bw%3D%3D--R72OoT3iM4hwZlB1--51yjT5FaR2FXgn%2Bt5MksbQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2073606138.1753859932; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 07:18:52 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 07:18:52 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: AF40:3A6694:14BC2F2:1904270:6889C75C
Introduce experimental procedural cosmetic operator `:others()` · gorhill/uBlock@152120b · GitHub
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 152120b
committed
Introduce experimental procedural cosmetic operator
The purpose of this new procedural operator is to target
all elements _outside_ than the currently selected set of
elements.
For any element feeding into `others()`, the resultset
of the `others()` operator will include everything else
except:
- the descendants of a subject element
- the ancestors of a subject element
The resultset will contains the siblings of a subject
element _except_ when those siblings are either a
descendant or ancestor of another subject element.
Related discussion:
- https://www.reddit.com/r/uBlockOrigin/comments/slyjzp/
Though this operator is unlikely to be used in default lists,
it opens the door to create specialized filter lists which
purpose is some sort of "reader mode", where everything
_else_ than a selected set of elements are hidden from view.
Examples of usage:
twitter.com##:matches-path(/^/home/) [data-testid="primaryColumn"]:others()
nature.com##:matches-path(/^/articles//) :is(.c-breadcrumbs,.c-article-main-column):others()
The status is currently considered experimental and support
might be removed in the future if it turns out there is no
sufficient usage or if unforeseen difficult issues arise
implementation-wise.:others()
1 parent 9a5acbb commit 152120bCopy full SHA for 152120b
File tree
Expand file treeCollapse file tree
2 files changed
+131
-41
lines changedFilter options
- src/js
Expand file treeCollapse file tree
2 files changed
+131
-41
lines changedsrc/js/contentscript-extra.js
Copy file name to clipboardExpand all lines: src/js/contentscript-extra.js+122-39Lines changed: 122 additions & 39 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
33 |
| - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 |
| |
35 | 37 |
| |
36 | 38 |
| |
37 |
| - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
38 | 48 |
| |
| 49 | + | |
39 | 50 |
| |
40 | 51 |
| |
41 | 52 |
| |
| |||
47 | 58 |
| |
48 | 59 |
| |
49 | 60 |
| |
50 |
| - | |
| 61 | + | |
51 | 62 |
| |
52 |
| - | |
| 63 | + | |
53 | 64 |
| |
| 65 | + | |
54 | 66 |
| |
55 | 67 |
| |
56 | 68 |
| |
57 | 69 |
| |
58 | 70 |
| |
59 | 71 |
| |
60 | 72 |
| |
61 |
| - | |
| 73 | + | |
62 | 74 |
| |
63 | 75 |
| |
64 |
| - | |
65 |
| - | |
| 76 | + | |
| 77 | + | |
66 | 78 |
| |
67 | 79 |
| |
68 |
| - | |
| 80 | + | |
69 | 81 |
| |
| 82 | + | |
70 | 83 |
| |
71 | 84 |
| |
72 | 85 |
| |
| |||
80 | 93 |
| |
81 | 94 |
| |
82 | 95 |
| |
83 |
| - | |
| 96 | + | |
84 | 97 |
| |
85 | 98 |
| |
86 |
| - | |
87 |
| - | |
| 99 | + | |
| 100 | + | |
88 | 101 |
| |
89 | 102 |
| |
90 |
| - | |
91 |
| - | |
| 103 | + | |
| 104 | + | |
92 | 105 |
| |
93 | 106 |
| |
94 |
| - | |
| 107 | + | |
95 | 108 |
| |
| 109 | + | |
96 | 110 |
| |
97 | 111 |
| |
98 | 112 |
| |
99 | 113 |
| |
100 | 114 |
| |
101 | 115 |
| |
102 | 116 |
| |
103 |
| - | |
| 117 | + | |
104 | 118 |
| |
105 |
| - | |
| 119 | + | |
106 | 120 |
| |
| 121 | + | |
107 | 122 |
| |
108 | 123 |
| |
109 | 124 |
| |
| |||
115 | 130 |
| |
116 | 131 |
| |
117 | 132 |
| |
118 |
| - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
119 | 190 |
| |
120 | 191 |
| |
121 | 192 |
| |
122 |
| - | |
| 193 | + | |
123 | 194 |
| |
| 195 | + | |
124 | 196 |
| |
125 | 197 |
| |
126 | 198 |
| |
| |||
151 | 223 |
| |
152 | 224 |
| |
153 | 225 |
| |
154 |
| - | |
| 226 | + | |
155 | 227 |
| |
156 |
| - | |
| 228 | + | |
157 | 229 |
| |
| 230 | + | |
158 | 231 |
| |
159 | 232 |
| |
160 | 233 |
| |
| |||
179 | 252 |
| |
180 | 253 |
| |
181 | 254 |
| |
182 |
| - | |
| 255 | + | |
183 | 256 |
| |
184 | 257 |
| |
185 | 258 |
| |
186 |
| - | |
| 259 | + | |
187 | 260 |
| |
| 261 | + | |
188 | 262 |
| |
189 | 263 |
| |
190 | 264 |
| |
| |||
213 | 287 |
| |
214 | 288 |
| |
215 | 289 |
| |
216 |
| - | |
| 290 | + | |
217 | 291 |
| |
218 |
| - | |
| 292 | + | |
219 | 293 |
| |
| 294 | + | |
220 | 295 |
| |
221 | 296 |
| |
222 | 297 |
| |
| |||
234 | 309 |
| |
235 | 310 |
| |
236 | 311 |
| |
237 |
| - | |
| 312 | + | |
238 | 313 |
| |
239 |
| - | |
| 314 | + | |
240 | 315 |
| |
241 | 316 |
| |
242 | 317 |
| |
| |||
251 | 326 |
| |
252 | 327 |
| |
253 | 328 |
| |
| 329 | + | |
254 | 330 |
| |
255 | 331 |
| |
256 | 332 |
| |
257 | 333 |
| |
258 | 334 |
| |
259 | 335 |
| |
260 | 336 |
| |
261 |
| - | |
| 337 | + | |
262 | 338 |
| |
263 |
| - | |
264 |
| - | |
265 |
| - | |
266 |
| - | |
267 |
| - | |
268 |
| - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
269 | 345 |
| |
| 346 | + | |
| 347 | + | |
| 348 | + | |
270 | 349 |
| |
271 | 350 |
| |
272 | 351 |
| |
| |||
278 | 357 |
| |
279 | 358 |
| |
280 | 359 |
| |
| 360 | + | |
281 | 361 |
| |
282 | 362 |
| |
283 | 363 |
| |
| 364 | + | |
284 | 365 |
| |
285 | 366 |
| |
286 | 367 |
| |
| |||
291 | 372 |
| |
292 | 373 |
| |
293 | 374 |
| |
| 375 | + | |
294 | 376 |
| |
295 | 377 |
| |
296 | 378 |
| |
| 379 | + | |
297 | 380 |
| |
298 | 381 |
| |
299 | 382 |
| |
300 | 383 |
| |
301 | 384 |
| |
302 | 385 |
| |
303 | 386 |
| |
304 |
| - | |
| 387 | + | |
305 | 388 |
| |
306 | 389 |
| |
307 |
| - | |
| 390 | + | |
308 | 391 |
| |
309 | 392 |
| |
310 | 393 |
| |
| |||
313 | 396 |
| |
314 | 397 |
| |
315 | 398 |
| |
316 |
| - | |
| 399 | + | |
317 | 400 |
| |
318 | 401 |
| |
319 |
| - | |
| 402 | + | |
320 | 403 |
| |
321 | 404 |
| |
322 | 405 |
| |
| |||
457 | 540 |
| |
458 | 541 |
| |
459 | 542 |
| |
460 |
| - | |
| 543 | + | |
461 | 544 |
| |
462 | 545 |
| |
463 | 546 |
| |
|
src/js/static-filtering-parser.js
Copy file name to clipboardExpand all lines: src/js/static-filtering-parser.js+9-2Lines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1575 | 1575 |
| |
1576 | 1576 |
| |
1577 | 1577 |
| |
1578 |
| - | |
| 1578 | + | |
1579 | 1579 |
| |
1580 | 1580 |
| |
1581 | 1581 |
| |
| |||
1683 | 1683 |
| |
1684 | 1684 |
| |
1685 | 1685 |
| |
| 1686 | + | |
1686 | 1687 |
| |
1687 | 1688 |
| |
1688 | 1689 |
| |
| |||
1860 | 1861 |
| |
1861 | 1862 |
| |
1862 | 1863 |
| |
| 1864 | + | |
| 1865 | + | |
1863 | 1866 |
| |
1864 |
| - | |
| 1867 | + | |
1865 | 1868 |
| |
1866 | 1869 |
| |
1867 | 1870 |
| |
| |||
1878 | 1881 |
| |
1879 | 1882 |
| |
1880 | 1883 |
| |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
1881 | 1887 |
| |
1882 | 1888 |
| |
1883 | 1889 |
| |
| |||
1893 | 1899 |
| |
1894 | 1900 |
| |
1895 | 1901 |
| |
| 1902 | + | |
1896 | 1903 |
| |
1897 | 1904 |
| |
1898 | 1905 |
| |
|
You can’t perform that action at this time.
0 commit comments