|
1 | 1 | // ==UserScript== |
2 | | -// @version 1.7.8 |
| 2 | +// @version 1.7.9 |
3 | 3 | // @name YouTube + |
4 | 4 | // @namespace https://github.com/ParticleCore |
5 | 5 | // @description YouTube with more freedom |
|
567 | 567 | var comments, is_live; |
568 | 568 | comments = document.getElementById("watch-discussion"); |
569 | 569 | 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")) { |
571 | 571 | comments.lazyload = arguments; |
572 | 572 | } else { |
573 | 573 | return original.apply(this, arguments); |
|
1730 | 1730 | modComments.wrapper = setLocale(modComments.wrapper.content).firstChild; |
1731 | 1731 | document.addEventListener("click", loadComments); |
1732 | 1732 | 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)=/)) { |
1734 | 1734 | modComments.wrapper.querySelector("button").click(); |
1735 | 1735 | } |
1736 | 1736 | } |
|
1807 | 1807 | ) { |
1808 | 1808 | sidebar.outerHTML = ""; |
1809 | 1809 | } |
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) { |
1811 | 1811 | comments.outerHTML = ""; |
1812 | 1812 | } |
1813 | 1813 | if (user_settings.VID_HIDE_COMS === "1") { |
|
2336 | 2336 | holder = document.createElement("link"); |
2337 | 2337 | holder.rel = "stylesheet"; |
2338 | 2338 | 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"; |
2340 | 2340 | document.documentElement.appendChild(holder); |
2341 | 2341 | } |
2342 | 2342 | holder = document.createElement("script"); |
|
0 commit comments