From 49ac17a40eb80364c094b5ef194b40ece0c0d7e6 Mon Sep 17 00:00:00 2001 From: Marcus Salinas <12.marcus.salinas@gmail.com> Date: Fri, 28 Feb 2025 08:42:05 -0600 Subject: [PATCH] fix(no-google-login): Remove Library icon removal code (#3010) --- src/plugins/no-google-login/index.ts | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/plugins/no-google-login/index.ts b/src/plugins/no-google-login/index.ts index ab7cca1f..af89bcde 100644 --- a/src/plugins/no-google-login/index.ts +++ b/src/plugins/no-google-login/index.ts @@ -22,27 +22,5 @@ export default createPlugin({ node.remove(); } } - - // Remove the library button - const libraryIconPath = - 'M16,6v2h-2v5c0,1.1-0.9,2-2,2s-2-0.9-2-2s0.9-2,2-2c0.37,0,0.7,0.11,1,0.28V6H16z M18,20H4V6H3v15h15V20z M21,3H6v15h15V3z M7,4h13v13H7V4z'; - const observer = new MutationObserver(() => { - const menuEntries = document.querySelectorAll( - '#items ytmusic-guide-entry-renderer', - ); - menuEntries.forEach((item) => { - const icon = item.querySelector('path'); - if (icon) { - observer.disconnect(); - if (icon.getAttribute('d') === libraryIconPath) { - item.remove(); - } - } - }); - }); - observer.observe(document.documentElement, { - childList: true, - subtree: true, - }); }, -}); +}); \ No newline at end of file