-
Notifications
You must be signed in to change notification settings - Fork 0
/
hide-youtube-channel-pictures.user.js
32 lines (30 loc) · 1.28 KB
/
hide-youtube-channel-pictures.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// ==UserScript==
// @name Hide YouTube Channel Pictures
// @version 1.0.2
// @description Hide youtube channel pictures
// @author MiguelEX3
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @supportURL https://github.com/MiguelEXE/hide-youtube-channel-pictures/issues
// @homepage https://github.com/MiguelEXE/hide-youtube-channel-pictures
// @downloadURL https://github.com/MiguelEXE/hide-youtube-channel-pictures/raw/master/hide-youtube-channel-pictures.user.js
// @updateURL https://github.com/MiguelEXE/hide-youtube-channel-pictures/raw/master/hide-youtube-channel-pictures.user.js
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
let observer = new MutationObserver(function(mutations){
mutations.forEach(function(mutation){
for(const node of mutation.addedNodes){
if(node.tagName === "YT-IMG-SHADOW"){
node.style.display = "none";
}
}
if(mutation.target.tagName === "YT-IMG-SHADOW"){
mutation.target.style.display = "none";
}
});
});
observer.observe(document, {subtree: true, childList: true});
})();