diff --git a/bin/update.json b/bin/update.json index f14c36f..aae10df 100644 --- a/bin/update.json +++ b/bin/update.json @@ -2,7 +2,7 @@ "addons": { "unlisted-particle@particlecore.github.io": { "updates": [{ - "version": "1.7.2", + "version": "1.7.3", "update_link": "https://github.com/ParticleCore/Particle/raw/master/dist/YouTubePlus.xpi", "applications": { "gecko": { diff --git a/dist/YouTubePlus.xpi b/dist/YouTubePlus.xpi index 92c1ee0..d037020 100644 Binary files a/dist/YouTubePlus.xpi and b/dist/YouTubePlus.xpi differ diff --git a/src/Userscript/YouTubePlus.user.js b/src/Userscript/YouTubePlus.user.js index 6bdd3c7..acc7baf 100644 --- a/src/Userscript/YouTubePlus.user.js +++ b/src/Userscript/YouTubePlus.user.js @@ -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 @@ -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"); @@ -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"); diff --git a/src/Webextension/JS/YouTubePlus.user.js b/src/Webextension/JS/YouTubePlus.user.js index 6bdd3c7..acc7baf 100644 --- a/src/Webextension/JS/YouTubePlus.user.js +++ b/src/Webextension/JS/YouTubePlus.user.js @@ -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 @@ -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"); @@ -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"); diff --git a/src/Webextension/manifest.json b/src/Webextension/manifest.json index e0ae426..2e986bf 100644 --- a/src/Webextension/manifest.json +++ b/src/Webextension/manifest.json @@ -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": {