Created
December 27, 2024 10:58
-
-
Save newsbubbles/811775921274b42df66caa1f339cb8c3 to your computer and use it in GitHub Desktop.
Crypto YouTube Scam Destroyer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_that_ass(elem){ | |
console.log("Removed: " + elem.innerText); | |
elem.parentNode.parentNode.parentNode.parentNode.parentNode.remove(); | |
} | |
function fuck_spam_up(bad_words){ | |
var elem = document.querySelectorAll('ytd-comment-thread-renderer.style-scope > ytd-comment-view-model:nth-child(2) > div:nth-child(3) > div:nth-child(2) > ytd-expander:nth-child(2) > div:nth-child(1) > yt-attributed-string:nth-child(2) > span:nth-child(1)'); | |
var spams = 0; | |
for (var i = 0; i < elem.length; i++){ | |
var e = elem[i]; | |
var t = e.innerText.toLowerCase(); | |
for (var c = 0; c < bad_words.length; c++){ | |
var b = bad_words[c]; | |
if (typeof(b) == 'string'){ | |
if (t.includes(b.toLowerCase())){ | |
get_that_ass(e); | |
spams++; | |
} | |
}else{ // Use an and to check for all within | |
var dirty = true; | |
for (var dirt = 0; dirt < b.length; dirt++){ | |
var d = b[dirt]; | |
if (!t.includes(d.toLowerCase())){ | |
dirty = false; | |
break; | |
} | |
} | |
if (dirty){ | |
get_that_ass(e); | |
spams++; | |
} | |
} | |
} | |
} | |
console.log("Total Comments: " + elem.length); | |
console.log("SPAM Comments: " + spams); | |
var perc = spams / elem.length; | |
console.log("Percent Crypto Spam: " + perc); | |
} | |
fuck_spam_up(["XAI", "Flokong", ["wallet", "seed"], "advisor", "telegram", ["new", "invest"], ["share", "invest"], "mentor", "Mrs", "whatsapp", "guide", "knowledgeable", "floki", "expert", "AREO", "$"]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment