Youtube, NoPlayCount

restful life

2021/03/08のページです。最新版はこちら。

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
// ==UserScript==
// @name         Youtube, NoPlayCount
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  restful life
// @author       You
// @match        https://www.youtube.com/*
// @match        https://*.jetri.co/*
// @icon         https://www.youtube.com/s/desktop/fe7279a7/img/favicon_144.png
// @run-at       document-body
// @grant        none
// @nowrap
// ==/UserScript==

(function() {
    'use strict';

    function shutout() {
        var style = document.createElement("style");

        if (location.host.indexOf("www.youtube.com") >= 0) {
        style.innerHTML = `
#count,
#dot,
#separator,
#vote-count-middle,
#top-level-buttons ytd-toggle-button-renderer #text,
ytd-video-meta-block:not(.ytd-grid-playlist-renderer) #metadata-line span:first-child,
#metadata-container #metadata-line span:first-child,
#subscriber-count,
#owner-sub-count,
ytd-grid-channel-renderer #thumbnail-attribution
{ display: none !important; }
        `;
        } else if (location.host.indexOf(".jetri.co") >= 0) {
        style.innerHTML = `
.video-stat:last-child,
.channel-subs
{ display: none !important; }
        `;
        }
        document.body.appendChild(style);
    }

    try {
        shutout();
    } catch {
        window.addEventListener("load", () => setTimeout(shutout, 10));
    }
})();
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元