|
@@ -0,0 +1,19 @@
|
|
|
+// ==UserScript==
|
|
|
+// @name T-notion-双击打开
|
|
|
+// @author tianyunperfect
|
|
|
+// @description 简介
|
|
|
+// @version 1.0.0
|
|
|
+// @update 2021-07-08 16:16:14
|
|
|
+// @include https://www.notion.so/tianyunperfect/*
|
|
|
+// @require https://git.tianyunperfect.cn/tianyunperfect/web-base/raw/master/tmp/monkey/util.js?a=1
|
|
|
+
|
|
|
+// ==/UserScript==
|
|
|
+(async () => {
|
|
|
+ await getDom("div[data-block-id]");
|
|
|
+ $("div[data-block-id]").dblclick((ev) => {
|
|
|
+ ev.stopPropagation();
|
|
|
+ let block_id = $(ev.target).parents("div[data-block-id]").eq(0).attr('data-block-id');
|
|
|
+ block_id = block_id.replaceAll("-","")
|
|
|
+ window.open("https://www.notion.so/tianyunperfect/" + block_id, "_blank");
|
|
|
+ })
|
|
|
+})();
|