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

Commit 2bdd07a

Browse files
committed
1.7.9
- Fixed #450 - Fixed empty sections in search results while using grid layout
1 parent a89b3e2 commit 2bdd07a

6 files changed

Lines changed: 1106 additions & 1100 deletions

File tree

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.7.8",
5+
"version": "1.7.9",
66
"update_link": "https://github.com/ParticleCore/Particle/raw/master/dist/YouTubePlus.xpi",
77
"applications": {
88
"gecko": {

dist/YouTubePlus.xpi

-96 Bytes
Binary file not shown.

src/Userscript/YouTubePlus.user.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ==UserScript==
2-
// @version 1.7.8
2+
// @version 1.7.9
33
// @name YouTube +
44
// @namespace https://github.com/ParticleCore
55
// @description YouTube with more freedom
@@ -567,7 +567,7 @@
567567
var comments, is_live;
568568
comments = document.getElementById("watch-discussion");
569569
is_live = window.ytplayer && window.ytplayer.config && window.ytplayer.config.args && window.ytplayer.config.args.livestream;
570-
if (!window.location.search.match(/&?lc=/) && a.split("comments").length > 1 && !is_live && comments && !comments.lazyload && user_settings.VID_HIDE_COMS === "1" && !comments.classList.contains("show")) {
570+
if (!window.location.search.match(/&?(lc|google_comment_id)=/) && a.split("comments").length > 1 && !is_live && comments && !comments.lazyload && user_settings.VID_HIDE_COMS === "1" && !comments.classList.contains("show")) {
571571
comments.lazyload = arguments;
572572
} else {
573573
return original.apply(this, arguments);
@@ -1730,7 +1730,7 @@
17301730
modComments.wrapper = setLocale(modComments.wrapper.content).firstChild;
17311731
document.addEventListener("click", loadComments);
17321732
modComments.comments.parentNode.insertBefore(modComments.wrapper, modComments.comments);
1733-
if (window.location.search.match(/&?lc=/)) {
1733+
if (window.location.search.match(/&?(lc|google_comment_id)=/)) {
17341734
modComments.wrapper.querySelector("button").click();
17351735
}
17361736
}
@@ -1807,7 +1807,7 @@
18071807
) {
18081808
sidebar.outerHTML = "";
18091809
}
1810-
if (!window.location.search.match(/&?lc=/) && window.location.pathname === "/watch" && user_settings.VID_HIDE_COMS > 1 && comments) {
1810+
if (!window.location.search.match(/&?(lc|google_comment_id)=/) && window.location.pathname === "/watch" && user_settings.VID_HIDE_COMS > 1 && comments) {
18111811
comments.outerHTML = "";
18121812
}
18131813
if (user_settings.VID_HIDE_COMS === "1") {
@@ -2336,7 +2336,7 @@
23362336
holder = document.createElement("link");
23372337
holder.rel = "stylesheet";
23382338
holder.type = "text/css";
2339-
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.7.8";
2339+
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.7.9";
23402340
document.documentElement.appendChild(holder);
23412341
}
23422342
holder = document.createElement("script");

0 commit comments

Comments
 (0)