Merge branch 'Stable' into Beta

Conflicts:
	LICENSE
	builds/4chan-X-beta.crx
	builds/4chan-X-beta.meta.js
	builds/4chan-X-beta.user.js
	builds/4chan-X-noupdate.crx
	builds/4chan-X-noupdate.user.js
	builds/4chan-X.crx
	builds/4chan-X.meta.js
	builds/4chan-X.user.js
	builds/4chan-X.zip
	builds/updates-beta.xml
	builds/updates.xml
	package.json
This commit is contained in:
ccd0 2014-12-04 13:50:43 -08:00
commit fcb767e5de
5 changed files with 26 additions and 1 deletions

View File

@ -18,6 +18,12 @@ The links to individual versions below are to copies of the script with the upda
- Fix some scrolling bugs when images are contracted. - Fix some scrolling bugs when images are contracted.
<!-- v1.9.13.x --> <!-- v1.9.13.x -->
### v1.9.13.5
*2014-12-04* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.13.5/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.13.5/builds/4chan-X-noupdate.crx "Chromium version")]
**ccd0**
- Add `Disable Autoplaying Sounds` option (off by default).
### v1.9.13.4 ### v1.9.13.4
*2014-11-26* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.13.4/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.13.4/builds/4chan-X-noupdate.crx "Chromium version")] *2014-11-26* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.13.4/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.13.4/builds/4chan-X-noupdate.crx "Chromium version")]

View File

@ -101,6 +101,10 @@ Config =
true true
'Rewrite the URL of the current page, removing stubs and changing /res/ to /thread/.' 'Rewrite the URL of the current page, removing stubs and changing /res/ to /thread/.'
] ]
'Disable Autoplaying Sounds': [
false
'Prevent sounds on the page from autoplaying.'
]
'Linkification': 'Linkification':
'Linkify': [ 'Linkify': [

View File

@ -286,6 +286,7 @@ Main =
['Catalog Links', CatalogLinks] ['Catalog Links', CatalogLinks]
['Settings', Settings] ['Settings', Settings]
['Index Generator', Index] ['Index Generator', Index]
['Disable Autoplay', AntiAutoplay]
['Announcement Hiding', PSAHiding] ['Announcement Hiding', PSAHiding]
['Fourchan thingies', Fourchan] ['Fourchan thingies', Fourchan]
['Color User IDs', IDColor] ['Color User IDs', IDColor]

View File

@ -99,10 +99,14 @@ hr + div.center:not(.ad-cnt):not(.topad):not(.middlead):not(.bottomad) {
unicode-bidi: -moz-isolate; unicode-bidi: -moz-isolate;
unicode-bidi: -webkit-isolate; unicode-bidi: -webkit-isolate;
} }
/* party hats */
.thread > img:first-child { .thread > img:first-child {
/* party hats */
pointer-events: none; pointer-events: none;
} }
.center > audio {
display: block;
margin: auto;
}
/* fixed, z-index */ /* fixed, z-index */
#overlay, #overlay,

View File

@ -0,0 +1,10 @@
AntiAutoplay =
init: ->
return if !Conf['Disable Autoplaying Sounds']
$.ready @ready
ready: ->
for audio in $$ 'audio[autoplay]'
audio.pause()
audio.autoplay = false
audio.controls = true