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:
commit
fcb767e5de
@ -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.
|
||||
|
||||
<!-- 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
|
||||
*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")]
|
||||
|
||||
|
||||
@ -101,6 +101,10 @@ Config =
|
||||
true
|
||||
'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':
|
||||
'Linkify': [
|
||||
|
||||
@ -286,6 +286,7 @@ Main =
|
||||
['Catalog Links', CatalogLinks]
|
||||
['Settings', Settings]
|
||||
['Index Generator', Index]
|
||||
['Disable Autoplay', AntiAutoplay]
|
||||
['Announcement Hiding', PSAHiding]
|
||||
['Fourchan thingies', Fourchan]
|
||||
['Color User IDs', IDColor]
|
||||
|
||||
@ -99,10 +99,14 @@ hr + div.center:not(.ad-cnt):not(.topad):not(.middlead):not(.bottomad) {
|
||||
unicode-bidi: -moz-isolate;
|
||||
unicode-bidi: -webkit-isolate;
|
||||
}
|
||||
/* party hats */
|
||||
.thread > img:first-child {
|
||||
/* party hats */
|
||||
pointer-events: none;
|
||||
}
|
||||
.center > audio {
|
||||
display: block;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
/* fixed, z-index */
|
||||
#overlay,
|
||||
|
||||
10
src/Miscellaneous/AntiAutoplay.coffee
Normal file
10
src/Miscellaneous/AntiAutoplay.coffee
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user