Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube authored Jul 17, 2024
1 parent 7d09792 commit b60b117
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions js&css/web-accessible/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,13 +419,13 @@ ImprovedTube.playerOnEnded = function (event) {
ImprovedTube.onkeydown = function () {
ImprovedTube.pauseWhileTypingOnYoutube()
window.addEventListener('keydown', function () {
ImprovedTube.user_interacted = true;
ImprovedTube.user_interacted = true; // = event.key

Check warning on line 422 in js&css/web-accessible/functions.js

View workflow job for this annotation

GitHub Actions / lint-and-test

Trailing spaces not allowed

Check warning on line 422 in js&css/web-accessible/functions.js

View workflow job for this annotation

GitHub Actions / lint-and-test

Trailing spaces not allowed
}, true);
};

ImprovedTube.onmousedown = function (event) {
window.addEventListener('mousedown', function (event) {
ImprovedTube.user_interacted = true;
ImprovedTube.user_interacted = true; // = mousedown

Check warning on line 428 in js&css/web-accessible/functions.js

View workflow job for this annotation

GitHub Actions / lint-and-test

Multiple spaces found before '// = mousedown'

Check warning on line 428 in js&css/web-accessible/functions.js

View workflow job for this annotation

GitHub Actions / lint-and-test

Multiple spaces found before '// = mousedown'
}, true);
};

Expand Down
6 changes: 3 additions & 3 deletions js&css/web-accessible/www.youtube.com/appearance.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ ImprovedTube.commentsSidebarSimple = function () { if (ImprovedTube.storage.comm
/*------------------------------------------------------------------------------
Comments Sidebar
------------------------------------------------------------------------------*/
ImprovedTube.commentsSidebar = function () { if (ImprovedTube.storage.comments_sidebar === true) {
ImprovedTube.commentsSidebar = function () { if (ImprovedTube.storage.comments_sidebar === true) {
const video = document.querySelector("#player .ytp-chrome-bottom") || document.querySelector("#container .ytp-chrome-bottom");
let hasApplied = 0;
if (/watch\?/.test(location.href)) {
Expand Down Expand Up @@ -232,11 +232,11 @@ ImprovedTube.commentsSidebar = function () { if (ImprovedTube.storage.comments_s
secondaryInner.appendChild(comments);
})
}
function resizePlayer () {
const width = video.offsetWidth + 24;
function resizePlayer () { const width = video.offsetWidth + 24; if (width != 24) {
const player = document.querySelector("#player.style-scope.ytd-watch-flexy");
document.getElementById("primary").style.width = `${width}px`;
player.style.width = `${width}px`;
}
}
function styleScrollbars () {
if (!navigator.userAgent.toLowerCase().includes("mac")) {
Expand Down

0 comments on commit b60b117

Please sign in to comment.