# hello world with bookmark scripting
javascript:(() => alert('hello'))();
# Today - Calendar Events
javascript:(
() => {
const today = new Date().toISOString().split('T')[0].replaceAll('-', '');
window.location = `https://calendar.google.com/calendar/u/0/r/search?start=${today}&end=${today}`
}
)();
# Tomorrow - Calendar Events
javascript:(() => {
const today = new Date();
const tomorrow = new Date(today);
tomorrow.setDate(today.getDate() + 1);
const tomorrowFormatted = tomorrow.toISOString().split('T')[0].replaceAll('-', '');
window.location = `https://calendar.google.com/calendar/u/0/r/search?start=${tomorrowFormatted}&end=${tomorrowFormatted}`
})();
# Day After Tomorrow - Calendar Events
javascript:(
() => {
const today = new Date();
const dayAfterTomorrow = new Date(today);
dayAfterTomorrow.setDate(today.getDate() + 2);
let dayAfterTomorrowFormatted = dayAfterTomorrow.toISOString().split('T')[0].replaceAll('-', '');
window.location = `https://calendar.google.com/calendar/u/0/r/search?start=${dayAfterTomorrowFormatted}&end=${dayAfterTomorrowFormatted}`;
}
)();
You can snooze in interesting ways!!
d - day wise
w - Week wise
m - month wise
y - year wise
4 - 4 days wise
a - schedule wise (personal favourite)
Similar to how calendly does that.
Source: https://youtu.be/7AsmRNiveGc