AdHelper

AdHelper clicks on advertisements automatically in the background so you can support reddit

  1. // ==UserScript==
  2. // @name AdHelper
  3. // @namespace AdHelper
  4. // @description AdHelper clicks on advertisements automatically in the background so you can support reddit
  5. // @include *reddit.com*
  6. // @version 3
  7. // @grant GM_xmlhttpRequest
  8. // ==/UserScript==
  9.  
  10. window.onload = function () {
  11. var spLinks = document.querySelectorAll(".promoted a.title");
  12. for (i = 0; i < spLinks.length; i++)
  13. {
  14. spLinks[i] && spLinks[i].href && GM_xmlhttpRequest({method: "GET", url: spLinks[i].href});
  15. }
  16. };