function loadNGIDs(){
try{
var fso = new ActiveXObject("Scripting.FileSystemObject");
var file = fso.OpenTextFile("NGIDList.txt");
while(!file.AtEndOfStream){
var line = file.ReadLine();
if(line.match(/([sn]m\d+)/)){
line.match(/([sn]m\d+)/);//なくてもいいかも?
NGIDs[RegExp.$1] = true;
}
}
file.Close();
}catch(e){}
}
【VideoInformation.js】
・・・
var __VideoInformation__MylistIDs = __VideoInformation__getMylistIDs();
//add start
var __VideoInformation__playStateTimer = 0;
//add end
function __VideoInformation__onConnect(lv){
・・・
__VideoInformation__receiveComment(new Chat("<chat>/play "+contents[i].text+"</chat>"));
//add start
// 接続時に流れている動画の進捗状態を表示
if(__VideoInformation__playStateTimer!=0){
clearInterval(__VideoInformation__playStateTimer);
__VideoInformation__playStateTimer = 0;
}
var start_time = Number(contents[i].getAttributeNode("start_time").value)-9*60*60;
var duration = Number(contents[i].getAttributeNode("duration").value);
__VideoInformation__playStateTimer = setInterval(function(){
__VideoInformation__showplayState(start_time,duration);
},500);
//add end
}
}
});
}
//add start
function __VideoInformation__showplayState(start_time,duration){
var now_time = Math.floor((new Date().getTime()+new Date().getTimezoneOffset()*1000*60)/1000);
var played_time = now_time-start_time;
if(played_time < duration){
document.getElementById("playState").style.cssText = "color:red;";
var str = convertTimeString(played_time)+"/"+convertTimeString(duration);
}else{
document.getElementById("playState").style.cssText = "color:WindowText;";
var str = "再生終了";
clearInterval(__VideoInformation__playStateTimer);
__VideoInformation__playStateTimer = 0;
}
document.getElementById("playState").innerHTML = str;
}
//add end
function receiveComment_Request(Chat)
の中の
if (!(document.getElementById("dummyAdminCmdCheck").checked)
&& !(document.getElementById("dummyAdminCmtCheck").checked)){
を
if (!(document.getElementById("dummyAdminCmdCheck").checked)){
とすればOKかと思います。