Changes between Version 15 and Version 16 of Dev/nicovideo


Ignore:
Timestamp:
Mar 29, 2017 12:21:00 AM (8 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Dev/nicovideo

    v15 v16  
    2727javascript:(function(){try{var starttime,progname,url;url=location.toString();if(url.indexOf("http://live.nicovideo.jp/watch/lv")!=0&&url.indexOf("http://live.nicovideo.jp/gate/lv")!=0)throw"This URL is not supported";String.prototype.trim=function(){return this.replace(/^\s*|\s*$/g,"")};progname=document.title;starttime=document.querySelector("div.kaijo").textContent.trim();if(!progname||!starttime)throw"Cannot get enough info";progname.replace(/^\(|\)$/g,"");starttime=starttime.replace(/[^\d]/g,"");starttime=starttime.slice(0,8)+"T"+starttime.slice(8,12)+"00";window.open("https://www.google.com/calendar/render?action=TEMPLATE&text="+encodeURIComponent(progname)+"&dates="+starttime+"/"+starttime+"&details="+encodeURIComponent(progname+"\n\n"+document.location.href),"_blank")}catch(e){alert("Error:\n"+e)}})(); 
    2828}}} 
     29 
     30 == misc == 
     31 * {{{live.nicovideo.jp/api/getplayerstatus?}}} で取得したticketの有効期限は2時間以下の模様 
    2932 
    3033 = getthumbinfo =