Greasy Fork镜像 支持简体中文。

NotionEnhancer

NotionEnhancer tampermonkey version.

  1. // ==UserScript==
  2. // @name NotionEnhancer
  3. // @namespace https://github.com/Kur0x/notion-enhancer-tampermonkey
  4. // @version 1.0
  5. // @description NotionEnhancer tampermonkey version.
  6. // @author KuroX
  7. // @match https://www.notion.so/*
  8. // @grant GM_addStyle
  9. // ==/UserScript==
  10.  
  11. /* License + Copyright Notice
  12. ********************************************************************************************
  13. MIT License
  14. Copyright (c) 2020 KuroX
  15. */
  16.  
  17. (function() {
  18. 'use strict';
  19. GM_addStyle(`
  20. /* custom css here */
  21.  
  22.  
  23. /* table_view_hide_new_line */
  24. .notion-table-view-add-row{display:none!important}
  25. /* table_view_hide_new_line */
  26. .notion-peek-renderer>div:nth-child(2){max-width:1205px!important}
  27.  
  28. /*
  29. * notion-enhancer
  30. * (c) 2020 dragonwocky <thedragonring.bod@gmail.com>
  31. * (c) 2020 TarasokUA
  32. * (https://dragonwocky.me/) under the MIT license
  33. */
  34.  
  35. /* titlebar */
  36. .notion-topbar {
  37. height: 55px !important;
  38. }
  39. .window-dragarea {
  40. height: 10px;
  41. width: 100%;
  42. }
  43. .notion-light-theme .window-dragarea {
  44. background: #e6e6e6;
  45. }
  46. .notion-dark-theme .window-dragarea {
  47. background: #272d2f;
  48. }
  49. .window-buttons-area {
  50. display: flex;
  51. align-items: center;
  52. font-size: 14px;
  53. }
  54. @media (max-width: 760px) {
  55. .notion-topbar {
  56. height: 95px !important;
  57. }
  58. .notion-topbar > :nth-child(2) {
  59. display: grid !important;
  60. height: 85px !important;
  61. grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  62. }
  63. .window-buttons-area {
  64. grid-row: 1;
  65. grid-column: 9 / span end;
  66. justify-content: flex-end;
  67. }
  68. .notion-topbar-breadcrumb {
  69. grid-row: 2;
  70. grid-column: 1 / span 8;
  71. }
  72. .notion-topbar-actions {
  73. grid-row: 2;
  74. grid-column: 9 / span end;
  75. justify-content: flex-end;
  76. }
  77. }
  78. /* window control buttons */
  79. .window-button {
  80. background: transparent;
  81. border: 0;
  82. margin: 0px 0px 0px 9px;
  83. width: 32px;
  84. line-height: 26px;
  85. border-radius: 4px;
  86. font-size: 16px;
  87. transition-duration: 0.2s;
  88. cursor: default; /* -- not sure? on windows native window buttons have the default cursor,
  89. but other buttons in the titlebar have cursor: pointer */
  90. }
  91. .window-button svg {
  92. margin-top: 8px;
  93. width: 14px;
  94. height: 14px;
  95. }
  96. .window-button svg path {
  97. fill: currentColor;
  98. }
  99. .window-button svg line {
  100. stroke: currentColor;
  101. }
  102. .window-button.btn-close:hover {
  103. background: #e81123 !important;
  104. }
  105. .window-button.btn-close:hover svg line {
  106. stroke: white;
  107. }
  108.  
  109. /* window control buttons: light theme */
  110. .notion-light-theme .window-button {
  111. font-weight: bold;
  112. }
  113. .notion-light-theme .window-button:hover {
  114. background: rgb(239, 239, 239);
  115. }
  116.  
  117. /* window control buttons: dark theme */
  118. .notion-dark-theme .window-button:hover {
  119. background: rgb(71, 76, 80);
  120. }
  121.  
  122. /* scrollbar: pointer */
  123. .notion-scroller {
  124. cursor: auto;
  125. }
  126. /* scrollbar: size */
  127. ::-webkit-scrollbar {
  128. width: 8px; /* for vertical */
  129. height: 8px; /* for horizontal */
  130. }
  131. /* scrollbar: light theme */
  132. .notion-light-theme ::-webkit-scrollbar-corner {
  133. background-color: transparent; /* for overlap */
  134. }
  135. .notion-light-theme ::-webkit-scrollbar-thumb {
  136. border-radius: 5px;
  137. background-color: #d9d8d6;
  138. border: 1px solid #cacac8;
  139. }
  140. .notion-light-theme ::-webkit-scrollbar-thumb:hover {
  141. background: #cacac8;
  142. }
  143. /* scrollbar: dark theme */
  144. .notion-dark-theme ::-webkit-scrollbar-corner {
  145. background-color: transparent; /* for overlap */
  146. }
  147. .notion-dark-theme ::-webkit-scrollbar-thumb {
  148. border-radius: 5px;
  149. background-color: #505457;
  150. }
  151. .notion-dark-theme ::-webkit-scrollbar-thumb:hover {
  152. background: #696d6f;
  153. }
  154. /* end notion enhancer */
  155.  
  156. `)
  157. })();

QingJ © 2025

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