Notion.so - Auto Open in App

Automatically opens notion links with the notion app via the `notion:/` protocol

  1. // ==UserScript==
  2. // @name Notion.so - Auto Open in App
  3. // @name:en Notion.so - Auto Open in App
  4. // @description Automatically opens notion links with the notion app via the `notion:/` protocol
  5. // @namespace https://github.com/cdeleon94
  6. // @match https://www.notion.so/*
  7. // @run-at document-start
  8. // @version 0.0.3
  9. // @grant GM.setValue
  10. // @grant GM.getValue
  11. // ==/UserScript==
  12.  
  13. function open_app() {
  14. pageid = window.location.href.match(/https:\/\/www\.notion\.so\/(.*)/)[1];
  15. window.open("notion:/".concat(pageid));
  16. window.close()
  17. }
  18.  
  19. open_app()

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址