Planets.nu Feedblock Script

Block the feed

  1. // ==UserScript==
  2. // @name Planets.nu Feedblock Script
  3. // @namespace https://greasyfork.org/users/2984
  4. // @version 1.0
  5. // @description Block the feed
  6. // @author Dotman
  7. // @copyright 2016, Dotman
  8. // @license CC BY-NC-ND 4.0 (http://creativecommons.org/licenses/by-nc-nd/4.0/)
  9. // @include http://planets.nu/#/*
  10. // @include http://planets.nu/*
  11.  
  12. // ==/UserScript==
  13.  
  14. var hideFeed = function() {
  15. $('div#eactivitycol').remove();
  16. $('div#eactivityfooter').remove();
  17. hideFeed.cnt = hideFeed.cnt + 1;
  18. if (hideFeed.cnt < 100) {
  19. setTimeout(hideFeed,100);
  20. }
  21. };
  22.  
  23. (function() {
  24. 'use strict';
  25. $(document).ready(function() {
  26. hideFeed.cnt = 0;
  27. setTimeout(hideFeed, 100);
  28. });
  29. })();