Skip to content

Instantly share code, notes, and snippets.

@haya14busa
Created May 19, 2017 07:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haya14busa/5c5879cdff359dbf66dd6db555ec5ccf to your computer and use it in GitHub Desktop.
Save haya14busa/5c5879cdff359dbf66dd6db555ec5ccf to your computer and use it in GitHub Desktop.
(function() {
function getGoogleCalendarEventID() {
var elm = document.querySelector('div.ep[data-eid]');
if (!elm) {
return;
}
var eid = elm.getAttribute('data-eid');
if (!eid) {
return;
}
var ids = atob(eid).split(' ');
var eventID = ids[0];
var calendarID = ids[1];
return {
eventID: eventID,
calendarID: calendarID,
};
}
console.log(getGoogleCalendarEventID());
}())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment