- Watchlist, Iāve left it there thinking Iām not sure how to add it, but maybe others are adding it automatically?
- Iāll add it when I open peopleās Project.
-
-
If not, is it a bug?
-
Is it because itās Porter?
- probable
- probable
-
I think Iām putting it in localStorage or something, but I wonder if I can add a Porter to it in some clever way.
- It doesnāt have to be automatic, it could be manual.
-
Can be added with UserScript
- For example, [/takker/remote watch list#61c291b71280f00000f6d645](https://scrapbox.io/takker/remote watch list#61c291b71280f00000f6d645) will add about 1000 projects in
list.js
to the watch list- Oh,
list.js
included private projects.- Iāll probably only put in a few things I know and try them out so Iām good to go.
- Iāll probably only put in a few things I know and try them out so Iām good to go.
- Oh,
- For example, [/takker/remote watch list#61c291b71280f00000f6d645](https://scrapbox.io/takker/remote watch list#61c291b71280f00000f6d645) will add about 1000 projects in
-
- Iāll add it when I open peopleās Project.
[/takker/remote watch list](https://scrapbox.io/takker/remote watch list)
script.js
const projectIds = [
'5e6cbe2d71038b00178729b1', // /sta stakiran institute
'5ad2d6b60268550014c2d723', // /rashitamemo Tadanori Kurashita's Idea Studio
'57ba889cc59c3e0f00979915', // /shokai hashimoto shokai
'60d84407e00111001ca49f7b', // /blu3mo-public bluemo-public
'5ad25639fcbd1b0014f970fb', // /dai-yamamoto dai-yamamoto
'5844e6b756624e0011d8e6c2', // /daiiz daiiz
'5b2b0eebb7bd41001461d2f4', // /halsk Hal Seki's Scrapbox
'5f260ed82c98a7001eddd442', // /issac-37765679 issac's Scrapbox
'5886ce9301cee80011d205a8', // /june29 29box
'58c9deee4dd2070011214160', // /kimiyuki Memo read by future self
'583dc452ebcbae0011e236ce', // /masui Toshiyuki Masui
'59fb2112121207900012774b18', // /motoso base element
'5ae7fecf7766b7001455cbd4', // /mtane0412 pumping thought latrine
'5f1810a1592883001eacf6b4', // /noratetsu Noratetsu's Room (Noratetsu Institute)
'5c6f5ba148eb0400174a245a', // /nwtgck nwtgck / Ryo Ota
'5f2f02f3c4a48d00237e1534', // /takker kutakutajuyon
'60648a9d02a598001c91685e', // /takoeight0821 Scrapbox of the stars
'5b6cd7c5e5da53001413f00e', // /taskmanagement taskmanagement scrapbox
'5f112854fd61a2001e36f78e', // /tkgshn tkgshn
'5983f25ce54f440011c2cd40', // /yamanoku yamaScrapbox
'60296e715a38ec001c5f1909', // /yosider yosider
'6016a310e41b6a0021bd81fa', // /hanadev
'5b8aa7cc1a07780014f61b7a', // /sudow
]
/hanadev /sudow
- How do I find out the ID if I want to add a project that is not on the list?
- /scrapboxlab/api/projects/:projectnamećä½æćć¾ć
- /scrapboxlab/api/projects/:projectnamećä½æćć¾ć
script.js
function syncWatchList(projectIds) {
// Do not overwrite existing watchList
const projectsLastAccessed = JSON.parse(localStorage.getItem('projectsLastAccessed'));
projectIds.forEach(id => projectsLastAccessed[id] ??= 0);
localStorage.setItem('projectsLastAccessed', JSON.stringify(projectsLastAccessed));
}
syncWatchList(projectIds);
console.log("add watchlist")
- It didnāt work.
- I wonder if there is no localStorage in the browser in Porter or somethingā¦
This page is auto-translated from [/nishio/add watchlist](https://scrapbox.io/nishio/add watchlist) using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. Iām very happy to spread my thought to non-Japanese readers.