Skip to content

Instantly share code, notes, and snippets.

@nchevobbe
Created February 4, 2022 15:13
Show Gist options
  • Save nchevobbe/5d2f3258613717c3fae73a0863f5d69b to your computer and use it in GitHub Desktop.
Save nchevobbe/5d2f3258613717c3fae73a0863f5d69b to your computer and use it in GitHub Desktop.
Not Wordle Just My Firefox Tabs
// Evaluate the following in Firefox Browser Console
copy("Not Wordle, just my #firefox tabs:\n" +
gBrowser.tabs
.map(tab => tab.pinned ? `🟪` : tab.getAttribute("pending") ? `🟨` : `🟩` )
.reduce((acc, curr) => {
if (acc.at(-1).length == 10) {
acc.push("");
}
acc[acc.length - 1] += curr;
return acc;
}, [""])
.join("\n"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment