Greasy Fork is available in English.

IsoHunt - Remove Sponsored Torrents

Removes Sponsored Torrents from the search page

  1. // ==UserScript==
  2. // @name IsoHunt - Remove Sponsored Torrents
  3. // @namespace https://greasyfork.org/en/users/321-joesimmons
  4. // @description Removes Sponsored Torrents from the search page
  5. // @include https://isohunt.to/torrents/?ihq=*
  6. // @copyright JoeSimmons
  7. // @version 1.0.0
  8. // @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
  9. // @grant GM_addStyle
  10. // ==/UserScript==
  11.  
  12. /* CHANGELOG
  13.  
  14. 1.0.0 (2/8/2015)
  15. - created
  16.  
  17. */
  18.  
  19. +function () {
  20. 'use strict';
  21.  
  22. var tr = document.evaluate('//div[@id="serps"]/table/tbody/tr/td[ contains(., "Sponsored") ]/ancestor::tr', document, null, 6, null),
  23. i;
  24.  
  25. // make sure the page is not in a frame
  26. if (window.frameElement || window !== window.top) { return; }
  27.  
  28. for (i = 0; i < tr.snapshotLength; i += 1) {
  29. tr.snapshotItem(i).style.display = 'none';
  30. }
  31. }();