root2

BF custom remove

Jul 28th, 2017
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         BF remove
  3. // @namespace    BF
  4. // @include     /^https?://((www)\.)?banana\.fund(.*)?$/
  5. // @author       facebook.com/igor39
  6. // @version      1.0
  7. // @grant        none
  8. // @description  BF custom remove
  9. // ==/UserScript==
  10.  
  11. // Remove the 'reply' form of the chat, remove '/**/' for using it.
  12. /*
  13. setInterval(function(){
  14. function del(){if(document.querySelector('form[action^="/messages"]')){var i,x=document.querySelectorAll('form[action^="/messages"]');
  15. for(i=0;i<x.length;i++){x[i].remove();}console.log('del');}}del();},500);
  16. */
  17. // Remove all the messages from a person.
  18. setInterval(function(){
  19. if(document.querySelector('td[title="RoidzBBC"]')){
  20. var i,x=document.querySelectorAll('td[title="RoidzBBC"]');
  21. for(i=0;i<x.length;i++){x[i].parentElement.remove();}
  22. }
  23. // Remove the posts from Quim, where he's talking about "token(s)" or "Join"
  24. if(document.querySelector('td[title="Quim"]')){
  25. var i2,x2=document.querySelectorAll('td[title="Quim"]');
  26. for(i2=0;i2<x2.length;i2++){
  27. if( /(tokens?|Join)/gi.test( x2[i2].nextSibling.nextSibling.textContent ) ){x2[i2].parentElement.remove();}
  28. }
  29. }
  30. },500);
  31. // who is selling at the highest level? You will know.
  32. if(/(trading)/gi.test(location.href)){
  33. console.log('trading');
  34. orderDisplayLimit=100; //drawOrderBooks('sell'); drawOrderBooks('buy');
  35. }
Advertisement
Add Comment
Please, Sign In to add comment