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

Commit b984aa4

Browse files
committed
1.9.1
Fixes #568
1 parent 92bb7a5 commit b984aa4

File tree

10 files changed

+63
-63
lines changed

10 files changed

+63
-63
lines changed

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

dist/Particle.nex

-4 Bytes
Binary file not shown.

dist/YouTubePlus.xpi

-15 Bytes
Binary file not shown.

src/Opera/CSS/YouTubePlus.css

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -152,26 +152,26 @@
152152
}
153153
#subscription-playlist-icon{
154154
margin-left: 0;
155-
position: absolute;
155+
border-bottom: 1px solid #eee;
156156
}
157157
#subscription-playlist{
158-
width: 0;
159-
height: 0 !important;
160-
padding: 20px 15px !important;
161-
}
162-
#subscription-playlist:hover{
163-
padding: 17px 15px !important;
158+
padding: 15px !important;
159+
display: block;
160+
color: #333;
161+
font-weight: 500;
162+
font-size: 13px;
163+
text-decoration: none;
164164
}
165165
#subscription-playlist:hover svg{
166166
opacity: 1;
167167
}
168168
#subscription-playlist svg{
169169
opacity: .4;
170-
width:14px;
170+
width: 14px;
171171
height: 16px;
172-
display:block;
173-
pointer-events:none;
174-
transform: translate(-50%, -50%);
172+
pointer-events: none;
173+
vertical-align: bottom;
174+
margin-right: 5px;
175175
}
176176
#blacklist-import,
177177
#blacklist-export{
@@ -564,8 +564,8 @@
564564
.part_grid_search .yt-lockup-meta-info > li{
565565
display: inline;
566566
}
567-
.part_grid_subs .yt-lockup-content,
568-
.part_grid_search .yt-lockup-content{
567+
div:not(#yt-masthead-notifications-content) .part_grid_subs .yt-lockup-content,
568+
div:not(#yt-masthead-notifications-content) .part_grid_search .yt-lockup-content{
569569
margin-right: 10px;
570570
}
571571
.part_grid_search #results .item-section{
@@ -1134,8 +1134,8 @@
11341134
#part_welcome:after{
11351135
content:"";
11361136
display:block;
1137-
width:0;
1138-
height:0;
1137+
width:0;
1138+
height:0;
11391139
border-left:10px solid transparent;
11401140
border-right:10px solid transparent;
11411141
border-bottom:10px solid #09F;
@@ -1156,4 +1156,4 @@
11561156
.par_closewlcm > span:hover{
11571157
opacity:1;
11581158
}
1159-
/* end| Particle welcome */
1159+
/* end| Particle welcome */

src/Opera/JS/YouTubePlus.user.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ==UserScript==
2-
// @version 1.9.0
2+
// @version 1.9.1
33
// @name YouTube +
44
// @namespace https://github.com/ParticleCore
55
// @description YouTube with more freedom
@@ -1629,29 +1629,29 @@
16291629
}
16301630
}
16311631
list = list.reverse().splice(0, 20).join("%2C");
1632-
subPlaylist.list_title = subPlaylist.list_title && subPlaylist.list_title.querySelector(".epic-nav-item-heading").textContent.trim();
1632+
subPlaylist.list_title = subPlaylist.list_title.textContent.trim();
16331633
button = document.getElementById("subscription-playlist");
16341634
button.href = "/watch_videos?title=" + subPlaylist.list_title + "&video_ids=" + list;
16351635
}
16361636
}
16371637
function subPlaylist() {
1638-
var button, nav_menu;
1639-
nav_menu = document.querySelector(".appbar-nav-menu");
1638+
var button, browse_items;
1639+
browse_items = document.querySelector("#browse-items-primary");
16401640
button = document.getElementById("subscription-playlist");
1641-
subPlaylist.list_title = document.querySelector(".appbar-nav-menu");
1641+
subPlaylist.list_title = document.querySelector("#subscriptions-guide-item [href='/feed/subscriptions']");
16421642
subPlaylist.video_list = document.getElementsByClassName("addto-watch-later-button");
1643-
if (user_settings.GEN_SUB_LIST && nav_menu && window.location.href.split("/feed/subscriptions").length > 1 && !button && subPlaylist.list_title && subPlaylist.video_list) {
1643+
if (user_settings.GEN_SUB_LIST && browse_items && window.location.href.split("/feed/subscriptions").length > 1 && !button && subPlaylist.list_title && subPlaylist.video_list) {
16441644
button = document.createElement("template");
16451645
button.innerHTML = //
1646-
`<li id='subscription-playlist-icon'>
1647-
<a id='subscription-playlist' data-p='ttl|SUB_PLST' class='yt-uix-button spf-link yt-uix-sessionlink yt-uix-button-epic-nav-item yt-uix-button-size-default'>
1646+
`<div id='subscription-playlist-icon'>
1647+
<a id='subscription-playlist' data-p='ttl|SUB_PLST&tnd|SUB_PLST' class='spf-link'>
16481648
<svg viewBox='0 0 14 16'>
16491649
<polygon points='0,16 14,8 0,0 '/>
16501650
</svg>
16511651
</a>
1652-
</li>`;
1652+
</div>`;
16531653
button = setLocale(button.content).firstChild;
1654-
nav_menu.appendChild(button);
1654+
browse_items.parentNode.insertBefore(button, browse_items);
16551655
document.addEventListener("click", setSubPlaylist);
16561656
}
16571657
}
@@ -2376,7 +2376,7 @@
23762376
holder = document.createElement("link");
23772377
holder.rel = "stylesheet";
23782378
holder.type = "text/css";
2379-
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.0";
2379+
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.1";
23802380
document.documentElement.appendChild(holder);
23812381
}
23822382
holder = document.createElement("script");

src/Opera/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "Particle",
4-
"version": "1.9.0",
4+
"version": "1.9.1",
55
"description": "YouTube with more freedom",
66
"default_locale": "en",
77
"icons": {

src/Userscript/YouTubePlus.user.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ==UserScript==
2-
// @version 1.9.0
2+
// @version 1.9.1
33
// @name YouTube +
44
// @namespace https://github.com/ParticleCore
55
// @description YouTube with more freedom
@@ -1629,29 +1629,29 @@
16291629
}
16301630
}
16311631
list = list.reverse().splice(0, 20).join("%2C");
1632-
subPlaylist.list_title = subPlaylist.list_title && subPlaylist.list_title.querySelector(".epic-nav-item-heading").textContent.trim();
1632+
subPlaylist.list_title = subPlaylist.list_title.textContent.trim();
16331633
button = document.getElementById("subscription-playlist");
16341634
button.href = "/watch_videos?title=" + subPlaylist.list_title + "&video_ids=" + list;
16351635
}
16361636
}
16371637
function subPlaylist() {
1638-
var button, nav_menu;
1639-
nav_menu = document.querySelector(".appbar-nav-menu");
1638+
var button, browse_items;
1639+
browse_items = document.querySelector("#browse-items-primary");
16401640
button = document.getElementById("subscription-playlist");
1641-
subPlaylist.list_title = document.querySelector(".appbar-nav-menu");
1641+
subPlaylist.list_title = document.querySelector("#subscriptions-guide-item [href='/feed/subscriptions']");
16421642
subPlaylist.video_list = document.getElementsByClassName("addto-watch-later-button");
1643-
if (user_settings.GEN_SUB_LIST && nav_menu && window.location.href.split("/feed/subscriptions").length > 1 && !button && subPlaylist.list_title && subPlaylist.video_list) {
1643+
if (user_settings.GEN_SUB_LIST && browse_items && window.location.href.split("/feed/subscriptions").length > 1 && !button && subPlaylist.list_title && subPlaylist.video_list) {
16441644
button = document.createElement("template");
16451645
button.innerHTML = //
1646-
`<li id='subscription-playlist-icon'>
1647-
<a id='subscription-playlist' data-p='ttl|SUB_PLST' class='yt-uix-button spf-link yt-uix-sessionlink yt-uix-button-epic-nav-item yt-uix-button-size-default'>
1646+
`<div id='subscription-playlist-icon'>
1647+
<a id='subscription-playlist' data-p='ttl|SUB_PLST&tnd|SUB_PLST' class='spf-link'>
16481648
<svg viewBox='0 0 14 16'>
16491649
<polygon points='0,16 14,8 0,0 '/>
16501650
</svg>
16511651
</a>
1652-
</li>`;
1652+
</div>`;
16531653
button = setLocale(button.content).firstChild;
1654-
nav_menu.appendChild(button);
1654+
browse_items.parentNode.insertBefore(button, browse_items);
16551655
document.addEventListener("click", setSubPlaylist);
16561656
}
16571657
}
@@ -2376,7 +2376,7 @@
23762376
holder = document.createElement("link");
23772377
holder.rel = "stylesheet";
23782378
holder.type = "text/css";
2379-
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.0";
2379+
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.1";
23802380
document.documentElement.appendChild(holder);
23812381
}
23822382
holder = document.createElement("script");

src/Webextension/CSS/YouTubePlus.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -152,26 +152,26 @@
152152
}
153153
#subscription-playlist-icon{
154154
margin-left: 0;
155-
position: absolute;
155+
border-bottom: 1px solid #eee;
156156
}
157157
#subscription-playlist{
158-
width: 0;
159-
height: 0 !important;
160-
padding: 20px 15px !important;
161-
}
162-
#subscription-playlist:hover{
163-
padding: 17px 15px !important;
158+
padding: 15px !important;
159+
display: block;
160+
color: #333;
161+
font-weight: 500;
162+
font-size: 13px;
163+
text-decoration: none;
164164
}
165165
#subscription-playlist:hover svg{
166166
opacity: 1;
167167
}
168168
#subscription-playlist svg{
169169
opacity: .4;
170-
width:14px;
170+
width: 14px;
171171
height: 16px;
172-
display:block;
173-
pointer-events:none;
174-
transform: translate(-50%, -50%);
172+
pointer-events: none;
173+
vertical-align: bottom;
174+
margin-right: 5px;
175175
}
176176
#blacklist-import,
177177
#blacklist-export{

src/Webextension/JS/YouTubePlus.user.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ==UserScript==
2-
// @version 1.9.0
2+
// @version 1.9.1
33
// @name YouTube +
44
// @namespace https://github.com/ParticleCore
55
// @description YouTube with more freedom
@@ -1629,29 +1629,29 @@
16291629
}
16301630
}
16311631
list = list.reverse().splice(0, 20).join("%2C");
1632-
subPlaylist.list_title = subPlaylist.list_title && subPlaylist.list_title.querySelector(".epic-nav-item-heading").textContent.trim();
1632+
subPlaylist.list_title = subPlaylist.list_title.textContent.trim();
16331633
button = document.getElementById("subscription-playlist");
16341634
button.href = "/watch_videos?title=" + subPlaylist.list_title + "&video_ids=" + list;
16351635
}
16361636
}
16371637
function subPlaylist() {
1638-
var button, nav_menu;
1639-
nav_menu = document.querySelector(".appbar-nav-menu");
1638+
var button, browse_items;
1639+
browse_items = document.querySelector("#browse-items-primary");
16401640
button = document.getElementById("subscription-playlist");
1641-
subPlaylist.list_title = document.querySelector(".appbar-nav-menu");
1641+
subPlaylist.list_title = document.querySelector("#subscriptions-guide-item [href='/feed/subscriptions']");
16421642
subPlaylist.video_list = document.getElementsByClassName("addto-watch-later-button");
1643-
if (user_settings.GEN_SUB_LIST && nav_menu && window.location.href.split("/feed/subscriptions").length > 1 && !button && subPlaylist.list_title && subPlaylist.video_list) {
1643+
if (user_settings.GEN_SUB_LIST && browse_items && window.location.href.split("/feed/subscriptions").length > 1 && !button && subPlaylist.list_title && subPlaylist.video_list) {
16441644
button = document.createElement("template");
16451645
button.innerHTML = //
1646-
`<li id='subscription-playlist-icon'>
1647-
<a id='subscription-playlist' data-p='ttl|SUB_PLST' class='yt-uix-button spf-link yt-uix-sessionlink yt-uix-button-epic-nav-item yt-uix-button-size-default'>
1646+
`<div id='subscription-playlist-icon'>
1647+
<a id='subscription-playlist' data-p='ttl|SUB_PLST&tnd|SUB_PLST' class='spf-link'>
16481648
<svg viewBox='0 0 14 16'>
16491649
<polygon points='0,16 14,8 0,0 '/>
16501650
</svg>
16511651
</a>
1652-
</li>`;
1652+
</div>`;
16531653
button = setLocale(button.content).firstChild;
1654-
nav_menu.appendChild(button);
1654+
browse_items.parentNode.insertBefore(button, browse_items);
16551655
document.addEventListener("click", setSubPlaylist);
16561656
}
16571657
}
@@ -2376,7 +2376,7 @@
23762376
holder = document.createElement("link");
23772377
holder.rel = "stylesheet";
23782378
holder.type = "text/css";
2379-
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.0";
2379+
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.1";
23802380
document.documentElement.appendChild(holder);
23812381
}
23822382
holder = document.createElement("script");

src/Webextension/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "YouTube Plus",
4-
"version": "1.9.0",
4+
"version": "1.9.1",
55
"description": "YouTube with more freedom",
66
"default_locale": "en",
77
"icons": {

0 commit comments

Comments
 (0)