generated at
WorkFlowyで「ページをくる」ブックマークレット
やること
各行に日付のデータが付与されている
日付のデータで絞り込む
絞り込む日付を変更する

日付での絞り込み
https://workflowy.com/#?q=date%3A11%2F19


script.js
(function () { if (window.location.hostname !== 'workflowy.com') return; const currentUrl = decodeURIComponent(window.location.href); const dateRegex = /https:\/\/workflowy\.com\/\#\?q=date:(\d{2})\/(\d{2})\/(\d{4})/; const match = currentUrl.match(dateRegex); if (match) { // URLから日付を抽出 const year = parseInt(match[3]); const month = parseInt(match[1]); const day = parseInt(match[2]); // 一日前の日付を計算 const prevDate = new Date(year, month - 1, day - 1); const prevYear = prevDate.getFullYear(); const prevMonth = String(prevDate.getMonth() + 1).padStart(2, '0'); const prevDay = String(prevDate.getDate()).padStart(2, '0'); // 新しいURLを作成 const newUrl = `https://workflowy.com/#?q=date:${prevMonth}/${prevDay}/${prevYear}`; // ページを移動 window.location.href = newUrl; }else if (currentUrl === 'https://workflowy.com/') { const today = new Date(); const year = today.getFullYear(); const month = String(today.getMonth() + 1).padStart(2, '0'); // 月は0から始まるため+1して、2桁に調整 const day = String(today.getDate()).padStart(2, '0'); // 新しいURLを作成 const newUrl = `https://workflowy.com/#?q=date:${month}/${day}/${year}`; // ページを移動 window.location.href = newUrl; } })();

bookmarkled.js
javascript:(function(d,s){ s=d.createElement('script');s.src='https://scrapbox.io/api/code/rashitamemo/WorkFlowy%E3%81%A7%E3%80%8C%E3%83%9A%E3%83%BC%E3%82%B8%E3%82%92%E3%81%8F%E3%82%8B%E3%80%8D%E3%83%96%E3%83%83%E3%82%AF%E3%83%9E%E3%83%BC%E3%82%AF%E3%83%AC%E3%83%83%E3%83%88/script.js';d.body.appendChild(s);})(document)