Last active
November 21, 2015 23:24
-
-
Save justinoboyle/c941b09cbe5b9f603e38 to your computer and use it in GitHub Desktop.
This file contains 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
var p = []; | |
function c(x) { return document.getElementsByClassName(x); } | |
function rl(f) { setTimeout(f, 20); } | |
var li = c("comment-header"); | |
for(var i in li) { | |
if(li[i].innerHTML && li[i].innerHTML.includes("TheArrayPro")) | |
p.push(i); | |
} | |
li = c("sprite_like"); | |
for(var i in p) | |
li[p[i]].click(); | |
c("yt-commentbox-show-reply")[p[0]].click(); | |
p = []; | |
li = c("yt-commentbox-show-reply"); | |
for(var i in li) { | |
if(li[i].innerHTML && li[i].innerHTML.includes("TheArrayPro")) | |
p.push(i); | |
} | |
for(var i in p) | |
li[p[i]].click(); | |
rl(function() { | |
document.getElementById("ytcb-text").innerHTML = "lol it worked"; | |
rl(function() { | |
c("yt-uix-button-primary yt-commentbox-button")[0].click(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment