MDN good, W3Schools bad!

A friendly reminder to web dev learners that W3Schools is not a good resource, whereas MDN is a great resource.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         MDN good, W3Schools bad!
// @namespace    https://jonas.ninja/
// @version      1.0.0
// @description  A friendly reminder to web dev learners that W3Schools is not a good resource, whereas MDN is a great resource.
// @author       @iv_njonas
// @match        https://www.google.com/search?*
// @grant        GM_addStyle
// ==/UserScript==
/* jshint asi: true, multistr: true */

(function() {
    'use strict';

    var styles = '\
a[href^="https://developer.mozilla.org/"]:not(.fl):after {\
    content: "GOOD RESOURCE ?";\
    display: inline-block;\
    margin-left: 12px;\
    padding: 2px 6px 0;\
    color: green;\
    background-color: lightgreen;\
    border: 1px solid green;\
}\
a[href^="https://www.w3schools.com/"]:not(.fl):after {\
    content: "TERRIBLE RESOURCE ?";\
    display: inline-block;\
    margin-left: 12px;\
    padding: 2px 6px 0;\
    color: firebrick;\
    background-color: orange;\
    border: 1px solid firebrick;\
}\
#res h3.r {\
    overflow: visible;\
}\
'
    GM_addStyle(styles)
})();