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

Commit

Permalink
1.9.1
Browse files Browse the repository at this point in the history
Fixes #568
  • Loading branch information
ParticleCore committed Sep 5, 2017
1 parent 92bb7a5 commit b984aa4
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 63 deletions.
2 changes: 1 addition & 1 deletion bin/update.json
Expand Up @@ -2,7 +2,7 @@
"addons": {
"unlisted-particle@particlecore.github.io": {
"updates": [{
"version": "1.9.0",
"version": "1.9.1",
"update_link": "https://github.com/ParticleCore/Particle/raw/master/dist/YouTubePlus.xpi",
"applications": {
"gecko": {
Expand Down
Binary file modified dist/Particle.nex
Binary file not shown.
Binary file modified dist/YouTubePlus.xpi
Binary file not shown.
32 changes: 16 additions & 16 deletions src/Opera/CSS/YouTubePlus.css
Expand Up @@ -152,26 +152,26 @@
}
#subscription-playlist-icon{
margin-left: 0;
position: absolute;
border-bottom: 1px solid #eee;
}
#subscription-playlist{
width: 0;
height: 0 !important;
padding: 20px 15px !important;
}
#subscription-playlist:hover{
padding: 17px 15px !important;
padding: 15px !important;
display: block;
color: #333;
font-weight: 500;
font-size: 13px;
text-decoration: none;
}
#subscription-playlist:hover svg{
opacity: 1;
}
#subscription-playlist svg{
opacity: .4;
width:14px;
width: 14px;
height: 16px;
display:block;
pointer-events:none;
transform: translate(-50%, -50%);
pointer-events: none;
vertical-align: bottom;
margin-right: 5px;
}
#blacklist-import,
#blacklist-export{
Expand Down Expand Up @@ -564,8 +564,8 @@
.part_grid_search .yt-lockup-meta-info > li{
display: inline;
}
.part_grid_subs .yt-lockup-content,
.part_grid_search .yt-lockup-content{
div:not(#yt-masthead-notifications-content) .part_grid_subs .yt-lockup-content,
div:not(#yt-masthead-notifications-content) .part_grid_search .yt-lockup-content{
margin-right: 10px;
}
.part_grid_search #results .item-section{
Expand Down Expand Up @@ -1134,8 +1134,8 @@
#part_welcome:after{
content:"";
display:block;
width:0;
height:0;
width:0;
height:0;
border-left:10px solid transparent;
border-right:10px solid transparent;
border-bottom:10px solid #09F;
Expand All @@ -1156,4 +1156,4 @@
.par_closewlcm > span:hover{
opacity:1;
}
/* end| Particle welcome */
/* end| Particle welcome */
22 changes: 11 additions & 11 deletions src/Opera/JS/YouTubePlus.user.js
@@ -1,5 +1,5 @@
// ==UserScript==
// @version 1.9.0
// @version 1.9.1
// @name YouTube +
// @namespace https://github.com/ParticleCore
// @description YouTube with more freedom
Expand Down Expand Up @@ -1629,29 +1629,29 @@
}
}
list = list.reverse().splice(0, 20).join("%2C");
subPlaylist.list_title = subPlaylist.list_title && subPlaylist.list_title.querySelector(".epic-nav-item-heading").textContent.trim();
subPlaylist.list_title = subPlaylist.list_title.textContent.trim();
button = document.getElementById("subscription-playlist");
button.href = "/watch_videos?title=" + subPlaylist.list_title + "&video_ids=" + list;
}
}
function subPlaylist() {
var button, nav_menu;
nav_menu = document.querySelector(".appbar-nav-menu");
var button, browse_items;
browse_items = document.querySelector("#browse-items-primary");
button = document.getElementById("subscription-playlist");
subPlaylist.list_title = document.querySelector(".appbar-nav-menu");
subPlaylist.list_title = document.querySelector("#subscriptions-guide-item [href='/feed/subscriptions']");
subPlaylist.video_list = document.getElementsByClassName("addto-watch-later-button");
if (user_settings.GEN_SUB_LIST && nav_menu && window.location.href.split("/feed/subscriptions").length > 1 && !button && subPlaylist.list_title && subPlaylist.video_list) {
if (user_settings.GEN_SUB_LIST && browse_items && window.location.href.split("/feed/subscriptions").length > 1 && !button && subPlaylist.list_title && subPlaylist.video_list) {
button = document.createElement("template");
button.innerHTML = //
`<li id='subscription-playlist-icon'>
<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'>
`<div id='subscription-playlist-icon'>
<a id='subscription-playlist' data-p='ttl|SUB_PLST&tnd|SUB_PLST' class='spf-link'>
<svg viewBox='0 0 14 16'>
<polygon points='0,16 14,8 0,0 '/>
</svg>
</a>
</li>`;
</div>`;
button = setLocale(button.content).firstChild;
nav_menu.appendChild(button);
browse_items.parentNode.insertBefore(button, browse_items);
document.addEventListener("click", setSubPlaylist);
}
}
Expand Down Expand Up @@ -2376,7 +2376,7 @@
holder = document.createElement("link");
holder.rel = "stylesheet";
holder.type = "text/css";
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.0";
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.1";
document.documentElement.appendChild(holder);
}
holder = document.createElement("script");
Expand Down
2 changes: 1 addition & 1 deletion src/Opera/manifest.json
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Particle",
"version": "1.9.0",
"version": "1.9.1",
"description": "YouTube with more freedom",
"default_locale": "en",
"icons": {
Expand Down
22 changes: 11 additions & 11 deletions src/Userscript/YouTubePlus.user.js
@@ -1,5 +1,5 @@
// ==UserScript==
// @version 1.9.0
// @version 1.9.1
// @name YouTube +
// @namespace https://github.com/ParticleCore
// @description YouTube with more freedom
Expand Down Expand Up @@ -1629,29 +1629,29 @@
}
}
list = list.reverse().splice(0, 20).join("%2C");
subPlaylist.list_title = subPlaylist.list_title && subPlaylist.list_title.querySelector(".epic-nav-item-heading").textContent.trim();
subPlaylist.list_title = subPlaylist.list_title.textContent.trim();
button = document.getElementById("subscription-playlist");
button.href = "/watch_videos?title=" + subPlaylist.list_title + "&video_ids=" + list;
}
}
function subPlaylist() {
var button, nav_menu;
nav_menu = document.querySelector(".appbar-nav-menu");
var button, browse_items;
browse_items = document.querySelector("#browse-items-primary");
button = document.getElementById("subscription-playlist");
subPlaylist.list_title = document.querySelector(".appbar-nav-menu");
subPlaylist.list_title = document.querySelector("#subscriptions-guide-item [href='/feed/subscriptions']");
subPlaylist.video_list = document.getElementsByClassName("addto-watch-later-button");
if (user_settings.GEN_SUB_LIST && nav_menu && window.location.href.split("/feed/subscriptions").length > 1 && !button && subPlaylist.list_title && subPlaylist.video_list) {
if (user_settings.GEN_SUB_LIST && browse_items && window.location.href.split("/feed/subscriptions").length > 1 && !button && subPlaylist.list_title && subPlaylist.video_list) {
button = document.createElement("template");
button.innerHTML = //
`<li id='subscription-playlist-icon'>
<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'>
`<div id='subscription-playlist-icon'>
<a id='subscription-playlist' data-p='ttl|SUB_PLST&tnd|SUB_PLST' class='spf-link'>
<svg viewBox='0 0 14 16'>
<polygon points='0,16 14,8 0,0 '/>
</svg>
</a>
</li>`;
</div>`;
button = setLocale(button.content).firstChild;
nav_menu.appendChild(button);
browse_items.parentNode.insertBefore(button, browse_items);
document.addEventListener("click", setSubPlaylist);
}
}
Expand Down Expand Up @@ -2376,7 +2376,7 @@
holder = document.createElement("link");
holder.rel = "stylesheet";
holder.type = "text/css";
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.0";
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.1";
document.documentElement.appendChild(holder);
}
holder = document.createElement("script");
Expand Down
22 changes: 11 additions & 11 deletions src/Webextension/CSS/YouTubePlus.css
Expand Up @@ -152,26 +152,26 @@
}
#subscription-playlist-icon{
margin-left: 0;
position: absolute;
border-bottom: 1px solid #eee;
}
#subscription-playlist{
width: 0;
height: 0 !important;
padding: 20px 15px !important;
}
#subscription-playlist:hover{
padding: 17px 15px !important;
padding: 15px !important;
display: block;
color: #333;
font-weight: 500;
font-size: 13px;
text-decoration: none;
}
#subscription-playlist:hover svg{
opacity: 1;
}
#subscription-playlist svg{
opacity: .4;
width:14px;
width: 14px;
height: 16px;
display:block;
pointer-events:none;
transform: translate(-50%, -50%);
pointer-events: none;
vertical-align: bottom;
margin-right: 5px;
}
#blacklist-import,
#blacklist-export{
Expand Down
22 changes: 11 additions & 11 deletions src/Webextension/JS/YouTubePlus.user.js
@@ -1,5 +1,5 @@
// ==UserScript==
// @version 1.9.0
// @version 1.9.1
// @name YouTube +
// @namespace https://github.com/ParticleCore
// @description YouTube with more freedom
Expand Down Expand Up @@ -1629,29 +1629,29 @@
}
}
list = list.reverse().splice(0, 20).join("%2C");
subPlaylist.list_title = subPlaylist.list_title && subPlaylist.list_title.querySelector(".epic-nav-item-heading").textContent.trim();
subPlaylist.list_title = subPlaylist.list_title.textContent.trim();
button = document.getElementById("subscription-playlist");
button.href = "/watch_videos?title=" + subPlaylist.list_title + "&video_ids=" + list;
}
}
function subPlaylist() {
var button, nav_menu;
nav_menu = document.querySelector(".appbar-nav-menu");
var button, browse_items;
browse_items = document.querySelector("#browse-items-primary");
button = document.getElementById("subscription-playlist");
subPlaylist.list_title = document.querySelector(".appbar-nav-menu");
subPlaylist.list_title = document.querySelector("#subscriptions-guide-item [href='/feed/subscriptions']");
subPlaylist.video_list = document.getElementsByClassName("addto-watch-later-button");
if (user_settings.GEN_SUB_LIST && nav_menu && window.location.href.split("/feed/subscriptions").length > 1 && !button && subPlaylist.list_title && subPlaylist.video_list) {
if (user_settings.GEN_SUB_LIST && browse_items && window.location.href.split("/feed/subscriptions").length > 1 && !button && subPlaylist.list_title && subPlaylist.video_list) {
button = document.createElement("template");
button.innerHTML = //
`<li id='subscription-playlist-icon'>
<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'>
`<div id='subscription-playlist-icon'>
<a id='subscription-playlist' data-p='ttl|SUB_PLST&tnd|SUB_PLST' class='spf-link'>
<svg viewBox='0 0 14 16'>
<polygon points='0,16 14,8 0,0 '/>
</svg>
</a>
</li>`;
</div>`;
button = setLocale(button.content).firstChild;
nav_menu.appendChild(button);
browse_items.parentNode.insertBefore(button, browse_items);
document.addEventListener("click", setSubPlaylist);
}
}
Expand Down Expand Up @@ -2376,7 +2376,7 @@
holder = document.createElement("link");
holder.rel = "stylesheet";
holder.type = "text/css";
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.0";
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.9.1";
document.documentElement.appendChild(holder);
}
holder = document.createElement("script");
Expand Down
2 changes: 1 addition & 1 deletion src/Webextension/manifest.json
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "YouTube Plus",
"version": "1.9.0",
"version": "1.9.1",
"description": "YouTube with more freedom",
"default_locale": "en",
"icons": {
Expand Down

0 comments on commit b984aa4

Please sign in to comment.