Remove marquee stopping from AntiAutoplay. Instead hide marquees within posts unconditionally.

This commit is contained in:
ccd0 2014-12-25 12:06:42 -08:00
parent 98cc077921
commit a57f7950f0
3 changed files with 6 additions and 8 deletions

View File

@ -106,7 +106,7 @@ Config =
]
'Disable Autoplaying Sounds': [
false
'Stop autoplaying sounds and other annoyances.'
'Prevent sounds on the page from autoplaying.'
]
'Linkification':

View File

@ -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,

View File

@ -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...]