您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically opens notion links with the notion app via the `notion:/` protocol
- // ==UserScript==
- // @name Notion.so - Auto Open in App
- // @name:en Notion.so - Auto Open in App
- // @description Automatically opens notion links with the notion app via the `notion:/` protocol
- // @namespace https://github.com/cdeleon94
- // @match https://www.notion.so/*
- // @run-at document-start
- // @version 0.0.3
- // @grant GM.setValue
- // @grant GM.getValue
- // ==/UserScript==
- function open_app() {
- pageid = window.location.href.match(/https:\/\/www\.notion\.so\/(.*)/)[1];
- window.open("notion:/".concat(pageid));
- window.close()
- }
- open_app()