try to take over the world!
目前為
// ==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);
})();