Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //last solution
- //load jquery onto site
- var script = document.createElement('script');
- script.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js";
- document.getElementsByTagName('head')[0].appendChild(script);
- var divs = document.getElementsByTagName("div");
- var foundEle;
- for(var i = 0; i < divs.length; i++) {
- if(divs[i].className=='sc-eopZyb eLmxBH'){
- foundEle = divs[i].children;
- break;
- }
- }
- //console.log(foundEle);
- for(var i = 0; i < foundEle.length; i++) {
- if(foundEle[i].tagName == 'DIV') {
- //twitter div
- if (foundEle[i].className=='sc-iCwjlJ dzxfbe') {
- var twitterChilds=foundEle[i].children[0].children[0].children;
- var twString = twitterChilds[1].innerHTML;
- if (twString.indexOf("Follow")>=0) {
- // Follow
- if (twString.indexOf("gheed")>=0) {
- foundEle[i].click();
- }
- //probably add into list and then iterate through it and follow everything idk
- var followLink = twString.substring(twString.indexOf('"')+1,twString.indexOf('target')-2)
- //var openedWindow= window.open(followLink,'_blank');
- //after action
- //openedWindow.focus();
- var twitterDivs = document.getElementById("doc");
- foundEle[i].click();
- //openedWindow.close();
- /*
- if (jQuery) {
- console.log("hi")
- }
- */
- //blocked by CORS policy
- /*
- $.get(followLink, null, function(text){
- alert($(text).find('#page-outer'));
- });
- */
- //"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
- /*
- // blocked by same origin policy
- var teste = function(){
- var mon = openedWindow.document.getElementById("monitor");
- if(typeof(mon)!="undefined"){
- //novoForm.alert("Achei!");
- var h = openedWindow.innerHeight;
- var strh = String(h - 40 - 30)+'px';
- openedWindow.document.getElementById("page-outer").style.height = strh;
- openedWindow.document.getElementById("page-outer").innerHTML = '<p class="legenda">© NetArts | gustavopi</p>';
- clearInterval(id);
- }
- }
- var id = setInterval(teste, 100);
- */
- } else {
- //Retweet
- }
- } else if(foundEle[i].className=='sc-imABML cqIoqC'){
- //do nothing cuz no bonus for twitch shit
- } else if(foundEle[i].className=='sc-gbzWSY hoEhZx'){
- //do nothing cuz no coins to spend
- } else{
- //cant with link else it wont trigger the button
- foundEle[i].click();
- // somehow find a way to close the opened tabs
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement