tianyun 3 éve
szülő
commit
b157bd2a5e
1 módosított fájl, 30 hozzáadás és 0 törlés
  1. 30 0
      tmp/monkey/A1.js

+ 30 - 0
tmp/monkey/A1.js

@@ -28,4 +28,34 @@ async function getDom(sel) {
     let sel = "#notion-app";
     let a_input = await getDom(sel);
     a_input.value = a_href;
+})();
+
+
+// =========添加css
+
+// ==UserScript==
+// @name        T-Notion-样式
+// @namespace   Violentmonkey Scripts
+// @match       https://www.notion.so/tianyunperfect/*
+// @grant       none
+// @version     1.0
+// @author      -
+// @description 2021/9/30 下午3:02:18
+// @require      https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.slim.min.js
+// ==/UserScript==
+(function(){
+    $('head').append($(`
+    <!-- CSS部分 -->
+    <style>
+    #notion-app > div > div.notion-cursor-listener.showHoverText > div:nth-child(2) > div.notion-frame.notionX-notionCenter > div.notion-scroller.vertical.horizontal > div:nth-child(2) > div{
+      width: 100% !important;
+    }
+    #notion-app > div > div.notion-cursor-listener.showHoverText > div:nth-child(2) > div.notion-frame.notionX-notionCenter > div.notion-scroller.vertical.horizontal > div:nth-child(2) > div > div:nth-child(1) > div > div:nth-child(1) > div.notion-record-icon.notranslate.notion-focusable{
+      margin-top: 0 !important;
+    }
+    .notion-page-controls{
+      margin-top: 0 !important;
+    }
+  </style>`));
+
 })();