Hacker News new | past | comments | ask | show | jobs | submit login

Is it ironic that I opened this in a tab?

I'd like a browser function that says "open a text file and save all the URLs"




Somebody shared this in a different comment, but the OneTab extension looks like exactly what you are asking for: https://www.one-tab.com/ (minus it being builtin).


I actually used to use AppleScript to grab open tab URLs in Chrome but I switched to Firefox and AFAIK, Firefox doesn't support AppleScript.

    tell application "Chromium"
        set tabCount to get count every tab of window 1
        repeat with i from 1 to tabCount
            set currentUrl to get URL of tab i of window 1
        end repeat
    end tell


I saw mention of this on HN somewhere previously, but I've found that Tablist[0] is simple (a couple dozen lines of code) and works well.

[0] https://github.com/slymax/tablist (links to Chrome and Firefox extensions there)




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: