Ebi's bookmarklet

Daily Note

Installation

DailyNote ←Please drag & drop this button to bookmark bar
or copy & paste code below

Description

Source code

daily-note.js
const year = new Date().getFullYear();
const month = new Date().getMonth() + 1;
const date = new Date().getDate();

const dailyNote = `${year}-${month.toString().padStart(2, '0')}-${date.toString().padStart(2, '0')}`;

location.href = `https://scrapbox.io/<set-url>/${dailyNote}`;

Minified source code

javascript:!function(){const t=(new Date).getFullYear(),e=(new Date).getMonth()+1,a=(new Date).getDate(),n=`${t}-${e.toString().padStart(2,"0")}-${a.toString().padStart(2,"0")}`;location.href=`https://scrapbox.io/<set-url>/${n}`}();
Edit this page