AdHelper

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

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        AdHelper
// @namespace   AdHelper
// @description AdHelper clicks on advertisements automatically in the background so you can support reddit
// @include     *reddit.com*
// @version     3
// @grant       GM_xmlhttpRequest
// ==/UserScript==

window.onload = function () {
    var spLinks = document.querySelectorAll(".promoted a.title");
    for (i = 0; i < spLinks.length; i++)
    {
        spLinks[i] && spLinks[i].href && GM_xmlhttpRequest({method: "GET", url: spLinks[i].href});
    }
};