新浪科技内页精简

精简新浪科技文章页,去广告和多余模块

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         新浪科技内页精简
// @namespace    https://coding.net/u/BackRunner/p/GreaseMonkey-JS/git
// @version      1.2
// @description  精简新浪科技文章页,去广告和多余模块
// @author       BackRunner
// @include      http://tech.sina.com.cn/*
// @run-at       document-body
// @license      MIT
// @grant        unsafeWindow
// ==/UserScript==

// == 更新日志 ==
// 2017.04.23 - 1.2
// 更新规则
// ==============
(function() {
    var cssText = "";
    //聚焦
    cssText += '#left_focus_ad {display: none !important;}';
	//广告
	cssText += '.sinaAd {display: none !important;}';
    cssText += '.sinaads {display: none !important; height:0px !important;}';
    cssText += '.ad {display: none !important;}';
	cssText += '.top_ad {display: none !important;} .ads {display: none !important;} .sinaad-toolkit-box{display: none !important;}';
    //众测
	cssText += '.zhongce {display: none !important;}';
    var modStyle = document.querySelector('#modCSS');
    if (modStyle === null)
    {
        modStyle = document.createElement('style');
        modStyle.id = 'modCSS';
        document.body.appendChild(modStyle);
    }   
    modStyle.innerHTML = cssText;
})();