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': [
|
'Disable Autoplaying Sounds': [
|
||||||
false
|
false
|
||||||
'Stop autoplaying sounds and other annoyances.'
|
'Prevent sounds on the page from autoplaying.'
|
||||||
]
|
]
|
||||||
|
|
||||||
'Linkification':
|
'Linkification':
|
||||||
|
|||||||
@ -103,6 +103,11 @@ hr + div.center:not(.ad-cnt):not(.topad):not(.middlead):not(.bottomad) {
|
|||||||
/* party hats */
|
/* party hats */
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
.postContainer marquee,
|
||||||
|
.postContainer marquee + br,
|
||||||
|
.postContainer marquee + br + br {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
/* Anti-autoplay */
|
/* Anti-autoplay */
|
||||||
audio.controls-added {
|
audio.controls-added {
|
||||||
@ -115,9 +120,6 @@ audio.controls-added {
|
|||||||
height: auto;
|
height: auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
:root.anti-autoplay marquee {
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* fixed, z-index */
|
/* fixed, z-index */
|
||||||
#overlay,
|
#overlay,
|
||||||
|
|||||||
@ -26,7 +26,3 @@ AntiAutoplay =
|
|||||||
process: (root) ->
|
process: (root) ->
|
||||||
for iframe in $$ 'iframe[src*="youtube"][src*="autoplay=1"]', root
|
for iframe in $$ 'iframe[src*="youtube"][src*="autoplay=1"]', root
|
||||||
iframe.src = iframe.src.replace(/\?autoplay=1&?/, '?').replace('&autoplay=1', '')
|
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