Bitsnoop clean tracker list

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==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());