这TM还叫贴吧?

去除PC贴吧帖子列表首页的视频广告

As of 2016-09-11. See the latest version.

// ==UserScript==
// @name         这TM还叫贴吧?
// @namespace    https://greasyfork.org/scripts/23127
// @homepageURL  https://greasyfork.org/scripts/23127
// @version      0.3
// @description  去除PC贴吧帖子列表首页的视频广告
// @author       dazzulay
// @match        *://tieba.baidu.com/f?kw=*
// @grant        none
// ==/UserScript==

$(function(){
    // 20160911 PC贴吧视频
    var video_ad_counter = 0;
    var video_ad = setInterval(function(){
        var video_ad_length = $('.j_m_flash').closest('.j_thread_list').length;
        if(video_ad_length>0){
            console.log($('.j_m_flash').closest('.j_thread_list'));
            $('.j_m_flash').closest('.j_thread_list').remove();
            clearInterval(video_ad);
        }
        if(video_ad_counter>10){
            clearInterval(video_ad);
        }
    },200);
});