Skip to content
This repository was archived by the owner on Mar 23, 2018. It is now read-only.

Commit ef5d2fa

Browse files
committed
1.9.2
Fixes #570 Fixes #551
1 parent b984aa4 commit ef5d2fa

File tree

8 files changed

+15
-60
lines changed

8 files changed

+15
-60
lines changed

bin/update.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"addons": {
33
"unlisted-particle@particlecore.github.io": {
44
"updates": [{
5-
"version": "1.9.1",
5+
"version": "1.9.2",
66
"update_link": "https://github.com/ParticleCore/Particle/raw/master/dist/YouTubePlus.xpi",
77
"applications": {
88
"gecko": {

dist/Particle.nex

-83 Bytes
Binary file not shown.

dist/YouTubePlus.xpi

-115 Bytes
Binary file not shown.

src/Opera/JS/YouTubePlus.user.js

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ==UserScript==
2-
// @version 1.9.1
2+
// @version 1.9.2
33
// @name YouTube +
44
// @namespace https://github.com/ParticleCore
55
// @description YouTube with more freedom
@@ -600,10 +600,10 @@
600600
temp = original.apply(this, arguments);
601601
player = document.getElementById("movie_player");
602602
if (player) {
603-
player.setPlaybackQuality(user_settings.VID_DFLT_QLTY);
604603
if (!user_settings.VID_PLR_ATPL) {
605604
player.cueVideoByPlayerVars(b.args);
606605
}
606+
player.setPlaybackQuality(user_settings.VID_DFLT_QLTY);
607607
}
608608
return temp;
609609
};
@@ -667,12 +667,6 @@
667667
}
668668
};
669669
}
670-
function ModArgsWatch(args) {
671-
if (args && args.autoplay === "1" && !user_settings.VID_PLR_ATPL && window.location.hash === "") {
672-
args.autoplay = "0";
673-
}
674-
return ModArgsWatch.Original.apply(this, arguments);
675-
}
676670
function scriptExit(event) {
677671
var i, j, key, temp;
678672
if (event && event.target) {
@@ -733,15 +727,6 @@
733727
break;
734728
}
735729
}
736-
if (key) {
737-
ModArgsWatch.Original = window._yt_player[key];
738-
ModArgsWatch.prototype = ModArgsWatch.Original.prototype;
739-
temp = Object.keys(ModArgsWatch.Original);
740-
for (i = 0; i < temp.length; i++) {
741-
ModArgsWatch[temp[i]] = ModArgsWatch.Original[temp[i]];
742-
}
743-
window._yt_player[key] = ModArgsWatch;
744-
}
745730
}
746731
}
747732
}
@@ -1645,7 +1630,7 @@
16451630
button.innerHTML = //
16461631
`<div id='subscription-playlist-icon'>
16471632
<a id='subscription-playlist' data-p='ttl|SUB_PLST&tnd|SUB_PLST' class='spf-link'>
1648-
<svg viewBox='0 0 14 16'>
1633+
<svg viewBox='0 0 14 16' width='14' height='16'>
16491634
<polygon points='0,16 14,8 0,0 '/>
16501635
</svg>
16511636
</a>
@@ -2376,7 +2361,7 @@
23762361
holder = document.createElement("link");
23772362
holder.rel = "stylesheet";
23782363
holder.type = "text/css";
2379-
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.1";
2364+
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.2";
23802365
document.documentElement.appendChild(holder);
23812366
}
23822367
holder = document.createElement("script");

src/Opera/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "Particle",
4-
"version": "1.9.1",
4+
"version": "1.9.2",
55
"description": "YouTube with more freedom",
66
"default_locale": "en",
77
"icons": {

src/Userscript/YouTubePlus.user.js

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ==UserScript==
2-
// @version 1.9.1
2+
// @version 1.9.2
33
// @name YouTube +
44
// @namespace https://github.com/ParticleCore
55
// @description YouTube with more freedom
@@ -600,10 +600,10 @@
600600
temp = original.apply(this, arguments);
601601
player = document.getElementById("movie_player");
602602
if (player) {
603-
player.setPlaybackQuality(user_settings.VID_DFLT_QLTY);
604603
if (!user_settings.VID_PLR_ATPL) {
605604
player.cueVideoByPlayerVars(b.args);
606605
}
606+
player.setPlaybackQuality(user_settings.VID_DFLT_QLTY);
607607
}
608608
return temp;
609609
};
@@ -667,12 +667,6 @@
667667
}
668668
};
669669
}
670-
function ModArgsWatch(args) {
671-
if (args && args.autoplay === "1" && !user_settings.VID_PLR_ATPL && window.location.hash === "") {
672-
args.autoplay = "0";
673-
}
674-
return ModArgsWatch.Original.apply(this, arguments);
675-
}
676670
function scriptExit(event) {
677671
var i, j, key, temp;
678672
if (event && event.target) {
@@ -733,15 +727,6 @@
733727
break;
734728
}
735729
}
736-
if (key) {
737-
ModArgsWatch.Original = window._yt_player[key];
738-
ModArgsWatch.prototype = ModArgsWatch.Original.prototype;
739-
temp = Object.keys(ModArgsWatch.Original);
740-
for (i = 0; i < temp.length; i++) {
741-
ModArgsWatch[temp[i]] = ModArgsWatch.Original[temp[i]];
742-
}
743-
window._yt_player[key] = ModArgsWatch;
744-
}
745730
}
746731
}
747732
}
@@ -1645,7 +1630,7 @@
16451630
button.innerHTML = //
16461631
`<div id='subscription-playlist-icon'>
16471632
<a id='subscription-playlist' data-p='ttl|SUB_PLST&tnd|SUB_PLST' class='spf-link'>
1648-
<svg viewBox='0 0 14 16'>
1633+
<svg viewBox='0 0 14 16' width='14' height='16'>
16491634
<polygon points='0,16 14,8 0,0 '/>
16501635
</svg>
16511636
</a>
@@ -2376,7 +2361,7 @@
23762361
holder = document.createElement("link");
23772362
holder.rel = "stylesheet";
23782363
holder.type = "text/css";
2379-
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.1";
2364+
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.2";
23802365
document.documentElement.appendChild(holder);
23812366
}
23822367
holder = document.createElement("script");

src/Webextension/JS/YouTubePlus.user.js

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ==UserScript==
2-
// @version 1.9.1
2+
// @version 1.9.2
33
// @name YouTube +
44
// @namespace https://github.com/ParticleCore
55
// @description YouTube with more freedom
@@ -600,10 +600,10 @@
600600
temp = original.apply(this, arguments);
601601
player = document.getElementById("movie_player");
602602
if (player) {
603-
player.setPlaybackQuality(user_settings.VID_DFLT_QLTY);
604603
if (!user_settings.VID_PLR_ATPL) {
605604
player.cueVideoByPlayerVars(b.args);
606605
}
606+
player.setPlaybackQuality(user_settings.VID_DFLT_QLTY);
607607
}
608608
return temp;
609609
};
@@ -667,12 +667,6 @@
667667
}
668668
};
669669
}
670-
function ModArgsWatch(args) {
671-
if (args && args.autoplay === "1" && !user_settings.VID_PLR_ATPL && window.location.hash === "") {
672-
args.autoplay = "0";
673-
}
674-
return ModArgsWatch.Original.apply(this, arguments);
675-
}
676670
function scriptExit(event) {
677671
var i, j, key, temp;
678672
if (event && event.target) {
@@ -733,15 +727,6 @@
733727
break;
734728
}
735729
}
736-
if (key) {
737-
ModArgsWatch.Original = window._yt_player[key];
738-
ModArgsWatch.prototype = ModArgsWatch.Original.prototype;
739-
temp = Object.keys(ModArgsWatch.Original);
740-
for (i = 0; i < temp.length; i++) {
741-
ModArgsWatch[temp[i]] = ModArgsWatch.Original[temp[i]];
742-
}
743-
window._yt_player[key] = ModArgsWatch;
744-
}
745730
}
746731
}
747732
}
@@ -1645,7 +1630,7 @@
16451630
button.innerHTML = //
16461631
`<div id='subscription-playlist-icon'>
16471632
<a id='subscription-playlist' data-p='ttl|SUB_PLST&tnd|SUB_PLST' class='spf-link'>
1648-
<svg viewBox='0 0 14 16'>
1633+
<svg viewBox='0 0 14 16' width='14' height='16'>
16491634
<polygon points='0,16 14,8 0,0 '/>
16501635
</svg>
16511636
</a>
@@ -2376,7 +2361,7 @@
23762361
holder = document.createElement("link");
23772362
holder.rel = "stylesheet";
23782363
holder.type = "text/css";
2379-
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.1";
2364+
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.2";
23802365
document.documentElement.appendChild(holder);
23812366
}
23822367
holder = document.createElement("script");

src/Webextension/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "YouTube Plus",
4-
"version": "1.9.1",
4+
"version": "1.9.2",
55
"description": "YouTube with more freedom",
66
"default_locale": "en",
77
"icons": {

0 commit comments

Comments
 (0)