allYoutubersSubbot(prank)

prank your friends with a fake subbot

目前为 2019-01-02 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name allYoutubersSubbot(prank)
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.3
  5. // @description prank your friends with a fake subbot
  6. // @author You
  7. // @match https://www.youtube.com/channel/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. var d = document.getElementsByClassName("deemphasize style-scope yt-formatted-string");
  12. var b = document.getElementById("subscriber-count");
  13.  
  14. var c = b.innerHTML.replace(' מנויים', '');
  15. var newc = c.replace(/,/g, '');
  16. var f = Number(newc);
  17. var g = "";
  18.  
  19.  
  20. var a = c.charAt(0);
  21. var t = c.charAt(1);
  22.  
  23.  
  24.  
  25.  
  26. function commafy( num ) {
  27. var str = num.toString().split('.');
  28. if (str[0].length >= 5) {
  29. str[0] = str[0].replace(/(\d)(?=(\d{3})+$)/g, '$1,');
  30. }
  31. if (str[1] && str[1].length >= 5) {
  32. str[1] = str[1].replace(/(\d{3})/g, '$1 ');
  33. }
  34. return str.join('.');
  35. }
  36. function set() {
  37.  
  38. a = c.charAt(0);
  39. t = c.charAt(1);
  40. g = commafy(f);
  41. d[0].innerHTML = a + t + "M";
  42. b.innerHTML = "מנויים " + g;
  43. f = f + 1;
  44. }
  45. window.setInterval(set, 1);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址