Html5plus_link_color

重置html5plus.org文档中的链接文字颜色

目前为 2017-08-04 提交的版本,查看 最新版本

// ==UserScript==
// @name         Html5plus_link_color
// @namespace    undefined
// @version      0.1
// @description  重置html5plus.org文档中的链接文字颜色
// @author       Jack.Chan
// @match        *://*.html5plus.org/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var style = [];
    style.push('<style type="text/css">');
    style.push('.article a[href]{color:mediumblue !important}');
    style.push('.article a[href]:hover, .aside>ul>li>a[href]:hover{text-decoration:underline !important}');
    style.push('.aside>ul>li>a[href][style]{color:red !important}');
    style.push('</style>');
    var el = document.createElement('div');
    el.id = 'fucking-style';
    el.innerHTML = style.join('');
    document.body.appendChild(el);
})();