YouTube: remove huge ">> 10 seconds" skip indicators

Removes the massive skip indicators on YouTube (">> 10 seconds")

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        YouTube: remove huge ">> 10 seconds" skip indicators
// @description Removes the massive skip indicators on YouTube (">> 10 seconds")
// @version     1.1.1
// @grant       none
// @namespace   com.youtube.annoying.timeskips
// @author      https://greasyfork.org/en/users/728793-keyboard-shortcuts
// @match       https://youtube.com/*
// @match       https://*.youtube.com/*
// @icon        https://www.google.com/s2/favicons?sz=128&domain=youtube.com
// @license     MIT
// ==/UserScript==

/* jshint esversion: 6 */

(function() {
    function removeSkipIndicators() {
        const selectors = ['div.ytp-doubletap-ui', 'div.ytp-doubletap-ui-legacy']; // these are selectors for a container around the skip indicators
        selectors.map(selector => document.querySelector(selector)) // find them and for each one...
            .filter(element => element !== null) // if it was found...
            .forEach(element => element.remove()); // simply remove the element from the DOM
    }
    removeSkipIndicators(); // run once when the page loads
    setInterval(removeSkipIndicators, 1000); // and then run every second in case they're added later
})();