修改字体大小,多余的遮罩,个性化目录弹窗,浮动在右侧(目录必须作为第一个块元素)
// ==UserScript==// @name notion 增强脚本个性化目录弹窗缩小标题字号// @namespace https://github.com/98zi/MyTampermonkey// @version 0.0.1// @description 修改字体大小,多余的遮罩,个性化目录弹窗,浮动在右侧(目录必须作为第一个块元素)// @author 98zi// @match *://www.notion.so/*// @match *://*.notion.site/*// @grant none// @run-at document-start// @icon https://www.notion.so/images/logo-ios.png// @license MIT// ==/UserScript==(function () {'use strict';var styleElement = document.createElement('style');styleElement.textContent = `h1{font-size:24px !important;}.notion-scroller{overflow-y:scroll !important}.notranslate::after{content:none !important}.notion-page-content>.notion-table_of_contents-block:nth-child(1){position:fixed!important;right:20px!important;top:100px!important;background:#fff;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;overflow-y: auto;}`;document.head.appendChild(styleElement);})();