Bitsnoop clean tracker list

Get the first 100 listed trackers in a client-freiendly, copy-paste ready form

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

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

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           Bitsnoop clean tracker list
// @namespace      surrealmoviez.info
// @description    Get the first 100 listed trackers in a client-freiendly, copy-paste ready form
// @include        http://bitsnoop.com/trackers/
// @grant          none
// @version        0.0.2
// ==/UserScript==

var blacklisted = ['exodus.desync.com'];

var textarea = '<br>'
        + '<span class="smaller">100 first trackers:</span>'
        + '<textarea id="cleanList" style="width: 96%; height: 150px;" wrap="off" onclick="this.select();" title="Click to select"></textarea>';
$(textarea).appendTo('#sidebar');

var trackerUrls = [];
var trs = $('.dataTable tr');
var stop = 101;

trackersLoop:
for (var i = 1; i < stop; i++) {
    var tracker = $('td:eq(1)', trs.get(i)).text();
    for (var j = 0; j < blacklisted.length; j++) {
        if (tracker.indexOf(blacklisted[j]) !== -1) {
            stop++;
            continue trackersLoop;
        }
    }
    trackerUrls.push(tracker);
}

$('#cleanList').val(trackerUrls.join('\n\n').trim());