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.