// ==UserScript== // @name 新浪新闻查看全文+微博长文不关注看全文 // @version 0.2.4 // @description 让新浪新闻可以有滚动条,从而看到底部被app广告遮挡的内容。微博长文不需要点击关注即可阅读全文。 // @author CWBeta // @include *zx.sina.cn* // @include *weibo.com/ttarticle* // @icon https://www.google.com/s2/favicons?domain=sina.cn // @namespace https://greasyfork.org/users/670174 // @license MIT // @downloadURL none // ==/UserScript== (function() { 'use strict'; console.log("【新浪查看全文】运行中!") var wasWorking = false; function DisableHiding() { var isWorking = document.getElementById("SinaAutoDisableHiding") != null; if (isWorking) { return; } if( wasWorking && !isWorking) { console.log("【新浪查看全文】检测到对面试图干掉我,但是我预判了对面的预判,又干掉了对面。") } var style = document.createElement("style"); style.type = "text/css"; var cssString = ".s_card,.WB_editor_iframe_new {overflow:auto !important; height:auto !important;} #float-btn,.look_more,.look_more_a,.artical_add_box{display: none !important}" try { style.appendChild(document.createTextNode(cssString)); } catch(ex) { style.styleSheet.cssText = cssString;//针对IE } style.setAttribute("id","SinaAutoDisableHiding"); var head = document.getElementsByTagName("head")[0]; head.appendChild(style); wasWorking = true; } setInterval(DisableHiding,1000); DisableHiding(); })();