TabGroup1.mp4
- Enable userChrome Customizations:
In
about:configgo totoolkit.legacyUserProfileCustomizations.stylesheetsand set it totrue. - 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
Through Sine
Settings Can be configured through the mod settings through the Sine UI *This also allows for Auto-Updates :D
- Copy and paste the
tab_sort_clear.uc.jsfile to yourchrome/JSfolder.
- For Gemini (RECOMMENDED)
- Set
gemini { enabled:true }inapiConfigandollama { enabled:false }inapiConfig - Get an API Key from AI Studios
- Replace
YOUR_GEMINI-API-KEYwith the copied API key - Don't change the Gemini model since 2.0 has very low rate limits (unless you are rich ig)
- Set
- For Ollama
- Download and install Ollama
- Install your preferred model. The script uses
llama3.1by default - Set
ollama { enabled:true }inapiConfigandgemini { enabled:false }inapiConfig - Set the model you downloaded in ollama.model: in the config (you can see the models by doing
ollama listin terminal)
- Make sure
browser.tabs.groups.smart.enabledis set tofalseinabout:config - Open Zen browser, go to
about:supportand clear the startup cache. - Done. Enjoy ^^
- 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
Clearbutton only clears un-grouped non-pinned tabs.
Peace <3