notion 增强脚本个性化目录弹窗缩小标题字号

修改字体大小,多余的遮罩,个性化目录弹窗,浮动在右侧(目录必须作为第一个块元素)

  1. // ==UserScript==
  2. // @name notion 增强脚本个性化目录弹窗缩小标题字号
  3. // @namespace https://github.com/98zi/MyTampermonkey
  4. // @version 0.0.1
  5. // @description 修改字体大小,多余的遮罩,个性化目录弹窗,浮动在右侧(目录必须作为第一个块元素)
  6. // @author 98zi
  7. // @match *://www.notion.so/*
  8. // @match *://*.notion.site/*
  9. // @grant none
  10. // @run-at document-start
  11. // @icon https://www.notion.so/images/logo-ios.png
  12. // @license MIT
  13. // ==/UserScript==
  14.  
  15. (function () {
  16. 'use strict';
  17.  
  18. var styleElement = document.createElement('style');
  19. styleElement.textContent = `
  20. h1{font-size:24px !important;}
  21. .notion-scroller{overflow-y:scroll !important}
  22. .notranslate::after{content:none !important}
  23. .notion-page-content>.notion-table_of_contents-block:nth-child(1){position:fixed!important;right:20px!important;top:100px!important;background:#fff;
  24. border-radius:6px;width:300px!important;box-shadow:1px 2px 5px rgba(0,0,0,.2);padding:10px;box-sizing:border-box;z-index:999!important;max-height:78vh;
  25. overflow-y: auto;}
  26. `;
  27. document.head.appendChild(styleElement);
  28.  
  29. })();

QingJ © 2025

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