这TM还叫贴吧?

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

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

// ==UserScript==
// @name         这TM还叫贴吧?
// @namespace    https://greasyfork.org/scripts/23127
// @homepageURL  https://greasyfork.org/scripts/23127
// @version      0.6
// @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 $ad_li = $('.j_m_flash[data-isfive="1"]').closest('.j_thread_list');
        if($ad_li.length>0){
            $ad_li.remove();
            clearInterval(video_ad);
        }
        ++video_ad_counter;
        if(video_ad_counter>10){
            clearInterval(video_ad);
        }
    },200);
});