Ubuntu Manual Highlight

Highlight Ubuntu 20.04 and Ubuntu native tool.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

You will need to install an extension such as Tampermonkey to install this script.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name         Ubuntu Manual Highlight
// @namespace    gqqnbig
// @version      0.3
// @description  Highlight Ubuntu 20.04 and Ubuntu native tool.
// @author       gqqnbig
// @match        *://manpages.ubuntu.com/cgi-bin/search.py*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    const column=2;

    let cssRules=
`table table thead th:not(:nth-child(${column})):not(:last-child) {
    opacity: 0.2;
}
table table tbody td:not(:nth-child(${column})):not(:last-child) {
    opacity: 0.2;
}

td a[href$='.1.html'] {
    font-size:2em;
}
td a[href$='.2.html'] {
    font-size:2em;
}
td a[href$='.3.html'] {
    font-size:2em;
}
td a[href$='.4.html'] {
    font-size:2em;
}
td a[href$='.5.html'] {
    font-size:2em;
}
td a[href$='.6.html'] {
    font-size:2em;
}
td a[href$='.7.html'] {
    font-size:2em;
}
td a[href$='.8.html'] {
    font-size:2em;
}`;

    var styleSheet = document.createElement("style");
    styleSheet.type = "text/css";
    styleSheet.innerHTML = cssRules;
    document.head.appendChild(styleSheet);
})();