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

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

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