Last active
January 3, 2016 12:29
-
-
Save dukex/8463225 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 removeSugestions = function(){ | |
var x = document.querySelectorAll(".ego_x") | |
for(var i = 0; i < x.length; i++){ | |
x[i].click() | |
} | |
var e = document.querySelectorAll("[name=xout_reason][value=not_interested]") | |
for(var j = 0; j< e.length; j++){ | |
e[j].click() | |
} | |
setTimeout(removeSugestions, 5000) | |
} | |
setTimeout(removeSugestions, 5000) |
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 markSpam = function(){ | |
var o = document.querySelectorAll("[aria-label='Story options']") | |
for(var i = 0; i < o.length; i++){ | |
o[i].click() | |
} | |
var hiddenElems = document.querySelectorAll(".hidden_elem") | |
for(var k = 0; k < hiddenElems.length; k++){ | |
hiddenElems[k].className = hiddenElems[k].className.replace("hidden_elem", ""); | |
} | |
idontseeitagain = document.querySelectorAll("._54nc[rel='async-post']") | |
for(var i = 0; i < idontseeitagain.length; i++){ | |
if(idontseeitagain[i].text.trim() == "I don't want to see this") { | |
idontseeitagain[i].click() | |
} | |
} | |
closeDialogs = document.querySelectorAll("[role='dialog'] .layerCancel") | |
for(var i = 0; i < closeDialogs.length; i++){ | |
closeDialogs[i].style.border = "1px solid pink" | |
} | |
inputs = document.querySelectorAll("._5c0h input[value=spam]") | |
for(var x = 0; x < inputs.length; x++){ | |
inputs[i].click() | |
} | |
inputs = document.querySelectorAll("._5c0h input[value=spammy]") | |
for(var i = 0; i < inputs.length; i++){ | |
inputs[i].click() | |
} | |
setTimeout(markSpam, 5000); | |
}; | |
setTimeout(markSpam, 2000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment