Standard Notes - ブラウザの「戻る」で前画面に戻れるようにする ⏪

Makes the browser back button return to the previous screen inside Standard Notes (e.g. notes, tags, settings), instead of closing the tab.

ئاپتورى
koyasi777
بۈگۈن قاچىلانغىنى
0
جەمئىي قاچىلانغىنى
0
باھا نومۇرى
0 0 0
نەشرى
1.2.0
قۇرۇلغان ۋاقتى
2025-06-25
يېڭىلانغان ۋاقتى
2025-06-25
Size
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.