diff --git a/src/General/Config.coffee b/src/General/Config.coffee index a5228a19e..7417e93ad 100755 --- a/src/General/Config.coffee +++ b/src/General/Config.coffee @@ -106,7 +106,7 @@ Config = ] 'Disable Autoplaying Sounds': [ false - 'Stop autoplaying sounds and other annoyances.' + 'Prevent sounds on the page from autoplaying.' ] 'Linkification': diff --git a/src/General/css/style.css b/src/General/css/style.css index e96828bf2..8d3a47623 100755 --- a/src/General/css/style.css +++ b/src/General/css/style.css @@ -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, diff --git a/src/Miscellaneous/AntiAutoplay.coffee b/src/Miscellaneous/AntiAutoplay.coffee index 5ecf6aadf..919bd8fb5 100644 --- a/src/Miscellaneous/AntiAutoplay.coffee +++ b/src/Miscellaneous/AntiAutoplay.coffee @@ -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...]