Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Tampermonkey] YouTube / Pozwala na zamazanie wszystkich komentarzy wybranej przez nas osoby.
// ==UserScript==
// @name YouTube
// @include https://www.youtube.com/watch?v=*
// @require https://code.jquery.com/jquery-3.3.1.slim.min.js
// @grant GM_addStyle
// ==/UserScript==
(function() {
var scriptElement = document.createElement("style");
scriptElement.type = "text/css";
scriptElement.innerHTML = ".blur3px {filter: blur(3px); -webkit-filter: blur(3px);}";
document.body.appendChild(scriptElement);
setInterval(function() {
var comment = $("ytd-comment-renderer");
$(comment).each(function() {
var commentAuthorLink = $('a#author-text', $(this)).attr('href');
if(commentAuthorLink == "/channel/UCsiPVXA34NwaRxLDvq6FbYw") { // Tutaj podajemy ID profilu.
$(this).addClass("blur3px");
}
else {
$(this).removeClass("blur3px");
}
});
}, 500);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.