diff --git a/bin/update.json b/bin/update.json
index f7f0edf..218638e 100644
--- a/bin/update.json
+++ b/bin/update.json
@@ -2,7 +2,7 @@
"addons": {
"unlisted-particle@particlecore.github.io": {
"updates": [{
- "version": "1.9.1",
+ "version": "1.9.2",
"update_link": "https://github.com/ParticleCore/Particle/raw/master/dist/YouTubePlus.xpi",
"applications": {
"gecko": {
diff --git a/dist/Particle.nex b/dist/Particle.nex
index ed3db52..acb2652 100644
Binary files a/dist/Particle.nex and b/dist/Particle.nex differ
diff --git a/dist/YouTubePlus.xpi b/dist/YouTubePlus.xpi
index 4b31d7c..4da0a94 100644
Binary files a/dist/YouTubePlus.xpi and b/dist/YouTubePlus.xpi differ
diff --git a/src/Opera/JS/YouTubePlus.user.js b/src/Opera/JS/YouTubePlus.user.js
index 5011f61..d094f89 100644
--- a/src/Opera/JS/YouTubePlus.user.js
+++ b/src/Opera/JS/YouTubePlus.user.js
@@ -1,5 +1,5 @@
// ==UserScript==
-// @version 1.9.1
+// @version 1.9.2
// @name YouTube +
// @namespace https://github.com/ParticleCore
// @description YouTube with more freedom
@@ -600,10 +600,10 @@
temp = original.apply(this, arguments);
player = document.getElementById("movie_player");
if (player) {
- player.setPlaybackQuality(user_settings.VID_DFLT_QLTY);
if (!user_settings.VID_PLR_ATPL) {
player.cueVideoByPlayerVars(b.args);
}
+ player.setPlaybackQuality(user_settings.VID_DFLT_QLTY);
}
return temp;
};
@@ -667,12 +667,6 @@
}
};
}
- function ModArgsWatch(args) {
- if (args && args.autoplay === "1" && !user_settings.VID_PLR_ATPL && window.location.hash === "") {
- args.autoplay = "0";
- }
- return ModArgsWatch.Original.apply(this, arguments);
- }
function scriptExit(event) {
var i, j, key, temp;
if (event && event.target) {
@@ -733,15 +727,6 @@
break;
}
}
- if (key) {
- ModArgsWatch.Original = window._yt_player[key];
- ModArgsWatch.prototype = ModArgsWatch.Original.prototype;
- temp = Object.keys(ModArgsWatch.Original);
- for (i = 0; i < temp.length; i++) {
- ModArgsWatch[temp[i]] = ModArgsWatch.Original[temp[i]];
- }
- window._yt_player[key] = ModArgsWatch;
- }
}
}
}
@@ -1645,7 +1630,7 @@
button.innerHTML = //
`
-
@@ -2376,7 +2361,7 @@
holder = document.createElement("link");
holder.rel = "stylesheet";
holder.type = "text/css";
- holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.1";
+ holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.2";
document.documentElement.appendChild(holder);
}
holder = document.createElement("script");
diff --git a/src/Opera/manifest.json b/src/Opera/manifest.json
index d8adcc6..8928547 100644
--- a/src/Opera/manifest.json
+++ b/src/Opera/manifest.json
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Particle",
- "version": "1.9.1",
+ "version": "1.9.2",
"description": "YouTube with more freedom",
"default_locale": "en",
"icons": {
diff --git a/src/Userscript/YouTubePlus.user.js b/src/Userscript/YouTubePlus.user.js
index 5011f61..d094f89 100644
--- a/src/Userscript/YouTubePlus.user.js
+++ b/src/Userscript/YouTubePlus.user.js
@@ -1,5 +1,5 @@
// ==UserScript==
-// @version 1.9.1
+// @version 1.9.2
// @name YouTube +
// @namespace https://github.com/ParticleCore
// @description YouTube with more freedom
@@ -600,10 +600,10 @@
temp = original.apply(this, arguments);
player = document.getElementById("movie_player");
if (player) {
- player.setPlaybackQuality(user_settings.VID_DFLT_QLTY);
if (!user_settings.VID_PLR_ATPL) {
player.cueVideoByPlayerVars(b.args);
}
+ player.setPlaybackQuality(user_settings.VID_DFLT_QLTY);
}
return temp;
};
@@ -667,12 +667,6 @@
}
};
}
- function ModArgsWatch(args) {
- if (args && args.autoplay === "1" && !user_settings.VID_PLR_ATPL && window.location.hash === "") {
- args.autoplay = "0";
- }
- return ModArgsWatch.Original.apply(this, arguments);
- }
function scriptExit(event) {
var i, j, key, temp;
if (event && event.target) {
@@ -733,15 +727,6 @@
break;
}
}
- if (key) {
- ModArgsWatch.Original = window._yt_player[key];
- ModArgsWatch.prototype = ModArgsWatch.Original.prototype;
- temp = Object.keys(ModArgsWatch.Original);
- for (i = 0; i < temp.length; i++) {
- ModArgsWatch[temp[i]] = ModArgsWatch.Original[temp[i]];
- }
- window._yt_player[key] = ModArgsWatch;
- }
}
}
}
@@ -1645,7 +1630,7 @@
button.innerHTML = //
`
-
+
@@ -2376,7 +2361,7 @@
holder = document.createElement("link");
holder.rel = "stylesheet";
holder.type = "text/css";
- holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.1";
+ holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.2";
document.documentElement.appendChild(holder);
}
holder = document.createElement("script");
diff --git a/src/Webextension/JS/YouTubePlus.user.js b/src/Webextension/JS/YouTubePlus.user.js
index 5011f61..d094f89 100644
--- a/src/Webextension/JS/YouTubePlus.user.js
+++ b/src/Webextension/JS/YouTubePlus.user.js
@@ -1,5 +1,5 @@
// ==UserScript==
-// @version 1.9.1
+// @version 1.9.2
// @name YouTube +
// @namespace https://github.com/ParticleCore
// @description YouTube with more freedom
@@ -600,10 +600,10 @@
temp = original.apply(this, arguments);
player = document.getElementById("movie_player");
if (player) {
- player.setPlaybackQuality(user_settings.VID_DFLT_QLTY);
if (!user_settings.VID_PLR_ATPL) {
player.cueVideoByPlayerVars(b.args);
}
+ player.setPlaybackQuality(user_settings.VID_DFLT_QLTY);
}
return temp;
};
@@ -667,12 +667,6 @@
}
};
}
- function ModArgsWatch(args) {
- if (args && args.autoplay === "1" && !user_settings.VID_PLR_ATPL && window.location.hash === "") {
- args.autoplay = "0";
- }
- return ModArgsWatch.Original.apply(this, arguments);
- }
function scriptExit(event) {
var i, j, key, temp;
if (event && event.target) {
@@ -733,15 +727,6 @@
break;
}
}
- if (key) {
- ModArgsWatch.Original = window._yt_player[key];
- ModArgsWatch.prototype = ModArgsWatch.Original.prototype;
- temp = Object.keys(ModArgsWatch.Original);
- for (i = 0; i < temp.length; i++) {
- ModArgsWatch[temp[i]] = ModArgsWatch.Original[temp[i]];
- }
- window._yt_player[key] = ModArgsWatch;
- }
}
}
}
@@ -1645,7 +1630,7 @@
button.innerHTML = //
`
-
+
@@ -2376,7 +2361,7 @@
holder = document.createElement("link");
holder.rel = "stylesheet";
holder.type = "text/css";
- holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.1";
+ holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.2";
document.documentElement.appendChild(holder);
}
holder = document.createElement("script");
diff --git a/src/Webextension/manifest.json b/src/Webextension/manifest.json
index c01555f..3868f68 100644
--- a/src/Webextension/manifest.json
+++ b/src/Webextension/manifest.json
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "YouTube Plus",
- "version": "1.9.1",
+ "version": "1.9.2",
"description": "YouTube with more freedom",
"default_locale": "en",
"icons": {