Youtube remove huge ">> 10 seconds" skip indicators

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

当前为 2021-07-29 提交的版本,查看 最新版本

// ==UserScript==
// @name        Youtube remove huge ">> 10 seconds" skip indicators
// @include     https://www.youtube.com/*
// @description Removes the massive skip indicators on YouTube (">> 10 seconds")
// @version     1.0
// @grant       none
// @namespace   com.youtube.annoying.timeskips
// ==/UserScript==

(function() {
    setInterval(function() {
        var selectors = ['div.ytp-doubletap-ui', 'div.ytp-doubletap-ui-legacy'];
        for (var i = 0; i < selectors.length; i++) {
            var target = document.querySelector(selectors[i]);
            if (target && target.parentNode) {
                target.parentNode.removeChild(target);
            }
        }
    }, 1000);
})();