Minishares Link Scrubber

This removes shr77 redirections from Minishares.com

  1. // ==UserScript==
  2. // @name Minishares Link Scrubber
  3. // @version 0.1
  4. // @description This removes shr77 redirections from Minishares.com
  5. // @namespace https://greasyfork.org/users/2329-killerbadger
  6. // @match *.minishares.org
  7. // @match *.minishares.org/*
  8. // @match *.minirlss.net/*
  9. // ==/UserScript==
  10.  
  11. var links = document.links;
  12. for( i=0; i<document.links.length; i++ )
  13. {
  14. var pattern = /http:\/\/shr77.com\/[0-9]*\/interstitial/;
  15. if(pattern.test(document.links[i].href) )
  16. {
  17. //replaces link with only the actual link (part after interstitial)
  18. document.links[i].href = document.links[i].href.substr(document.links[i].href.indexOf("interstitial")+13);
  19. }
  20. }