ニコ動の video 要素にローカルソースを読み込んでコメント付きで見るためのスニペット
var v = document.getElementsByTagName("video")[0];
v.style.display = "";
v.style.visibility = "visible";
var h = document.getElementById("CommonHeader");
h.style.backgroundColor="white";
h.innerHTML = "<input type='file' id='mySource'>";
var mySource = document.getElementById("mySource");
mySource.addEventListener("change", function(){
var mySourceURL = window.URL.createObjectURL(this.files[0]);
v.src = mySourceURL;
v.play();
});
v.controls=true;
var payments = document.getElementsByClassName("p_x2 w_[680px] text_textOnLayer.highEmWhite bg_layer.surfaceMediumEmBlack rounded_m");
if(payments.length != 0){
payments[0].style.visibility = "hidden";
}
// video 要素のマウス操作をブロックしている要素を除去
sc=document.querySelector("div[data-name='supporter-content'");
sc.remove();