Google 2014 part 7

Changes background color and border-bottom of a specific div on YouTube.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Google 2014 part 7
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Changes background color and border-bottom of a specific div on YouTube.
// @author       You
// @match        https://vanced-youtube.neocities.org/2013*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Function to change background-color and border-bottom properties of the target div
    function changeBackground() {
        const targetDiv = document.querySelector('div.bg');
        if (targetDiv) {
            targetDiv.style.backgroundColor = '#f1f1f1';
            targetDiv.style.borderBottom = '1px solid #f1f1f1';
        }
    }

    // Wait for the page to load and then apply the changes
    window.addEventListener('load', changeBackground);
})();