您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A friendly reminder to web dev learners that W3Schools is not a good resource, whereas MDN is a great resource.
// ==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) })();