allYoutubersSubbot(prank)

prank your friends with a fake subbot

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         allYoutubersSubbot(prank)
// @namespace    http://tampermonkey.net/
// @version      1.3
// @description  prank your friends with a fake subbot
// @author       You
// @match        https://www.youtube.com/channel/*
// @grant        none
// ==/UserScript==

var d = document.getElementsByClassName("deemphasize style-scope yt-formatted-string");
var b = document.getElementById("subscriber-count");

var c = b.innerHTML.replace(' מנויים', '');
var newc = c.replace(/,/g, '');
var f = Number(newc);
var g = "";


var a = c.charAt(0);
var t = c.charAt(1);




function commafy( num ) {
    var str = num.toString().split('.');
    if (str[0].length >= 5) {
        str[0] = str[0].replace(/(\d)(?=(\d{3})+$)/g, '$1,');
    }
    if (str[1] && str[1].length >= 5) {
        str[1] = str[1].replace(/(\d{3})/g, '$1 ');
    }
    return str.join('.');
}
function set() {

    a = c.charAt(0);
    t = c.charAt(1);
    g = commafy(f);
    d[0].innerHTML = a + t + "M";
    b.innerHTML = "מנויים " + g;
    f = f + 1;
}
window.setInterval(set, 1);