Skip to content

Commit

Permalink
still working on V3 stuff
Browse files Browse the repository at this point in the history
been having a very difficult time with this part of the development process, and also i've been working on other projects too. hopefully i can finish this sometime this week.
  • Loading branch information
ktg5 committed Sep 2, 2024
1 parent f65cf6f commit 6dc0f7a
Show file tree
Hide file tree
Showing 9 changed files with 184 additions and 169 deletions.
4 changes: 0 additions & 4 deletions css/2010.css
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,6 @@
height: 4px !important;
}

.ytp-volume-panel .ytp-volume-slider-handle::before {
left: -64px;
}

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

/* RIGHT BUTTONS */
Expand Down
24 changes: 10 additions & 14 deletions css/2012.css
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@
/* PLAY BUTTON */

.ytp-button.ytp-play-button {
background: url(chrome-extension://__MSG_@@extension_id__/img/2012-icons.png);
background-position: -79px 153.5px;
background-size: 210px;
background: url(chrome-extension://__MSG_@@extension_id__/img/2012-icons.png) !important;
background-position: -79px 153.5px !important;
background-size: 210px !important;
width: 55px !important;
}

Expand All @@ -316,11 +316,11 @@
}

.ytp-button.ytp-play-button[data-title-no-tooltip="Play"] {
background-position: -114px 91.5px;
background-position: -114px 91.5px !important;
}

.ended-mode .ytp-button.ytp-play-button {
background-position: -114px 27px;
background-position: -114px 27px !important;
}

/* NEXT BUTTON */
Expand All @@ -331,9 +331,9 @@
/* VOLUME BUTTON */
/* DEFAULT */
.ytp-button.ytp-mute-button {
background: url(chrome-extension://__MSG_@@extension_id__/img/2012-icons.png);
background-position: -175px -296px;
background-size: 210px;
background: url(chrome-extension://__MSG_@@extension_id__/img/2012-icons.png) !important;
background-position: -175px -296px !important;
background-size: 210px !important;
width: 40px !important;
}

Expand All @@ -344,12 +344,12 @@

/* MEDIUM VOLUME */
.ytp-volume-area[simplevolumenow="med"] .ytp-button.ytp-mute-button {
background-position: -138px -296px;
background-position: -138px -296px !important;
}

/* LOW VOLUME */
.ytp-volume-area[simplevolumenow="low"] .ytp-button.ytp-mute-button {
background-position: -138px -296px;
background-position: -138px -296px !important;
}

/* MUTE */
Expand Down Expand Up @@ -462,10 +462,6 @@
height: 4px !important;
}

.ytp-volume-panel .ytp-volume-slider-handle::before {
left: -64px;
}

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

/* RIGHT BUTTONS */
Expand Down
4 changes: 0 additions & 4 deletions css/2013.css
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,6 @@
height: 4px !important;
}

.ytp-volume-panel .ytp-volume-slider-handle::before {
left: -64px;
}

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

/* RIGHT BUTTONS */
Expand Down
31 changes: 18 additions & 13 deletions css/forv3.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,35 @@
background: var(--pt-progress-bar-bg) !important;
}

/* volume slider */
.spitfire-body-container.v3 .html5-video-controls .ytp-volume-slider .ytp-volume-slider-foreground:before {
background: var(--pt-volume-slider) !important;
}

.spitfire-body-container.v3 .html5-video-controls .ytp-volume-slider .ytp-volume-slider-foreground:after {
background: black;
}


/* ### 2012 ### */
/* base */
.spitfire-body-container.v3[pt-year="2012"] .html5-video-player .html5-video-controls {
height: 35px !important;
}
.spitfire-body-container.v3[pt-year="2012"] .html5-video-player .html5-player-chrome {
background: transparent !important;
top: -2px;
}
.spitfire-body-container.v3[pt-year="2012"] .html5-video-player .html5-player-chrome:before {
content: '';
display: block;
position: relative;
top: 2px;
width: 100%;
height: 1px;
background: #ffffff33;
}

/* buttons */
.spitfire-body-container.v3[pt-year="2012"] .ytp-button.ytp-button-volume {
width: 30px !important;
/* volume control & panel */
.spitfire-body-container.v3[pt-year="2012"] .ytp-volume-slider-active .ytp-volume-panel {
width: 56px !important;
}

.spitfire-body-container.v3[pt-year="2012"] .ytp-volume-panel {
top: 2px;
}

/* buttons */
.spitfire-body-container.v3[pt-year="2012"] .ytp-subtitles-button-active {
background: url(chrome-extension://__MSG_@@extension_id__/img/2012-icons.png) no-repeat;
background-size: 200px;
Expand Down
3 changes: 2 additions & 1 deletion html/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ var runtime = browser.runtime;
/// Version
var version = runtime.getManifest().version;

setTimeout(() => {

setTimeout(async () => {
// Add version number to page title
var pageName = document.getElementById('page-name').innerHTML;
document.title = `PlayerTube v${version} : ${pageName}`;
Expand Down
4 changes: 2 additions & 2 deletions html/update.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
<h1>PlayerTube has been updated!</h1>
<h3>Some year names have been changed and they are listed below.</h3>
<ul>
<li><b>Renamed the 2012 theme to 2013 & 2011 to 2012</b> because of <a href="https://i.imgur.com/jqa9TkR.jpeg">this</a> image (that's new to me).</li>
<li><b>Renamed the 2012 theme to 2013 & 2011 to 2012</b> because of <a href="https://i.imgur.com/jqa9TkR.jpeg">this image</a> (that's new to me).</li>
<li>Change of placement for the <kbd>Change year of Player</kbd> settings option.</li>
<li><b>Fixed the "TrustedTypes" issue with the resize script.</b></li>
<li><b>Added <a href="https://vorapis.pages.dev/#/">Project V3</a> support</b> (somewhat). As of currently, there is no manual configuration needed for this extension.</li>
<li><b>Added <a href="https://vorapis.pages.dev/#/">Project V3</a> support</b>, only 2013-2010 themes & custom themes are supported. As of currently, there is no manual configuration needed for this extension.</li>
<li>A lot of CSS improvements.</li>
<li>Added <a href="https://github.com/ktg5/PlayerTube/issues/28">#28 -- "[ Feature Request ] add a toggle for the custom loading icon"</a> under <kbd>Toggle the loading spinner [...]</kbd>.</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

"web_accessible_resources": [{
"matches": ["*://*.youtube.com/*"],
"resources": ["css/*", "src/*", "img/*"]
"resources": ["css/*", "src/*", "img/*", "v3elmnts.json"]
}],

"permissions": [
Expand Down
Loading

0 comments on commit 6dc0f7a

Please sign in to comment.