Created
May 19, 2017 07:49
-
-
Save haya14busa/5c5879cdff359dbf66dd6db555ec5ccf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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