Ubuntu Manual Highlight

Highlight Ubuntu 20.04 and Ubuntu native tool.

  1. // ==UserScript==
  2. // @name Ubuntu Manual Highlight
  3. // @namespace gqqnbig
  4. // @version 0.3
  5. // @description Highlight Ubuntu 20.04 and Ubuntu native tool.
  6. // @author gqqnbig
  7. // @match *://manpages.ubuntu.com/cgi-bin/search.py*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. const column=2;
  15.  
  16. let cssRules=
  17. `table table thead th:not(:nth-child(${column})):not(:last-child) {
  18. opacity: 0.2;
  19. }
  20. table table tbody td:not(:nth-child(${column})):not(:last-child) {
  21. opacity: 0.2;
  22. }
  23.  
  24. td a[href$='.1.html'] {
  25. font-size:2em;
  26. }
  27. td a[href$='.2.html'] {
  28. font-size:2em;
  29. }
  30. td a[href$='.3.html'] {
  31. font-size:2em;
  32. }
  33. td a[href$='.4.html'] {
  34. font-size:2em;
  35. }
  36. td a[href$='.5.html'] {
  37. font-size:2em;
  38. }
  39. td a[href$='.6.html'] {
  40. font-size:2em;
  41. }
  42. td a[href$='.7.html'] {
  43. font-size:2em;
  44. }
  45. td a[href$='.8.html'] {
  46. font-size:2em;
  47. }`;
  48.  
  49. var styleSheet = document.createElement("style");
  50. styleSheet.type = "text/css";
  51. styleSheet.innerHTML = cssRules;
  52. document.head.appendChild(styleSheet);
  53. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址