CSS: www.facebook.com - font Arial

Corrections to UI of new Facebook for desktop browsers: font Arial, bigger text size

当前为 2021-01-05 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name CSS: www.facebook.com - font Arial
  3. // @description Corrections to UI of new Facebook for desktop browsers: font Arial, bigger text size
  4. // @author MK
  5. // @homepage https://greasyfork.org/en/scripts/
  6. // @namespace https://greasyfork.org/users/309172
  7. // @include https://www.facebook.com/*
  8. // @include http://ww.facebook.com/*
  9. // @version 1.0
  10. // @note v1.0 2021-01-05 - initial release
  11. // ==/UserScript==
  12. (function() {
  13. var fontFamily = 'Arial, Roboto, Helvetica, sans-serif';
  14. var css = `
  15. /*Global text*/
  16. body, .jq4qci2q, .qzhwtbm6 > .a8c37x1j > .c1et5uql {
  17. font-family: $(fontFamily) !important;
  18. font-size: 14px !important;
  19. }
  20.  
  21. /*Author*/
  22. .l94mrbxd {
  23. font-family: $(fontFamily) !important;
  24. font-size: 14px !important;
  25. }
  26.  
  27. /*Preview text*/
  28. .qzhwtbm6 > .a8c37x1j, .bi6gxh9e > .e9vueds3 {
  29. font-family: $(fontFamily) !important;
  30. font-size: 12.5px !important;
  31. }
  32.  
  33. /*Likes, comments, shares*/
  34. .l9j0dhe7 > .m9osqain {
  35. font-family: $(fontFamily) !important;
  36. font-size: 12.5px !important;
  37. }
  38.  
  39. /*Comment author*/
  40. .e9vueds3 {
  41. font-family: $(fontFamily) !important;
  42. font-size: 13px !important;
  43. }
  44.  
  45. /*Comment text*/
  46. .ecm0bbzt > .jq4qci2q, ._71pn ._4w79 {
  47. font-family: $(fontFamily) !important;
  48. font-size: 13.5px !important;
  49. }
  50.  
  51. /*Replies to comment, menu at left, list of contacts at right*/
  52. .hpfvmrgz > .rq0escxv {
  53. font-family: $(fontFamily) !important;
  54. font-size: 12.5px !important;
  55. }
  56.  
  57. /*Number of likes under comment*/
  58. .bp9cbjyn > .e9vueds3 {
  59. font-size: 11px !important;
  60. }
  61. .bp9cbjyn > .qt6c0cv9 {
  62. padding-bottom: 2px;
  63. }
  64.  
  65. /*Remove limit on height of underpicture text*/
  66. .r9c01rrb {
  67. max-height: none !important;
  68. }
  69. `;
  70.  
  71. if (typeof GM_addStyle != 'undefined') {
  72. GM_addStyle(css);
  73. } else if (typeof PRO_addStyle != 'undefined') {
  74. PRO_addStyle(css);
  75. } else if (typeof addStyle != 'undefined') {
  76. addStyle(css);
  77. } else {
  78. var node = document.createElement('style');
  79. node.type = 'text/css';
  80. node.appendChild(document.createTextNode(css));
  81. document.documentElement.appendChild(node);
  82. }
  83. })();