Remove marquee stopping from AntiAutoplay. Instead hide marquees within posts unconditionally.
This commit is contained in:
parent
98cc077921
commit
a57f7950f0
@ -106,7 +106,7 @@ Config =
|
||||
]
|
||||
'Disable Autoplaying Sounds': [
|
||||
false
|
||||
'Stop autoplaying sounds and other annoyances.'
|
||||
'Prevent sounds on the page from autoplaying.'
|
||||
]
|
||||
|
||||
'Linkification':
|
||||
|
||||
@ -103,6 +103,11 @@ hr + div.center:not(.ad-cnt):not(.topad):not(.middlead):not(.bottomad) {
|
||||
/* party hats */
|
||||
pointer-events: none;
|
||||
}
|
||||
.postContainer marquee,
|
||||
.postContainer marquee + br,
|
||||
.postContainer marquee + br + br {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Anti-autoplay */
|
||||
audio.controls-added {
|
||||
@ -115,9 +120,6 @@ audio.controls-added {
|
||||
height: auto;
|
||||
text-align: center;
|
||||
}
|
||||
:root.anti-autoplay marquee {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
/* fixed, z-index */
|
||||
#overlay,
|
||||
|
||||
@ -26,7 +26,3 @@ AntiAutoplay =
|
||||
process: (root) ->
|
||||
for iframe in $$ 'iframe[src*="youtube"][src*="autoplay=1"]', root
|
||||
iframe.src = iframe.src.replace(/\?autoplay=1&?/, '?').replace('&autoplay=1', '')
|
||||
for marquee in $$ 'marquee', root
|
||||
span = $.el 'span', className: 'removed-marquee'
|
||||
$.replace marquee, span
|
||||
$.add span, [marquee.childNodes...]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user