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

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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);
})();