javascript:(function(){let a=new Date,b=a.getTime(),c=prompt('Input your event text:');if(c){let e=prompt('How long will you hold the event later (ex. hh):');if(e.match(/[0-9]+/)){let g=new Date(b+1e3*(60*(60*(1*e)))),h=[g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds()],i=h[0].toString();i+=9>h[1]?'0'+(h[1]+1).toString():(h[1]+1).toString(),i+=10>h[2]?'0'+h[2].toString():h[2].toString(),i+='T',i+=10>h[3]?'0'+h[3].toString():h[3].toString(),i+=10>h[4]?'0'+h[4].toString():h[4].toString(),i+='00';let j='https://www.google.com/calendar/event?action=TEMPLATE&text='+encodeURIComponent(c)+'&dates='+i+'/'+i;window.open(j)}else alert('Invalid value: Input time in hh:mm.')}})();