diff --git a/bin/update.json b/bin/update.json index aae10df..983c315 100644 --- a/bin/update.json +++ b/bin/update.json @@ -2,7 +2,7 @@ "addons": { "unlisted-particle@particlecore.github.io": { "updates": [{ - "version": "1.7.3", + "version": "1.7.4", "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 d037020..df2fbdf 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 acc7baf..da6d3cd 100644 --- a/src/Userscript/YouTubePlus.user.js +++ b/src/Userscript/YouTubePlus.user.js @@ -1,5 +1,5 @@ // ==UserScript== -// @version 1.7.3 +// @version 1.7.4 // @name YouTube + // @namespace https://github.com/ParticleCore // @description YouTube with more freedom @@ -19,10 +19,10 @@ // ==/UserScript== (function () { "use strict"; - var particle = { + let particle = { inject: function(is_userscript) { function setLocale(content) { - var i, j, list, temp, ytplabel; + let i, j, list, temp, ytplabel; ytplabel = content.querySelectorAll("[data-p]"); i = ytplabel.length; while (i--) { @@ -120,8 +120,7 @@ return next[Object.keys(next)[0]].localeCompare(previous[Object.keys(previous)[0]]); } function getBlacklist(blist) { - var i, obj, temp, lnk, keys, list, fragment, sortAlpha; - sortAlpha = []; + let i, obj, temp, lnk, keys, list, fragment, sortAlpha; list = user_settings.blacklist; fragment = document.createDocumentFragment(); sortAlpha = []; @@ -156,7 +155,7 @@ blist.appendChild(fragment); } function getValues(menu) { - var i, ytp, list; + let i, ytp, list; if (user_settings) { list = menu.querySelector("#blacklist"); if (list) { @@ -183,7 +182,7 @@ return menu; } function getMenu(section) { - var i, temp, svg, inputs; + let i, temp, svg, inputs; temp = document.createElement("template"); if (section === "MEN") { temp.innerHTML = // @@ -338,7 +337,7 @@
-