From edb78d3ca97f551be39f5d5418aac1d5e6f5ffa7 Mon Sep 17 00:00:00 2001 From: kudo-sync-bot Date: Thu, 21 Nov 2024 14:33:14 -0800 Subject: [PATCH] =?UTF-8?q?Stripped=20trailing=20whitespace=20=E2=86=9E=20?= =?UTF-8?q?[auto-sync=20from=20https://github.com/adamlui/userscripts]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- greasemonkey/youtube-classic.user.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/greasemonkey/youtube-classic.user.js b/greasemonkey/youtube-classic.user.js index e4b6f08..3b63f9f 100644 --- a/greasemonkey/youtube-classic.user.js +++ b/greasemonkey/youtube-classic.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name YouTube™ Classic 📺 — (Remove rounded design + Return YouTube dislikes) -// @version 2024.10.30.5 +// @version 2024.11.21 // @author Adam Lui, Magma_Craft, Anarios, JRWR, Fuim & hoothin // @namespace https://github.com/adamlui // @description Reverts YouTube to its classic design (before all the rounded corners & hidden dislikes) + redirects YouTube Shorts @@ -212,7 +212,7 @@ classicLogo.style.marginLeft = '5px' ; classicLogo.height = 65 classicLogo.src = document.querySelector('ytd-masthead').getAttribute('dark') != null ? 'https://i.imgur.com/brCETJj.png' // Dark mode - : 'https://i.imgur.com/rHLcxEs.png' // Light mode + : 'https://i.imgur.com/rHLcxEs.png' // Light mode ytLogo.textContent = '' ; ytLogo.append(classicLogo) YTP.stop() for (var i = 0; i < ATTRS.length; i++) { document.getElementsByTagName('html')[0].removeAttribute(ATTRS[i]) } @@ -1475,7 +1475,7 @@ })() Object.defineProperties(document, { 'hidden': {value: false}, 'webkitHidden': {value: false}, 'visibilityState': {value: 'visible'}, 'webkitVisibilityState': {value: 'visible'} }); - + setInterval(function(){ document.dispatchEvent( new KeyboardEvent( 'keyup', { bubbles: true, cancelable: true, keyCode: 143, which: 143 } ) ); }, 60000) @@ -1621,7 +1621,7 @@ } cLog('unexpected mutation observer event: ' + mutation.target + mutation.type); })}) - } + } function checkForUserAvatarButton() { if (isMobile) { return; }