TBD: Blur Stats on TorrentBD

When turned on, all stats are hidden. Take screenshots without worries.

// ==UserScript==
// @name         TBD: Blur Stats on TorrentBD
// @namespace    https://naeembolchhi.github.io/
// @version      0.3
// @description  When turned on, all stats are hidden. Take screenshots without worries.
// @author       NaeemBolchhi
// @license      GPL-3.0-or-later
// @match        https://www.torrentbd.com/*
// @match        https://www.torrentbd.net/*
// @match        https://www.torrentbd.org/*
// @match        https://www.torrentbd.me/*
// @exclude      https://*.torrentbd.*/theme
// @exclude      https://*.torrentbd.*/terminal
// @icon         data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAHYAAAB2AH6XKZyAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAACzZJREFUeJztm39wXNV1xz/nvre/3v6SZMe2ftjY4AGTYGxsQmwMsSkFHPMjpdTQQGaaNKXJTPpH0inTloCzDjSQTH+kSabkj2bITIYkhZk2LQUTmGQMrXGgoaGYCcMvFyNblkWMtNrVStrdd0//WEnWW2m1PyTFf1TfmZ0399x7zj3n++477/54C0tYwhKWsIT/v5DFNL5376NOb+H181HdKFbOEbGrQc5RwVPVhEFCABYtiUgey4gajomV42r0GCJHVnsXvPHYY7f6i+XjghKwa1cmOh6VHSJyrcKVwCbAm6fZgqKvAM+K8kxkTA8dPJgZm7+3FcybgF27MtFizLlB0TuAa5l/wPVQQHhK0B+EC/rEfMlomYDt12Y24MoXUPkEkJqPE/NAVoVHLPbvX3wy80YrBpom4CO777/CGPsXKHsa1D+p8EtB31Q1x4zQay1DOJpToQzgWhPyrSYwdpnB9Ch2NciFwGZgRQN9WOAJUR54/ql9h5uJp2ECLr8+c5Fa8wBwQx2L/wv6tMAzJfTQfz2Z6W/GoWrsuCbT5btypYi5BtVrgDV1VH5ssV964UDmV43Yr0vA1t9+MB0Oj38NlT8CnBrNjgM/ErGPPP9k5uVGOm4V2/Z85SPA7aLcBqys0cwHHjKhyN2H/u3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66M4kanNKpKusiFRk4DjwG2zHbTOOmAkHj+J6m5gsLrOEbhiWTBNnLP9MtI9XdVNFw1tq3tY/eGtAdkVy0rUmMEPAzdKInFqtsqaT4wkk6+i+juI5KvrLm0r0RGalm1FuPjWWwjFFv9RCMU9Nu69GTFnXO8IWS5tmzV3j6F6syQSNT/bmTNlSDL5HL6/mwqLU3AEbuwM7CwRa29jyyd/HyccaiCM1uBEwmy5/TZi7W0B+fWrirPd/QJwkySTP5vLZt0NJUmlDgE7qcoJ6zyf7R1B1tNretj6B3csSlIMex6XfuqTpNf0BOTbO0qcF5/x6juNtddJIvFMPbsNLyW0UOjG2n8GLpuUWYVHjkd5eyS4Nz06OMgrj/0L2d55nVxPIb2mh0233kI0HZx6r4/73N4zhglG8Tq+f4Ok0281Yru5w1FVl3z+HkTuZWL0FC080hvl2GiQBLWW3hd+wdsHn6NUGG2mmymE4h7rr9pJz2VbZxyMrIn53LF6PLj4EXmMYvGPpb19qNE+Wjq10lzuKkQeAi6Ayhr8n05EODoy8zMBf7zIiV/+Dyf++2VyDe4gpbo66dqyie5LNs+aU9bHfW7tGScsU8GfRPULkkw+2mwsrX8goRqhULgL1T8D0lbh6YEwPx+snQRHB4cYevddcn2nGM1mpzZUQrEY0bY0iZUr6Fi3dsZQn+7s5ctKXL28ODnsi8B3KBb3SYufzMz7ExnNZjtwnLuAzwFtRwsOj/dHGCwu7F8ROkKWmzqLrPV8gHFUv4/r3i+x2LH52F0wL1U1TqFwB6p3lpVLfzEU4tDpELny/LpIhZQrlpXYmi7hGHkL1X9E9WFJJgfqa9fHovxjREdH1+L7N5eRa18bdj76as71jo44lBo8JAobOM8rc1HKH9+QLL/oGHka1X+VROLIQvu6qH+ZAVBVQz7/weGyXPJ63r3ydNnZmC3KijEriZISAXDRYsKxuXhI3lsV8Y+c75Wfj4flZTzvSLMfSi5hCUtYwhKW0Dj+D2YBFO2kQyt6AAAAAElFTkSuQmCC
// @run-at       document-idle
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function addStyle(css) {
        var head, style;
        head = document.getElementsByTagName('head')[0];
        if (!head) {window.location.reload();}
        style = document.createElement('style');
        style.setAttribute('type', 'text/css');
        style.innerHTML = css;
        head.insertBefore(style, null);
    }

    addStyle(`
        .blurstats, .cr-value, .short-link-counter {
          filter: blur(4px);
        }
        .blurmax, #general-info .col.s12.m5 .cr-wrapper:last-of-type div:last-of-type {
          filter: blur(8px);
        }
    `);

    var statBox = document.querySelectorAll('.table.profile-info-table tbody tr');
    var statLength = statBox.length - 1;
    var links = document.querySelectorAll('#general-info .col.s12.m5 .margin-b-10 a');

    try {
        for (let x = 0; x < statLength; x++) {
            statBox[x].querySelectorAll('td')[1].classList.add('blurstats');
        }
    } catch(e) {}

    try {
        for (let x = 0; x < links.length; x++) {
            links[x].innerHTML = '<span class="blurstats">' + links[x].innerHTML + '</span>';
        }
    } catch(e) {}

})();