diff --git a/CHANGELOG.md b/CHANGELOG.md index 14cdecf5e..6fc2efab8 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,12 @@ Based on v1.9.14.2. - Bug fixes. +### v1.9.14.3 +*2014-12-07* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.14.3/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.14.3/builds/4chan-X-noupdate.crx "Chromium version")] + +**ccd0** +- Center the controls added to formerly autoplaying audio by `Disable Autoplaying Sounds`. + ### v1.9.14.2 *2014-12-04* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.14.2/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.14.2/builds/4chan-X-noupdate.crx "Chromium version")] diff --git a/src/General/css/style.css b/src/General/css/style.css index 9801e788e..0c2125d68 100755 --- a/src/General/css/style.css +++ b/src/General/css/style.css @@ -103,7 +103,9 @@ hr + div.center:not(.ad-cnt):not(.topad):not(.middlead):not(.bottomad) { /* party hats */ pointer-events: none; } -.center > audio { + +/* Anti-autoplay */ +audio.controls-added { display: block; margin: auto; } diff --git a/src/Miscellaneous/AntiAutoplay.coffee b/src/Miscellaneous/AntiAutoplay.coffee index d7d602d89..ac309ab48 100644 --- a/src/Miscellaneous/AntiAutoplay.coffee +++ b/src/Miscellaneous/AntiAutoplay.coffee @@ -7,4 +7,6 @@ AntiAutoplay = for audio in $$ 'audio[autoplay]' audio.pause() audio.autoplay = false - audio.controls = true + unless audio.controls + audio.controls = true + $.addClass audio, 'controls-added'