新浪科技内页精简

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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;
})();