1234567891011121314151617181920212223 |
- // ==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 () => {
- setInterval(() => {
- $("div[data-block-id]").off("dblclick").on("dblclick", (ev) => {
- ev.stopPropagation();
- if (ev.metaKey) {
- 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");
- }
- })
- }, 2000)
- })();
|