Skip to content

Instantly share code, notes, and snippets.

@kerkenit
Forked from termi/crossBrowser_initKeyboardEvent.js
Last active April 4, 2019 12:16
Show Gist options
  • Save kerkenit/5077e299e9704c9eb1d45d89a714b34f to your computer and use it in GitHub Desktop.
Save kerkenit/5077e299e9704c9eb1d45d89a714b34f to your computer and use it in GitHub Desktop.
Go to today in Google Calendar
function getElementByXpath(path) {
return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
}
setInterval(function() {
getElementByXpath('//*[@id="gb"]/div[2]/div[2]/div[1]/div/div/div[1]/div/div[1]').click();
}, 100000);
@kerkenit
Copy link
Author

kerkenit commented Apr 4, 2019

Go every 100 decodes to today in Google Calendar on the browser.
Use full for TV.
Tested in Google Chrome 73 on a Mac

I used https://chrome.google.com/webstore/detail/javascript-injector/djnjegpffahmfpjdlkciiecmeaebghlk
Match patern: ://calendar.google.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment