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

Commit

Permalink
1.7.3
Browse files Browse the repository at this point in the history
- Fixed floating player occasionally sticking when changing page and
autoplay is enabled
  • Loading branch information
ParticleCore committed Dec 5, 2016
1 parent 3c56169 commit 9f00c0b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 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.7.2",
"version": "1.7.3",
"update_link": "https://github.com/ParticleCore/Particle/raw/master/dist/YouTubePlus.xpi",
"applications": {
"gecko": {
Expand Down
Binary file modified dist/YouTubePlus.xpi
Binary file not shown.
8 changes: 4 additions & 4 deletions src/Userscript/YouTubePlus.user.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ==UserScript==
// @version 1.7.2
// @version 1.7.3
// @name YouTube +
// @namespace https://github.com/ParticleCore
// @description YouTube with more freedom
Expand Down Expand Up @@ -864,12 +864,12 @@
document.getElementById("part_floaterui_move").addEventListener("mousedown", dragFloater);
document.getElementById("part_floaterui_scrolltop").addEventListener("click", goToTop);
}
if (out_of_sight && !isFloater && !settings_open) {
if (out_of_sight && !isFloater && !settings_open && window.location.pathname === "/watch") {
document.documentElement.classList.add("floater");
window.addEventListener("resize", updatePos);
updatePos();
window.dispatchEvent(new Event("resize"));
} else if ((!out_of_sight || settings_open) && isFloater) {
} else if ((!out_of_sight || settings_open || window.location.pathname !== "/watch") && isFloater) {
document.documentElement.classList.remove("floater");
window.removeEventListener("resize", updatePos);
player.removeAttribute("style");
Expand Down Expand Up @@ -2261,7 +2261,7 @@
holder = document.createElement("link");
holder.rel = "stylesheet";
holder.type = "text/css";
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.7.2";
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.7.3";
document.documentElement.appendChild(holder);
}
holder = document.createElement("script");
Expand Down
8 changes: 4 additions & 4 deletions src/Webextension/JS/YouTubePlus.user.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ==UserScript==
// @version 1.7.2
// @version 1.7.3
// @name YouTube +
// @namespace https://github.com/ParticleCore
// @description YouTube with more freedom
Expand Down Expand Up @@ -864,12 +864,12 @@
document.getElementById("part_floaterui_move").addEventListener("mousedown", dragFloater);
document.getElementById("part_floaterui_scrolltop").addEventListener("click", goToTop);
}
if (out_of_sight && !isFloater && !settings_open) {
if (out_of_sight && !isFloater && !settings_open && window.location.pathname === "/watch") {
document.documentElement.classList.add("floater");
window.addEventListener("resize", updatePos);
updatePos();
window.dispatchEvent(new Event("resize"));
} else if ((!out_of_sight || settings_open) && isFloater) {
} else if ((!out_of_sight || settings_open || window.location.pathname !== "/watch") && isFloater) {
document.documentElement.classList.remove("floater");
window.removeEventListener("resize", updatePos);
player.removeAttribute("style");
Expand Down Expand Up @@ -2261,7 +2261,7 @@
holder = document.createElement("link");
holder.rel = "stylesheet";
holder.type = "text/css";
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.7.2";
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.7.3";
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.7.2",
"version": "1.7.3",
"description": "YouTube with more freedom",
"default_locale": "en",
"icons": {
Expand Down

0 comments on commit 9f00c0b

Please sign in to comment.