// ==UserScript== // @name 微博去除推荐内容 // @namespace http://tampermonkey.net/ // @version 0.5 // @description try to take over the world! // @author You // @match *://*.weibo.com/* // @require https://cdn.bootcdn.net/ajax/libs/jquery/3.1.1/jquery.min.js // @run-at document-end // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; var style='.PlayInfo_boxout_3UBS0.theatre{'+ ' height:calc(100%-58px);'+ '}'+ '.Detail_wrap_IZQWz.hide{'+ ' display:none!important;'+ '}'+ '.Frame_side2_xRwuq.hide{'+ ' display:none!important;'+ '}' $(".wbpv-star-theatre-control.wbpv-control.wbpv-button").click(function(){ $(".PlayInfo_boxout_3UBS0").toggleClass("theatre"); $(".Detail_wrap_IZQWz").toggleClass("hide"); $(".Frame_side2_xRwuq").toggleClass("hide"); clearInterval(timer); }) setInterval(function(){ $("h4.title").each(function(){ if($(this).text().indexOf("广告") >-1) { $(this).parent().parent().parent().hide(); } }) $(".W_layer.W_translateZ").each(function(){ if($(this).text().indexOf("网络繁忙")>-1) { $(this).hide(); $(".outer").hide() } }) if(!isNaN(parseInt(window.location.pathname.substr(1,10)))) { $(".WB_frame").attr("style","display:table; margin:0 auto;"); $(".WB_frame_c").attr("style","display:table; margin:0 auto;"); $(".WB_frame_b").hide(); } $("#plc_discover").attr("style","display:table; margin:0 auto;"); $(".pt_ul.clearfix").width("845px") $(".key").hide(); $(".Slide_show_3dpDk").parent().hide(); $(".PCD_feed").parent().parent().hide(); $("#v6_pl_rightmod_hongbao").hide(); $("#v6_pl_rightmod_rank").hide(); $("#v6_pl_rightmod_recominfo").hide(); $("#v6_pl_rightmod_ads36").hide(); $("#v6_pl_rightmod_attfeed").hide(); $("#v6_trustPagelet_recom_member").hide(); $("#v6_pl_rightmod_noticeboard").hide(); $("#v6_pl_ad_bigday").hide(); $("#v6_pl_ad_forfqy").hide(); $("#Pl_Discover_TextList__4").hide(); $('[node-type="follow_recommend_box"]').hide(); }) })();