Greasy Fork is available in English.

YouTube consent bump remove

Remove the annoying consent-bump from youtube.com. (the final . is necessary for removing ads)

// ==UserScript==
// @name         YouTube consent bump remove
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Remove the annoying consent-bump from youtube.com. (the final . is necessary for removing ads)
// @author       Federico Antoniazzi
// @match        https://www.youtube.com./*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    let noisy = null
    let counter = 10

    const nail = muteConsentBump() || setInterval(() => {
        counter--;
        if (!counter) {
            clearInterval(nail);
        }
        muteConsentBump();
    }, 500);

    function muteConsentBump() {
        noisy = document.getElementById("consent-bump");
        if (noisy) {
            noisy.remove();
            console.log("FATTO");
            return true;
        }
    }
})();