Watch Tiktok in fullscreen

Hide the comment section of all Tiktok videos so the videos will be full screen.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Watch Tiktok in fullscreen
// @name:fr      Regarder Tiktok en plein écran
// @include         *tiktok.com/*
// @version      0.8
// @description  Hide the comment section of all Tiktok videos so the videos will be full screen.
// @description:fr  Masque la section des commentaires de toutes les vidéos Tiktok afin que les vidéos soient en plein écran.
// @author       modmodmooood
// @match        https://www.tiktok.com
// @icon         https://www.google.com/s2/favicons?domain=https://www.tiktok.com/
// @grant        none
// @namespace https://tiktok.com/*
// ==/UserScript==


(function() {

    var injected_code_04_1 = false;
   setInterval(() => {
       var element = document.getElementsByClassName("jsx-3748520549 user-info-container")[0]
//If it isn't "undefined" and it isn't "null", then it exists.
if(typeof(element) != 'undefined' && element != null && injected_code_04_1 === false){
  injected_code_04_1 = true;
 document.getElementsByClassName("jsx-3748520549 user-info-container")[0].innerHTML = `
      <br> <br>
      <a id="close_injected_comments"><h2>Fermer</h2></a>
      `+ document.getElementsByClassName("jsx-3748520549 user-info-container")[0].innerHTML;

    document.getElementById("close_injected_comments").onclick = function() {
document.getElementsByClassName('jsx-3748520549 content-container')[0].style.display='none';
};
}

       if(typeof(element) != 'undefined' && element != null){

       }
       else
       {
             injected_code_04_1 = false;
       }
  }, 1000);
})();