Greasy Fork is available in English.
去除PC贴吧帖子列表首页的视频广告
当前为
// ==UserScript==
// @name 这TM还叫贴吧?
// @namespace http://greasyfork.icu/scripts/23127
// @homepageURL http://greasyfork.icu/scripts/23127
// @version 0.2
// @description 去除PC贴吧帖子列表首页的视频广告
// @author dazzulay
// @match *://tieba.baidu.com/f?kw=*
// @grant none
// ==/UserScript==
$(function(){
// $('#game_live_widget').remove();
// $('.video_frs_head').remove();
// 20160911 PC贴吧视频
//$('.j_m_flash').closest('li').closest('li').remove();
var video_ad_counter = 0;
var video_ad = setInterval(function(){
++video_ad_counter;
var thread_list_length = $('#thread_list').length;
if(thread_list_length>0){
$('.j_m_flash').closest('li').closest('li').remove();
clearInterval(video_ad);
}
if(video_ad_counter>10){
clearInterval(video_ad);
}
},200);
});