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

Commit

Permalink
1.9.2
Browse files Browse the repository at this point in the history
Fixes #570
Fixes #551
  • Loading branch information
ParticleCore committed Sep 17, 2017
1 parent b984aa4 commit ef5d2fa
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 60 deletions.
2 changes: 1 addition & 1 deletion bin/update.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"addons": {
"[email protected]": {
"updates": [{
"version": "1.9.1",
"version": "1.9.2",
"update_link": "https://github.com/ParticleCore/Particle/raw/master/dist/YouTubePlus.xpi",
"applications": {
"gecko": {
Expand Down
Binary file modified dist/Particle.nex
Binary file not shown.
Binary file modified dist/YouTubePlus.xpi
Binary file not shown.
23 changes: 4 additions & 19 deletions src/Opera/JS/YouTubePlus.user.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;
};
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}
}
}
}
Expand Down Expand Up @@ -1645,7 +1630,7 @@
button.innerHTML = //
`<div id='subscription-playlist-icon'>
<a id='subscription-playlist' data-p='ttl|SUB_PLST&tnd|SUB_PLST' class='spf-link'>
<svg viewBox='0 0 14 16'>
<svg viewBox='0 0 14 16' width='14' height='16'>
<polygon points='0,16 14,8 0,0 '/>
</svg>
</a>
Expand Down Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion src/Opera/manifest.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
23 changes: 4 additions & 19 deletions src/Userscript/YouTubePlus.user.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;
};
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}
}
}
}
Expand Down Expand Up @@ -1645,7 +1630,7 @@
button.innerHTML = //
`<div id='subscription-playlist-icon'>
<a id='subscription-playlist' data-p='ttl|SUB_PLST&tnd|SUB_PLST' class='spf-link'>
<svg viewBox='0 0 14 16'>
<svg viewBox='0 0 14 16' width='14' height='16'>
<polygon points='0,16 14,8 0,0 '/>
</svg>
</a>
Expand Down Expand Up @@ -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");
Expand Down
23 changes: 4 additions & 19 deletions src/Webextension/JS/YouTubePlus.user.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;
};
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}
}
}
}
Expand Down Expand Up @@ -1645,7 +1630,7 @@
button.innerHTML = //
`<div id='subscription-playlist-icon'>
<a id='subscription-playlist' data-p='ttl|SUB_PLST&tnd|SUB_PLST' class='spf-link'>
<svg viewBox='0 0 14 16'>
<svg viewBox='0 0 14 16' width='14' height='16'>
<polygon points='0,16 14,8 0,0 '/>
</svg>
</a>
Expand Down Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion src/Webextension/manifest.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit ef5d2fa

Please sign in to comment.