Greasy Fork

Greasy Fork is available in English.

新浪新闻查看全文

让新浪新闻可以有滚动条,从而看到底部被app广告遮挡的内容

当前为 2021-09-22 提交的版本,查看 最新版本

// ==UserScript==
// @name         新浪新闻查看全文
// @version      0.1
// @description  让新浪新闻可以有滚动条,从而看到底部被app广告遮挡的内容
// @author       CWBeta
// @include      http*zx.sina.cn/*
// @icon         https://www.google.com/s2/favicons?domain=sina.cn
// @namespace http://greasyfork.icu/users/670174
// ==/UserScript==

(function() {
    'use strict';
    console.log("【新浪新闻查看全文】运行中!")
    var style = document.createElement("style");
    style.type = "text/css";

    try{
        style.appendChild(document.createTextNode(".s_card {overflow:scroll !important}"));
    }catch(ex)
    {
        style.styleSheet.cssText = "body{background-color:red}";//针对IE
    }
    var head = document.getElementsByTagName("head")[0];
    head.appendChild(style);
})();