Odysee: remove "+10"/"-10" skip indicators

Removes the skip indicators on Odysee ("+10" or "-10")

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

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

/* jshint esversion: 6 */
(function() {
    const STYLE_TAG_ID = 'odysee-disable-skip-overlays';

    setInterval(function() {
        if (document.getElementById(STYLE_TAG_ID) === null) { // not installed yet
            const styleTag = document.createElement('style');
            styleTag.setAttribute('id', STYLE_TAG_ID);
            styleTag.innerText = 'div.vjs-overlay.vjs-overlay-seeked { display: none; }';

            const body = document.querySelector('body');
            if (body) {
                body.appendChild(styleTag);
            }
        }
    }, 1000);
})();