CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 01:04:19 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/"d773a3aca746375ac83a888266974930"
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=iWZQ1azHIvn4Lx%2BCSX2Z9IdGh%2B5Qpq4um3Hs%2FqoWHzwS5gfknok3AxDSb7NsG81zWaKBq9L%2FXHXLHN4PqWv777avcBSY4vmJ56aNjcL7dPpxfFuTGqedhdU3Z8gjDytNX6EoRdpyNNA1%2FRgA2Oeh91cVXDPspNscq6UowkzS0aswpJ5lGr7F8WjSKBOS0jwK6mBpt%2F42B3%2FXlVRT1wLOzq%2BQU%2FAZTtRN%2BbwYqbS5x46g2o%2FKfl9bDl7SeUHczJZOB7LUszBAcAejaGa4mmZysA%3D%3D--jrV6%2Fo7s6zq7SIxf--%2FZGbOZJY3MR4zYDZYvDOMQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1818376933.1753405458; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 01:04:18 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 01:04:18 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D044:2D5B28:65843:9E713:6882D812
Blocking large media elements also prevents autoplay, regardless of size · gorhill/uBlock@73ce4e6 · GitHub
Copy file name to clipboardExpand all lines: platform/chromium/vapi-background-ext.js
Copy file name to clipboardExpand all lines: platform/common/vapi-background.js
Copy file name to clipboardExpand all lines: platform/firefox/vapi-background-ext.js
Copy file name to clipboardExpand all lines: src/js/scriptlets/load-large-media-interactive.js
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit 73ce4e6
committed
Blocking large media elements also prevents autoplay, regardless of size
Related issue:
uBlockOrigin/uBlock-issues#3394
When the "No large media elements" per-site switch is toggled on,
it will also act to prevent autoplay of video/audio media, regardless
of their size. This also works for xhr-based media streaming.
If blocking by size is not desirable while blocking autoplay is
desired, one can toggle on "No large media elements" switch while
setting "Block media elements larger than ..." to a very high value.1 parent 0b02c7c commit 73ce4e6Copy full SHA for 73ce4e6
File tree
Expand file treeCollapse file tree
6 files changed
+139
-132
lines changedFilter options
- platform
- chromium
- common
- firefox
- src/js
- scriptlets
Expand file treeCollapse file tree
6 files changed
+139
-132
lines changedplatform/chromium/vapi-background-ext.js
Copy file name to clipboardExpand all lines: platform/chromium/vapi-background-ext.js+21-49Lines changed: 21 additions & 49 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 | 22 |
| |
27 | 23 |
| |
28 | 24 |
| |
| |||
90 | 86 |
| |
91 | 87 |
| |
92 | 88 |
| |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 |
| - | |
97 |
| - | |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 |
| - | |
102 |
| - | |
103 | 89 |
| |
104 | 90 |
| |
105 |
| - | |
| 91 | + | |
106 | 92 |
| |
107 | 93 |
| |
108 | 94 |
| |
109 | 95 |
| |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 |
| - | |
| 96 | + | |
| 97 | + | |
115 | 98 |
| |
116 | 99 |
| |
117 |
| - | |
118 |
| - | |
119 |
| - | |
| 100 | + | |
120 | 101 |
| |
121 | 102 |
| |
122 | 103 |
| |
123 | 104 |
| |
124 |
| - | |
125 |
| - | |
126 | 105 |
| |
127 |
| - | |
128 |
| - | |
129 |
| - | |
130 |
| - | |
131 |
| - | |
132 |
| - | |
133 |
| - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
134 | 114 |
| |
135 | 115 |
| |
136 |
| - | |
137 |
| - | |
138 |
| - | |
139 |
| - | |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
144 |
| - | |
145 |
| - | |
146 |
| - | |
147 |
| - | |
148 |
| - | |
149 |
| - | |
150 |
| - | |
151 |
| - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
152 | 124 |
| |
153 | 125 |
| |
154 | 126 |
| |
155 | 127 |
| |
156 | 128 |
| |
157 |
| - | |
| 129 | + | |
158 | 130 |
| |
159 | 131 |
| |
160 | 132 |
| |
|
platform/common/vapi-background.js
Copy file name to clipboardExpand all lines: platform/common/vapi-background.js+8Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1382 | 1382 |
| |
1383 | 1383 |
| |
1384 | 1384 |
| |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
1385 | 1393 |
| |
1386 | 1394 |
| |
1387 | 1395 |
| |
|
platform/firefox/vapi-background-ext.js
Copy file name to clipboardExpand all lines: platform/firefox/vapi-background-ext.js+6-9Lines changed: 6 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
110 | 110 |
| |
111 | 111 |
| |
112 | 112 |
| |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
113 | 117 |
| |
114 | 118 |
| |
115 | 119 |
| |
116 |
| - | |
117 |
| - | |
118 |
| - | |
119 |
| - | |
120 |
| - | |
121 |
| - | |
122 |
| - | |
123 |
| - | |
124 |
| - | |
| 120 | + | |
| 121 | + | |
125 | 122 |
| |
126 | 123 |
| |
127 | 124 |
| |
|
+27-24Lines changed: 27 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1019 | 1019 |
| |
1020 | 1020 |
| |
1021 | 1021 |
| |
1022 |
| - | |
| 1022 | + | |
1023 | 1023 |
| |
1024 |
| - | |
1025 |
| - | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
1026 | 1027 |
| |
1027 | 1028 |
| |
1028 |
| - | |
1029 |
| - | |
1030 |
| - | |
1031 |
| - | |
1032 |
| - | |
1033 |
| - | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
1034 | 1035 |
| |
1035 | 1036 |
| |
1036 | 1037 |
| |
1037 |
| - | |
1038 |
| - | |
1039 |
| - | |
1040 |
| - | |
1041 |
| - | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
1042 | 1045 |
| |
1043 | 1046 |
| |
| 1047 | + | |
| 1048 | + | |
1044 | 1049 |
| |
1045 |
| - | |
1046 |
| - | |
1047 |
| - | |
1048 |
| - | |
| 1050 | + | |
| 1051 | + | |
1049 | 1052 |
| |
1050 |
| - | |
1051 | 1053 |
| |
1052 | 1054 |
| |
1053 |
| - | |
1054 |
| - | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
1055 | 1058 |
| |
1056 |
| - | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
1057 | 1062 |
| |
1058 | 1063 |
| |
1059 |
| - | |
1060 | 1064 |
| |
1061 | 1065 |
| |
1062 | 1066 |
| |
1063 |
| - | |
1064 | 1067 |
| |
1065 | 1068 |
| |
1066 | 1069 |
| |
|
src/js/scriptlets/load-large-media-interactive.js
Copy file name to clipboardExpand all lines: src/js/scriptlets/load-large-media-interactive.js+49-36Lines changed: 49 additions & 36 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 |
| - | |
32 |
| - | |
33 | 31 |
| |
34 | 32 |
| |
35 | 33 |
| |
36 | 34 |
| |
37 | 35 |
| |
38 | 36 |
| |
39 | 37 |
| |
40 |
| - | |
| 38 | + | |
| 39 | + | |
41 | 40 |
| |
42 |
| - | |
43 |
| - | |
44 |
| - | |
| 41 | + | |
| 42 | + | |
45 | 43 |
| |
46 | 44 |
| |
47 | 45 |
| |
48 | 46 |
| |
49 | 47 |
| |
50 | 48 |
| |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
| 49 | + | |
57 | 50 |
| |
58 |
| - | |
59 | 51 |
| |
60 | 52 |
| |
61 | 53 |
| |
| |||
99 | 91 |
| |
100 | 92 |
| |
101 | 93 |
| |
102 |
| - | |
103 |
| - | |
104 |
| - | |
105 |
| - | |
106 |
| - | |
107 |
| - | |
108 |
| - | |
109 |
| - | |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 |
| - | |
117 |
| - | |
118 |
| - | |
119 |
| - | |
120 |
| - | |
121 |
| - | |
122 |
| - | |
123 |
| - | |
124 |
| - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
125 | 117 |
| |
126 | 118 |
| |
127 | 119 |
| |
| |||
258 | 250 |
| |
259 | 251 |
| |
260 | 252 |
| |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
261 | 274 |
| |
262 | 275 |
| |
263 | 276 |
| |
|
You can’t perform that action at this time.
0 commit comments