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

Commit

Permalink
1.6.9
Browse files Browse the repository at this point in the history
- Fixed #394
- Fixed player elements overflowing outside the player
- Updated locales
  • Loading branch information
ParticleCore committed Oct 30, 2016
1 parent 6584e42 commit e2c5747
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 19 deletions.
2 changes: 1 addition & 1 deletion bin/update.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"addons": {
"[email protected]": {
"updates": [{
"version": "1.6.8",
"version": "1.6.9",
"update_link": "https://github.com/ParticleCore/Particle/raw/master/dist/YouTubePlus.xpi",
"applications": {
"gecko": {
Expand Down
Binary file modified dist/YouTubePlus.xpi
Binary file not shown.
12 changes: 10 additions & 2 deletions src/Userscript/YouTubePlus.user.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ==UserScript==
// @version 1.6.8
// @version 1.6.9
// @name YouTube +
// @namespace https://github.com/ParticleCore
// @description YouTube with more freedom
Expand Down Expand Up @@ -592,6 +592,10 @@
function modEmbed(original) {
return function (a, b) {
var temp, player;
temp = a.id || a;
if (temp !== "player-api" && temp !== "upsell-video") {
return original.apply(this, arguments);
}
b = modArgs(b);
temp = original.apply(this, arguments);
player = document.getElementById("movie_player");
Expand Down Expand Up @@ -639,6 +643,10 @@
function modPlayerCreate(original) {
return function (a, b) {
var i, temp, player;
temp = a.id || a;
if (temp !== "player-api" && temp !== "upsell-video") {
return original.apply(this, arguments);
}
b = modArgs(b);
if (a.id === "upsell-video") {
original.apply(this, arguments);
Expand Down Expand Up @@ -2253,7 +2261,7 @@
holder = document.createElement("link");
holder.rel = "stylesheet";
holder.type = "text/css";
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.6.8";
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.6.9";
document.documentElement.appendChild(holder);
}
holder = document.createElement("script");
Expand Down
19 changes: 8 additions & 11 deletions src/Webextension/CSS/YouTubePlus.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@
/* end| Compact thumbnail titles */
/* start| Floater player */
@media screen and (min-width: 657px){
html.floater:not(.part_fullbrowser) #player #movie_player:not(.ytp-fullscreen){
html.floater:not(.part_fullbrowser) #player #player-api #movie_player:not(.ytp-fullscreen){
box-shadow: 0 0 10px rgb(0, 0, 0) !important;
position: fixed !important;
z-index: 10;
}
html.floater:not(.part_fullbrowser) #player #movie_player:not(.ytp-fullscreen) .ytp-next-button,
html.floater:not(.part_fullbrowser) #player #movie_player:not(.ytp-fullscreen) .ytp-size-button{
html.floater:not(.part_fullbrowser) #player #player-api #movie_player:not(.ytp-fullscreen) .ytp-next-button,
html.floater:not(.part_fullbrowser) #player #player-api #movie_player:not(.ytp-fullscreen) .ytp-size-button{
display: none !important;
}
.floater:not(.part_fullbrowser) #movie_player:not(.ytp-fullscreen):hover #part_floaterui{
.floater:not(.part_fullbrowser) #player-api #movie_player:not(.ytp-fullscreen):hover #part_floaterui{
opacity: 1;
pointer-events: initial;
}
Expand Down Expand Up @@ -214,8 +214,8 @@
#watch-header{
position: relative;
}
.part_fullbrowser div#movie_player.playing-mode,
.part_fullbrowser div#movie_player.paused-mode{
.part_fullbrowser #player-api div#movie_player.playing-mode,
.part_fullbrowser #player-api div#movie_player.paused-mode{
bottom: 0 !important;
left: 0 !important;
position: fixed !important;
Expand Down Expand Up @@ -393,7 +393,7 @@
display: none;
}
.part_popout #player-api,
.part_popout #movie_player{
.part_popout #player-api #movie_player{
position: fixed !important;
bottom: 0 !important;
left: 0 !important;
Expand Down Expand Up @@ -598,7 +598,7 @@
html:not(.part_autoplayon) .ytp-large-play-button{
transition: none !important;
}
body:not(.page-loaded) #movie_player .ytp-thumbnail-overlay {
body:not(.page-loaded) #player-api #movie_player .ytp-thumbnail-overlay {
display: none;
}
#placeholder-player .player-api {
Expand Down Expand Up @@ -678,9 +678,6 @@
.part_cinema_mode #masthead-positioner:before{
background-color: rgba(0, 0, 0, .9);
}
.part_cinema_mode .html5-video-player{
overflow: initial;
}
/* end| Cinema mode */
/* start| Particle settings */
#P-settings{
Expand Down
12 changes: 10 additions & 2 deletions src/Webextension/JS/YouTubePlus.user.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ==UserScript==
// @version 1.6.8
// @version 1.6.9
// @name YouTube +
// @namespace https://github.com/ParticleCore
// @description YouTube with more freedom
Expand Down Expand Up @@ -592,6 +592,10 @@
function modEmbed(original) {
return function (a, b) {
var temp, player;
temp = a.id || a;
if (temp !== "player-api" && temp !== "upsell-video") {
return original.apply(this, arguments);
}
b = modArgs(b);
temp = original.apply(this, arguments);
player = document.getElementById("movie_player");
Expand Down Expand Up @@ -639,6 +643,10 @@
function modPlayerCreate(original) {
return function (a, b) {
var i, temp, player;
temp = a.id || a;
if (temp !== "player-api" && temp !== "upsell-video") {
return original.apply(this, arguments);
}
b = modArgs(b);
if (a.id === "upsell-video") {
original.apply(this, arguments);
Expand Down Expand Up @@ -2253,7 +2261,7 @@
holder = document.createElement("link");
holder.rel = "stylesheet";
holder.type = "text/css";
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.6.8";
holder.href = "https://particlecore.github.io/Particle/stylesheets/YouTubePlus.css?v=1.6.9";
document.documentElement.appendChild(holder);
}
holder = document.createElement("script");
Expand Down
Loading

0 comments on commit e2c5747

Please sign in to comment.