simple youtube detail statistics info

try to take over the world!

当前为 2020-03-28 提交的版本,查看 最新版本

// ==UserScript==
// @name         simple youtube detail statistics info
// @name:zh-CN   simple youtube detail statistics info
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @description:zh-cn youtube video stream load info simple
// @author       Semi @wechat:wxsmcg
// @match        *://www.youtube.com/watch*
// @grant        none
// @require    http://code.jquery.com/jquery-1.11.0.min.js
// ==/UserScript==
var $, jQuery;
$ = jQuery = window.jQuery;

//

(function() {
    'use strict';
    //
    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;'])");
            // filter
            //console.log("len",list.length);
            // find element
            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");
                }
            });

            $(list[5]).find('div:first-child').css("visibility","hidden!important");
        }
    },2000);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址