From 1865bf1ca8373926ca9076e6a35de356112eb6c5 Mon Sep 17 00:00:00 2001 From: szialajoscosplay <70654182+k3rielit@users.noreply.github.com> Date: Sun, 11 Jun 2023 16:05:56 +0200 Subject: [PATCH] YT Swap renderer hotfix --- youtube/swap.user.js | 1 + 1 file changed, 1 insertion(+) diff --git a/youtube/swap.user.js b/youtube/swap.user.js index 0348dbc..ce00aa5 100644 --- a/youtube/swap.user.js +++ b/youtube/swap.user.js @@ -75,6 +75,7 @@ function sleep(ms) { while(true) { await sleep(111).then(() => { if(lastHref != window.location.href || !document.getElementById('ytsw-home')) { + lastHref = window.location.href; topLeftLogo.innerText = ''; // waitForElement('#voice-search-button').then((elem) => elem.remove()); // Determine what components to render