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 यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला 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);
})();