Jakal_X

Reddit Robin Cleanup

Apr 4th, 2016
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. 1. Replace or add usernames to the list of blockedUsers (i.e. person1, person2) that you would like blocked.
  2. 2. Copy and paste the text below into the console section of your internet browser and run it.
  3. 3. If you do not know how to access the console section of your internet browser, google is your friend :)
  4.  
  5. ====================================== Copy everything below this line ======================================
  6.  
  7. setInterval(function(){
  8. var blockedUsers = [
  9. "person1",
  10. "person2"
  11. ];
  12. var message = document.getElementById("robinChatMessageList").lastElementChild;
  13. var blockedMessage = "[Message Deleted]";
  14. if (message !== null
  15. && typeof message.getElementsByClassName("robin-message--from") !== "undefined"
  16. && typeof message.getElementsByClassName("robin-message--from")[0] !== "undefined"
  17. && typeof blockedUsers.indexOf !== "undefined"
  18. && blockedUsers.indexOf(message.getElementsByClassName("robin-message--from")[0].innerHTML) > -1
  19. && message.getElementsByClassName("robin-message--message")[0].innerHTML != blockedMessage)
  20. message.getElementsByClassName("robin-message--message")[0].innerHTML = blockedMessage }
  21. , 100)
Add Comment
Please, Sign In to add comment