share-watch-list
This userscript allows you to share your watchlist across your devices. In order to use this, you need to list the project IDs as the .watchlist file below has.
code:script.js
;(async () => {
const setWatchList = (text) => {
const projectIds = text.split('\n')
const projectsLastAccessed = JSON.parse(
localStorage.getItem('projectsLastAccessed')
)
const newProjectsLastAccessed = Object.assign(
{},
...projectIds.map((id) => ({ id: projectsLastAccessedid ?? 0 })) )
localStorage.setItem(
'projectsLastAccessed',
JSON.stringify(newProjectsLastAccessed)
)
}
try {
fetch(WATCH_LIST)
.then((res) => res.text())
.then((text) => setWatchList(text))
} catch (e) {
console.error('Failed to load.')
}
})()
code:.watchlist
57c7d712d25ef00f00100678
5808f62655afc90010008f6f
5cb3b07781ebcd0017c56148