Created
February 4, 2022 15:13
-
-
Save nchevobbe/5d2f3258613717c3fae73a0863f5d69b to your computer and use it in GitHub Desktop.
Not Wordle Just My Firefox Tabs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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