// ==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 // @downloadURL https://update.greasyfork.icu/scripts/430721/Notionso%20-%20Auto%20Open%20in%20App.user.js // @updateURL https://update.greasyfork.icu/scripts/430721/Notionso%20-%20Auto%20Open%20in%20App.meta.js // ==/UserScript== function open_app() { pageid = window.location.href.match(/https:\/\/www\.notion\.so\/(.*)/)[1]; window.open("notion:/".concat(pageid)); window.close() } open_app()