Standard Notes - 使用瀏覽器返回鍵回到前一畫面 ⏪

讓 Standard Notes 中的瀏覽器返回操作回到前一頁(如筆記、標籤、設定),而非關閉分頁。

作者
koyasi777
今日安裝
0
安裝總數
0
評價
0 0 0
版本
1.2.0
建立日期
2025-06-25
更新日期
2025-06-25
尺寸
6.7 KB
授權條款
MIT
腳本執行於

Standard Notes - Enable Browser Back to Previous View ⏪

📌 Overview

This userscript makes the browser back button work intuitively in the Standard Notes web app.
Instead of closing the tab, pressing "Back" will now return to the previous screen within the app—such as note editing, tags, search, or settings.

  • 📱 Works with mobile back gestures and buttons
  • 🔄 Supports transitions from notes, tags, search, and settings
  • 🧠 Fully compatible with SPA behavior and dynamic content changes

⚙️ How to Install

  1. Install Violentmonkey or Tampermonkey in your browser
  2. Install the userscript from the following link:
    👉 Install standardnotes-mobile-back-fix.user.js

💡 Features

  • Detects when a "Go back" view is active, and adds a custom history.pushState
  • Intercepts browser's back (popstate) to simulate in-app navigation
  • Locates the app's own back button using aria-label="Go to items list"
  • Uses MutationObserver to monitor DOM changes for consistent behavior in SPA

🔗 Useful Links


📜 License

MIT License
Free to use, modify, and redistribute—use at your own risk.


Make navigation in Standard Notes feel natural—go back without leaving the app.

QingJ © 2025

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