Skip to content

Commit

Permalink
fix fake bar not working (1.7.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktg5 committed Jun 26, 2024
1 parent 1f4d41a commit 7bce432
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
8 changes: 7 additions & 1 deletion css/2012.css
Original file line number Diff line number Diff line change
Expand Up @@ -618,4 +618,10 @@
background-position: -1px -524px;
}

/* ################################# */
/* ################################# */

/* 3rd-party extensions */

.ytp-autohide .ytp-chrome-bottom #previewbar {

}
14 changes: 9 additions & 5 deletions html/update.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@
<div class="v1dot7dot1">
<h1 class="showVersion">PlayerTube has been updated to </h1>
<ul>
<li>Improvements to resize script (using custom detection v2.1).</li>
<li>2012 & 2011 CSS improvements.</li>
<li><a href="themes.html">Custom theme documentation and guide</a>.</li>
<li>Make configuration menu buttons look a bit nicer.</li>
<li>Improvements to all extension pages.</li>
<li>Quick update to fix an issue with fake bar toggle not working.</li>
</ul>
</div>

Expand All @@ -56,6 +52,14 @@ <h1 class="showVersion">PlayerTube has been updated to </h1>

<h2>Past versions...</h2>
<div class="v1dot7">
<div style="font-weight: 600;">v1.7.1</div>
<ul>
<li>Improvements to resize script (using custom detection v2.1).</li>
<li>2012 & 2011 CSS improvements.</li>
<li><a href="themes.html">Custom theme documentation and guide</a>.</li>
<li>Make configuration menu buttons look a bit nicer.</li>
<li>Improvements to all extension pages.</li>
</ul>
<div style="font-weight: 600;">v1.7</div>
This update took too long to make... <b>But I can say that this extension is now 90% stable & finished.</b>
<br>
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "PlayerTube",
"description": "The secret ingredient for a older (and better) looking YouTube.",
"version": "1.7.1",
"version": "1.7.2",
"homepage_url": "https://github.com/ktg5/PlayerTube",

"background": {
Expand Down
9 changes: 2 additions & 7 deletions src/pt-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ setInterval(() => {
}

/// Fake bar heartbeat
if (userConfig.toggleFadeOut !== true || userConfig.fakeBarToggle !== false) {
if (userConfig.fakeBarToggle !== false) {
if (!document.getElementsByClassName('video-stream html5-main-video')[0] ||
document.getElementsByClassName('video-stream html5-main-video')[0].paused == true ||
!document.getElementById('playertube-fake-bar')) {
Expand Down Expand Up @@ -474,11 +474,6 @@ function extraStyles() {
#previewbar {
top: 1px !important;
}
.ytp-autohide #previewbar {
top: -7px !important;
transform: scaleY(0.2);
}
.ytp-chrome-bottom .playerButton.ytp-button {
background: none !important;
Expand Down Expand Up @@ -756,7 +751,7 @@ function startPlayer() {

// Make fake bar
// No need to load the JS for fake bar here, that's at the top of this script.
if (userConfig.toggleFadeOut !== true || userConfig.fakeBarToggle !== false) {
if (userConfig.fakeBarToggle !== false) {
if (!document.getElementsByClassName('video-stream html5-main-video')[0] || document.getElementsByClassName('video-stream html5-main-video')[0].paused == true || document.getElementById('playertube-fake-bar')) {
return;
} else {
Expand Down

0 comments on commit 7bce432

Please sign in to comment.