Course lesson
Save Chrome Tabs in a Markdown File and Take Notes with Script Kit
We put a lot of work into browsing the internet every day, it would be a pity to lose it all by closing all of our tabs.
- Duration
- 2 min
- Access
- Free
- Transcript
- Retained from source evidence
We put a lot of work into browsing the internet every day, it would be a pity to lose it all by closing all of our tabs.
Script Kit can collect all of the tabs you currently have open in Chrome using its getTabs method and store them anywhere you want.
This particular script converts the tabs to markdown links and stores them in a text file on your file system, but you could convert and store them using any approach you can think of.
// Name: Save Tabs
import "@johnlindquist/kit"
let tabs = await getTabs()
let tabsMd = tabs
.map(tab => `* [${tab.title || tab.url}](${tab.url})`)
.join("\n")
let notes = await editor(tabsMd)
let filePath = home("tab-notes.md")
await ensureFile(filePath)
await appendFile(filePath, notes)
edit(filePath)