cleanW3SchoolsAds

clean w3schools.com ads,there is no ads , no right side bar , no bottom guide bar, and no ads in page, just the information you need

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         cleanW3SchoolsAds
// @namespace    http://tampermonkey.net/
// @version      0.19
// @description  clean w3schools.com ads,there is no ads , no right side bar , no bottom guide bar, and no ads in page, just the information you need 
// @author       [email protected]
// @match        https://*.w3schools.com/*
// @match        http://*.w3schools.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=w3schools.com
// @grant        none
// @license      MIT
// @run-at       document.body
// ==/UserScript==

(function() {
    'use strict';
    let css=`
        [data-google-query-id],
        [class*="showcase"],.showcasebackend,.showcasebootcamp,.showcasesubs,
        #right,#internalCourses,#mainLeaderboard,#skyscraper,#tryitLeaderboard,
        #midcontentadcontainer,#footer,#getdiploma,.ga-featured
    {
        display:none!important;width:0!important;height:0!important;
        min-width:0!important;min-height:0!important;
        transform:scale(0.0001) translate3d(-99999px,-9999px,0px);
    }
    .w3-col.l10{width:98%!important}
    .trytopnav{top:0!important}
    #container{top:48px!important}
    `
    var style = document.createElement('style'); style.innerText = css;
    document.body.appendChild(style)
    // Your code here...
})();