mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
Initial commit - app + 4 plugins
This commit is contained in:
15
plugins/no-google-login/front.js
Normal file
15
plugins/no-google-login/front.js
Normal file
@ -0,0 +1,15 @@
|
||||
function removeLoginElements() {
|
||||
const elementsToRemove = [
|
||||
".sign-in-link.ytmusic-nav-bar",
|
||||
'.ytmusic-pivot-bar-renderer[tab-id="FEmusic_liked"]'
|
||||
];
|
||||
|
||||
elementsToRemove.forEach(selector => {
|
||||
const node = document.querySelector(selector);
|
||||
if (node) {
|
||||
node.remove();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = removeLoginElements;
|
||||
Reference in New Issue
Block a user