Bulk Tab Closer Older Than X Minutes
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
This userscript helps you quickly close older browser tabs by age. It scans any webpage for visible tab-like elements, hyperlinks, or a list of open tabs (e.g., in tab management pages, browser extensions, or tab lists), extracts timestamps or time indicators (e.g., "opened X minutes ago", "last used", "created") from page text or element attributes, calculates the age of each tab, and allows you to select a time threshold (5, 10, 15, 30, 60, 120, or 240 minutes) to bulk close all tabs older than that threshold. It shows the age of each tab, filters by age, and maintains a list of already closed tabs to avoid duplicates. It exports the list of selected tabs and provides a confirmation step before taking action. The script simulates the close action by marking tabs for closure.
WHERE IT RUNS
The script works on any webpage with tabs, links, or tab lists—tab management pages, browser extension interfaces, or any page with a list of URLs and time information. It runs entirely within your browser, reading only the visible content of the current page. It does not track your browsing history, access other tabs, or send any data externally. All tab data and closure history are stored locally.
HOW TO USE
After installation, open the panel by clicking the tool's icon in the BotGentz sidebar. Select your time threshold from the dropdown (e.g., 15 minutes). Click "Scan for tabs" to extract tabs with time information from the current page. The panel displays a list of tabs older than the threshold with checkboxes, showing the title and age. Select the tabs you want to close—use "Select All" to choose all. Click "Close Selected (Track)" to mark them as closed and add them to your history. Click "Export Selected" to download a text file with the selected tab URLs. Use "Clear History" to reset the closure history.
THE TECHNICAL MECHANISM
This script uses DOM traversal and text pattern matching to extract tab information and time indicators. It scans for links and elements with "tab" class names, data attributes (data-time, data-age), and text patterns like "X minutes ago", "X hours ago", "X days ago", and time-based patterns (e.g., "opened at 2:30 PM"). It calculates tab age in minutes, compares it to the threshold, and displays only tabs that exceed the threshold. The script deduplicates tabs by URL, stores the closure history in GM_setValue, and provides export functionality. All operations are client-side and do not send any data externally.
THE PANEL
The panel is draggable anywhere on the screen and remembers its position between sessions. It can be collapsed to a small floating bubble to minimize distraction, and expanded again with a single click. The panel's width can be adjusted, and pressing the Escape key closes it instantly. All settings—threshold, closure history, and auto-scan preference—are persisted locally using GM_setValue, so your data remains intact across page reloads and browser restarts.
PLEASE NOTE
This userscript requires the free BotGentz extension to function. The script extracts tabs from page text—it may not capture all open tabs. The time extraction relies on the current text patterns on the page—if the page uses a different format, the script may need to be updated. The script helps you track which tabs you've closed—it does not actually close browser tabs. The script does not access your browser's tab API; it only reads what is visible on the page. No data from your browsing is stored or transmitted anywhere—all processing occurs entirely in your browser.