from /villagepump/2022/03/25 /villagepump/nishio.icon

  • Watchlist, Iā€™ve left it there thinking Iā€™m not sure how to add it, but maybe others are adding it automatically?
    • image
      • Iā€™ll add it when I open peopleā€™s Project./villagepump/kuuote.icon/villagepump/blu3mo.icon/villagepump/takker.icon
        • image

        • If not, is it a bug?

        • Is it because itā€™s Porter?/villagepump/nishio.icon

          • probable/villagepump/kuuote.icon
        • 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./villagepump/nishio.icon

          • It doesnā€™t have to be automatic, it could be manual.
        • Can be added with UserScript/villagepump/takker.icon

          • 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./villagepump/nishio.icon

[/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

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.