simple youtube detail statistics info

change video info simple

目前為 2020-03-31 提交的版本,檢視 最新版本

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

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

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         simple youtube detail statistics info
// @name:zh-CN   simple youtube detail statistics info
// @namespace    http://tampermonkey.net/
// @version      2.0.2
// @icon        https://s.ytimg.com/yts/img/favicon_32-vflOogEID.png
// @description  change video info simple
// @description:zh-cn only video load info
// @author       Semi @wechat:wxsmcg
// @match        *://*.youtube.com/*
// @include     https://www.youtube.com*
// @grant        none
// @require    http://code.jquery.com/jquery-1.11.0.min.js
// ==/UserScript==
var $, jQuery;
$ = jQuery = window.jQuery;
(function() {
    'use strict';
    var ver = 2.0;
    //
    var tt1 = setInterval(function(){
        //console.log('TIMER');
        if($(".html5-video-info-panel-content").length){
           clearInterval(tt1);
            var list = $(".html5-video-info-panel-content>:not(div[style='display: none;'])");
            /*
            Connection Speed
            Network Activity
            Buffer Health
            */
            // filter
            $(".html5-video-info-panel-content>div:contains('Connection Speed')").addClass("toShow");
            $(".html5-video-info-panel-content>div:contains('Network Activity')").addClass("toShow");
            $(".html5-video-info-panel-content>div:contains('Buffer Health')").addClass("toShow");
            $(".html5-video-info-panel-content>div:not(.toShow)").css({'display':'none'});
            //
            // zoom
            $(".html5-video-info-panel-content .ytp-horizonchart").css('width','120px');
            $(".html5-video-info-panel-content .ytp-horizonchart").parent().next().css('margin-right','20px');
            $(".html5-video-info-panel-content canvas").css('width','120px');
            // hidden color
            $(".html5-video-info-panel-content>div:contains('Color')").remove();
            $(".html5-video-info-panel-content>div:contains('Color')").next().remove();
            // filter
            //console.log("len",list.length);
            // find element
            if(ver=='1.0'){
             var index = [1,2,3,4,5,6,10];
            $(list).each(function(i,e){
                // this i start 0 (search )
                //console.log(i+1,$.inArray(i,index));
                if( $.inArray(i+1,index)!=-1 ){
                    $(list[i]).css({"display":"none","visibility":"hidden"});
                }
            });
                $(list[5]).find('div').css("color","#000");
                $(list[5]).find('span').remove();
            }
            //
        }
    },1000);
})();