Watch Tiktok in fullscreen

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==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);
})();