Skip to content

Zen-SnapBack: lightweight mod for Zen Browser, allowing you to instantly reset any pinned tab with a simple double-click.

License

Notifications You must be signed in to change notification settings

adamhlt/Zen-SnapBack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

                      _____                  _____                   ____             __  
                     /__  /  ___  ____      / ___/____  ____ _____  / __ )____ ______/ /__
                       / /  / _ \/ __ \     \__ \/ __ \/ __ `/ __ \/ __  / __ `/ ___/ //_/
                      / /__/  __/ / / /    ___/ / / / / /_/ / /_/ / /_/ / /_/ / /__/ ,<   
                     /____/\___/_/ /_/    /____/_/ /_/\__,_/ .___/_____/\__,_/\___/_/|_|  
                                                          /_/                                

JavaScript Multi-Platform Zen Browser

Zen-SnapBack is an ultra-lightweight power-user mod for Zen Browser. It allows you to instantly reset any pinned tab to its original "Home" URL with a simple double-click.


🛠️ Installation

To use this mod, you need a script loader (which enables Zen to execute .uc.js files).

Step 1: Install a Script Loader

If you haven't enabled script support yet, we recommend fx-autoconfig, the gold standard for Firefox-based browsers: fx-autoconfig

Follow their instructions to place the config.js and defaults files into your Zen installation folder.

Step 2: Install Zen-SnapBack

Once your loader is ready:

  1. Open your Zen Profile Folder:
    • Type about:support in the address bar.
    • Find Profile Folder and click Open Folder.
  2. Navigate to the chrome folder:
    • If it doesn't exist, create a new folder named chrome.
  3. Add the script:
    • Download zenSnapBack.uc.js from this repository.
    • Drop it into the chrome folder.
  4. Restart Zen Browser.

🚀 How to Use

  1. Pin a tab (e.g., Gmail, YouTube, or your favorite dashboard).
  2. Navigate freely within that tab.
  3. Double-click the tab icon or label in the tab bar.
  4. Result: The tab instantly resets to its original URL, and the navigation history for that tab is cleared.

⚙️ Technical Details

The script hooks into Zen's internal command dispatcher:

  • Command ID: cmd_zenPinnedTabReset

By triggering the native command rather than just reloading the URL, the mod ensures perfect synchronization with Zen's session management and UI state.


🤝 Contributing

Feedback and Pull Requests are welcome! If you encounter a bug or have an idea for a feature, please open an Issue.

About

Zen-SnapBack: lightweight mod for Zen Browser, allowing you to instantly reset any pinned tab with a simple double-click.

Topics

Resources

License

Stars

Watchers

Forks