mindsScripts

Filter Me

Oct 23rd, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Filter Me
  3. // @description hide my posts in minds newsfeed
  4. // @include https://www.minds.com/newsfeed/subscribed*
  5. // @match https://www.minds.com/newsfeed/subscribed*
  6. // @version 1.02
  7. // @require http://code.jquery.com/jquery-1.12.4.min.js
  8. // @require https://gist.github.com/raw/2625891/waitForKeyElements.js
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. var myName='your name here';
  13. waitForKeyElements (
  14. 'minds-activity[class^=mdl-card]',
  15. hideMe
  16. );
  17. function hideMe (jNode) {
  18.  
  19. var user='';
  20. try{
  21. user = jNode[0].childNodes[1].childNodes[2].childNodes[0].childNodes[0].innerHTML;
  22. if(myName == user){
  23. jNode[0].style.display='none';
  24. console.info('found');
  25. }
  26. }catch(e){}
  27. try{
  28. user = jNode[0].childNodes[1].childNodes[3].childNodes[0].childNodes[0].innerHTML;
  29. if(myName == user){
  30. jNode[0].style.display='none';
  31. console.info('found');
  32. }
  33. }catch(e){}
  34. }
  35. }());
Advertisement
Add Comment
Please, Sign In to add comment