Greasy Fork is available in English.

Mini YT Redesign

10.10.2022, 18:08:39

// ==UserScript==
// @name:ru        Маленький редизайн ютуба
// @name           Mini YT Redesign
// @namespace      NyakoScr
// @match          https://www.youtube.com/watch*
// @grant          none
// @version        0.1
// @author         https://t.me/Nyako_TW
// @license        Apache License 2.0
// @description    10.10.2022, 18:08:39
// @description:ru 10.10.2022, 18:08:39
// ==/UserScript==

function replace_info() {
  info_vid = document.getElementById("info-text");
  count_view_r = document.getElementsByClassName("short-view-count")[0];
  subs_info = document.getElementById("owner-sub-count");
  text_res = subs_info.textContent + " (" + info_vid.textContent.replace(count_view_r.textContent, " - ") + ")";
  subs_info.textContent = text_res;
  info_vid.remove();
  info_vid_m = document.getElementsByClassName("ytd-video-primary-info-renderer");
  for(var item of info_vid_m) {
    if (item.id = "flex"){
      if (item.firstChild = null){
        item.remove();
      }
    }
  };
};

setInterval(replace_info, 100);