diff --git a/CHANGELOG.md b/CHANGELOG.md
index c5108895a..2c425b4b1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,9 @@ Sometimes the changelog has notes (not comprehensive) acknowledging people's wor
### v1.11.32
+**v1.11.32.1** *(2016-05-01)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.32.1/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.32.1/builds/4chan-X-noupdate.crx "Chromium version")]
+- Support embedding of .ogg files as either video or audio, as appropriate, and add embedding for .oga files.
+
**v1.11.32.0** *(2016-04-30)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.32.0/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.32.0/builds/4chan-X-noupdate.crx "Chromium version")]
- Based on v1.11.31.4.
- Support searching the archive by MD5 on /f/, and using MD5 in Sauce links there.
diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx
index 5c37a4e1f..a59d78d60 100644
Binary files a/builds/4chan-X-beta.crx and b/builds/4chan-X-beta.crx differ
diff --git a/builds/4chan-X-beta.meta.js b/builds/4chan-X-beta.meta.js
index e21ebdcfd..47e1e0a5c 100644
--- a/builds/4chan-X-beta.meta.js
+++ b/builds/4chan-X-beta.meta.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X beta
-// @version 1.11.32.0
+// @version 1.11.32.1
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
diff --git a/builds/4chan-X-beta.user.js b/builds/4chan-X-beta.user.js
index 7bf4e2e45..8472e7dd3 100644
--- a/builds/4chan-X-beta.user.js
+++ b/builds/4chan-X-beta.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X beta
-// @version 1.11.32.0
+// @version 1.11.32.1
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@@ -134,7 +134,7 @@ docSet = function() {
};
g = {
- VERSION: '1.11.32.0',
+ VERSION: '1.11.32.1',
NAMESPACE: '4chan X.',
boards: {}
};
@@ -13091,7 +13091,7 @@ Embedding = (function() {
ordered_types: [
{
key: 'audio',
- regExp: /\.(?:mp3|ogg|wav)(?:\?|$)/i,
+ regExp: /\.(?:mp3|oga|wav)(?:\?|$)/i,
style: '',
el: function(a) {
return $.el('audio', {
@@ -13423,15 +13423,25 @@ Embedding = (function() {
dummy: true
}, {
key: 'video',
- regExp: /\.(?:ogv|webm|mp4)(?:\?|$)/i,
+ regExp: /\.(?:og[gv]|webm|mp4)(?:\?|$)/i,
style: 'max-width: 80vw; max-height: 80vh;',
el: function(a) {
- return $.el('video', {
+ var el;
+ el = $.el('video', {
+ hidden: true,
controls: true,
preload: 'auto',
src: a.dataset.href,
loop: /^https?:\/\/i\.4cdn\.org\//.test(a.dataset.href)
});
+ $.on(el, 'loadedmetadata', function() {
+ if (el.videoHeight === 0 && el.parentNode) {
+ return $.replace(el, Embedding.types.audio.el(a));
+ } else {
+ return el.hidden = false;
+ }
+ });
+ return el;
}
}
]
diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx
index 176c7c8ff..6f8268ea5 100644
Binary files a/builds/4chan-X-noupdate.crx and b/builds/4chan-X-noupdate.crx differ
diff --git a/builds/4chan-X-noupdate.user.js b/builds/4chan-X-noupdate.user.js
index 5df0ebf58..3f510b426 100644
--- a/builds/4chan-X-noupdate.user.js
+++ b/builds/4chan-X-noupdate.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
-// @version 1.11.32.0
+// @version 1.11.32.1
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@@ -134,7 +134,7 @@ docSet = function() {
};
g = {
- VERSION: '1.11.32.0',
+ VERSION: '1.11.32.1',
NAMESPACE: '4chan X.',
boards: {}
};
@@ -13091,7 +13091,7 @@ Embedding = (function() {
ordered_types: [
{
key: 'audio',
- regExp: /\.(?:mp3|ogg|wav)(?:\?|$)/i,
+ regExp: /\.(?:mp3|oga|wav)(?:\?|$)/i,
style: '',
el: function(a) {
return $.el('audio', {
@@ -13423,15 +13423,25 @@ Embedding = (function() {
dummy: true
}, {
key: 'video',
- regExp: /\.(?:ogv|webm|mp4)(?:\?|$)/i,
+ regExp: /\.(?:og[gv]|webm|mp4)(?:\?|$)/i,
style: 'max-width: 80vw; max-height: 80vh;',
el: function(a) {
- return $.el('video', {
+ var el;
+ el = $.el('video', {
+ hidden: true,
controls: true,
preload: 'auto',
src: a.dataset.href,
loop: /^https?:\/\/i\.4cdn\.org\//.test(a.dataset.href)
});
+ $.on(el, 'loadedmetadata', function() {
+ if (el.videoHeight === 0 && el.parentNode) {
+ return $.replace(el, Embedding.types.audio.el(a));
+ } else {
+ return el.hidden = false;
+ }
+ });
+ return el;
}
}
]
diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx
index dee65cbf5..7ab2cdf2f 100644
Binary files a/builds/4chan-X.crx and b/builds/4chan-X.crx differ
diff --git a/builds/4chan-X.meta.js b/builds/4chan-X.meta.js
index dcb377ee5..b05bfc69d 100644
--- a/builds/4chan-X.meta.js
+++ b/builds/4chan-X.meta.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
-// @version 1.11.32.0
+// @version 1.11.32.1
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js
index 54e217a91..541c1c090 100644
--- a/builds/4chan-X.user.js
+++ b/builds/4chan-X.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
-// @version 1.11.32.0
+// @version 1.11.32.1
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@@ -134,7 +134,7 @@ docSet = function() {
};
g = {
- VERSION: '1.11.32.0',
+ VERSION: '1.11.32.1',
NAMESPACE: '4chan X.',
boards: {}
};
@@ -13091,7 +13091,7 @@ Embedding = (function() {
ordered_types: [
{
key: 'audio',
- regExp: /\.(?:mp3|ogg|wav)(?:\?|$)/i,
+ regExp: /\.(?:mp3|oga|wav)(?:\?|$)/i,
style: '',
el: function(a) {
return $.el('audio', {
@@ -13423,15 +13423,25 @@ Embedding = (function() {
dummy: true
}, {
key: 'video',
- regExp: /\.(?:ogv|webm|mp4)(?:\?|$)/i,
+ regExp: /\.(?:og[gv]|webm|mp4)(?:\?|$)/i,
style: 'max-width: 80vw; max-height: 80vh;',
el: function(a) {
- return $.el('video', {
+ var el;
+ el = $.el('video', {
+ hidden: true,
controls: true,
preload: 'auto',
src: a.dataset.href,
loop: /^https?:\/\/i\.4cdn\.org\//.test(a.dataset.href)
});
+ $.on(el, 'loadedmetadata', function() {
+ if (el.videoHeight === 0 && el.parentNode) {
+ return $.replace(el, Embedding.types.audio.el(a));
+ } else {
+ return el.hidden = false;
+ }
+ });
+ return el;
}
}
]
diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip
index 51cfe0f21..599277bc8 100644
Binary files a/builds/4chan-X.zip and b/builds/4chan-X.zip differ
diff --git a/builds/updates-beta.xml b/builds/updates-beta.xml
index 795f1712a..639eb746a 100644
--- a/builds/updates-beta.xml
+++ b/builds/updates-beta.xml
@@ -1,7 +1,7 @@
-
+
diff --git a/builds/updates.xml b/builds/updates.xml
index aba33057e..c078ef9e1 100644
--- a/builds/updates.xml
+++ b/builds/updates.xml
@@ -1,7 +1,7 @@
-
+
diff --git a/version.json b/version.json
index 0bb85cf1c..6d2efc744 100644
--- a/version.json
+++ b/version.json
@@ -1,4 +1,4 @@
{
- "version": "1.11.32.0",
- "date": "2016-04-30T17:46:41.502Z"
+ "version": "1.11.32.1",
+ "date": "2016-05-01T00:18:29.034Z"
}
\ No newline at end of file