console
//var arr = document.querySelector('.fsasf');
//for (i = arr.children.length - 1; i > -1 && arr.children[i].id != 'TracingPoint'; i
// console.log(arr.children[i].innerText);
//}
//if(arr.lastElementChild != null) arr.lastElementChild.id = 'TracingPoint';
//var div = document.getElementById('danmaku-buffer-prompt');
//console.log(div.innerHTML)
//var b = div.innerHTML.match(/(?<=style="display:\s).*?(?=;">)/);
//console.log(b)
/*
var int = self.setInterval('clock()', 5000)
function clock() {
var httpRequest = new XMLHttpRequest()
, json = null
, url = 'https://api.live.bilibili.com/xlive/general-interface/v1/rank/getOnlineGoldRank?ruid=23383532&roomId=12655678&page=1&pageSize=50';
httpRequest.open('GET', url, true);
httpRequest.send(null);
httpRequest.onreadystatechange = function () {
if (httpRequest.readyState == 4 && httpRequest.status == 200) {
window.__bilibili = httpRequest.responseText;
}
}
}
var int = self.setInterval('clock()', 1000)
function clock() {
console.log('haha');
i++;
}
if (i == 5) {
window.clearInterval(int)
}
*/
//var _div = document.createElement('div')
//_div.id = 'wdData'
//document.body.appendChild(_div)
//var div = document.getElementById('wdData')
//var html = "<sc"+"ript>var int = self.setInterval('clock()', 5000);function clock() {var httpRequest = new XMLHttpRequest();var url = 'https://api.live.bilibili.com/xlive/general-interface/v1/rank/getOnlineGoldRank?ruid=23383532&roomId=12655678&page=1&pageSize=50';httpRequest.open('GET', url, true);httpRequest.send(null);httpRequest.onreadystatechange = function () {if (httpRequest.readyState == 4 && httpRequest.status == 200) {window.__bilibili = httpRequest.responseText;}}}</scr"+"ipt>"
//div.innerHTML = "<d"+"iv>"+html+"</d"+"iv>"
window._script = {
Ceshi:function(){
var int = self.setInterval('window._script.Clock()', 5000)
},
Clock:function(){
console.log("haha ")
}
}
//window.onload = window._script.Ceshi()
console.log("脚本结束了")
<html>
<head></head>
<body>
<div class="fsasf">
<div>"01"</div>
<div>"02"</div>
<div id="abc">"03"</div>
<div>"04"</div>
<div>"05"</div>
<div>"00"</div>
</div>
</body>
</html>