NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Remove elementos do YouTube
// @version 2.2
// @description Remove o cabeçalho, vídeos relacionados, barra de progresso inferior e shorts das sugestões no YouTube, e adiciona um fundo rosa.
// @author mYbiib
// @match https://www.youtube.com/*
// @grant none
// @license MIT
// ==/UserScript==
(function () {
'use strict';
// Adiciona um fundo rosa
const div = document.createElement('div');
div.style.position = 'fixed';
div.style.top = '0';
div.style.left = '0';
div.style.width = '100%';
div.style.height = '100%';
div.style.background = 'pink';
div.style.zIndex = '-1';
document.body.appendChild(div);
// Configurações do script
const removeHeader = true;
const removeRelated = true;
const removeProgressBar = true;
const removeShorts = true;
// Remove o cabeçalho do YouTube
if (removeHeader) {
const header = document.getElementById('masthead-container');
if (header) {
header.remove();
}
}
// Remove os vídeos relacionados ao final do vídeo
if (removeRelated) {
const related = document.getElementById('related');
if (related) {
related.remove();
}
}
// Remove a barra de progresso inferior
if (removeProgressBar) {
const progressBar = document.getElementsByClassName('ytp-chrome-bottom')[0];
if (progressBar) {
progressBar.remove();
}
}
// Remove os shorts das sugestões
if (removeShorts) {
const shorts = document.querySelector('ytd-shelf-renderer#shelf-id-2');
if (shorts) {
shorts.remove();
}
}
})();