Skip to content

Instantly share code, notes, and snippets.

@blood72
Created March 24, 2023 12:36
Show Gist options
  • Save blood72/3728242502a61fda41e338c5da13e36a to your computer and use it in GitHub Desktop.
Save blood72/3728242502a61fda41e338c5da13e36a to your computer and use it in GitHub Desktop.
click today for check schedules
// ==UserScript==
// @name Google Calendar Today
// @description click today for check schedules
// @version 1.0.0
// @match https://calendar.google.com/calendar/u/0/r?tab=mc&pli=1
// @grant none
// ==/UserScript==
(function () {
setTimeout(function () {
if (document.querySelector('a[aria-label*="Google 계정"]')) {
let interval = setInterval(function () {
let todayButton = document.querySelector('button[aria-label*="오늘"]');
if (todayButton) {
todayButton.click();
clearInterval(interval);
}
}, 1000);
}
}, 500);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment