Skip to content

zuzuio/Ai-TabGroups-ZenBrowser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✨ AI Tab Groups for Zen Browser ✨

‼️ Breaks for Zen version <1.15b, Please use the latest script.

TabGroup1.mp4

Pre-requisites

  • Enable userChrome Customizations: In about:config go to toolkit.legacyUserProfileCustomizations.stylesheets and set it to true.
  • Install and Setup the userChrome.js Loader from Autoconfig
  • Install the Tab Groups config from Advanced Tab Groups If you already have a Tab Groups config you can skip this

Setup and Install

Method 1 (Recommended):

Through Sine

Settings Can be configured through the mod settings through the Sine UI *This also allows for Auto-Updates :D

Method 2 (Manual) :

  • Copy and paste the tab_sort_clear.uc.js file to your chrome/JS folder.

AI Setup

  1. For Gemini (RECOMMENDED)
    • Set gemini { enabled:true } in apiConfig and ollama { enabled:false } in apiConfig
    • Get an API Key from AI Studios
    • Replace YOUR_GEMINI-API-KEY with the copied API key
    • Don't change the Gemini model since 2.0 has very low rate limits (unless you are rich ig)
  2. For Ollama
    • Download and install Ollama
    • Install your preferred model. The script uses llama3.1 by default
    • Set ollama { enabled:true } in apiConfig and gemini { enabled:false } in apiConfig
    • Set the model you downloaded in ollama.model: in the config (you can see the models by doing ollama list in terminal)
  • Make sure browser.tabs.groups.smart.enabled is set to false in about:config
  • Open Zen browser, go to about:support and clear the startup cache.
  • Done. Enjoy ^^

How it works?

  • The script has two phases, first it manually sorts tabs that have common words in their title and URL, second it uses the AI to sort rest of the tabs and checks if they fit in the existing groups (that were manually created) or if it should create a new group.
  • The script only fetches the tabs full URL and title, thus it prioritizes the title first for main context and URL for sub context.
  • The sort function only works when there is two or more tabs to sort into a group.
  • You can also have a selected group of tabs sorted as well, this allows you to have fine-grained control over the sorting (works for tabs that are already grouped as well, they may be re-sorted).
  • You are free to change the AI prompt to your suitable workflow. The prompt is at the top in apiConfig.
  • The Clear button only clears un-grouped non-pinned tabs.

Peace <3

About

The script sorts the temporary tabs into tabgroups using ai for a more cleaner organized browsing experience. Inspired by Arc Max Tidy feature.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%