function aiparser(){var e="dm_zcbuanasdijgnhsahklzmmhfsausu",t=document.getElementById(e);t||((t=document.createElement("div")).style.display="none",t.id=e,document.body.appendChild(t),t.setAttribute("onclick","document.getElementById('"+e+"').innerText=JSON.stringify(pageInfo)")),t.click();var n=document.getElementById(e).innerText;if(n){const e=n.title,t=JSON.parse(JSON.parse(n).currentVideoInfo.ksPlayJson).adaptationSet[0].representation[0].url,a=new RegExp("https:\\/\\/.*\\.acfun\\.cn\\/.*\\/segment\\/|http:\\/\\/.*\\.acfun\\.cn\\/.*\\/segment\\/"),i=new RegExp("https:\\/\\/.*\\.acfun\\.cn\\/.*\\/hls\\/|http:\\/\\/.*\\.acfun\\.cn\\/.*\\/hls\\/");let o="";a.test(t)?o=t.match(a)[0]:i.test(t)&&(o=t.match(i)[0]);var s=new XMLHttpRequest;s.open("get",t,!0),s.timeout=1e4;let c=1;s.onload=()=>{let t=s.response.match(/#.*?\n(.*?)\n/g),n=[];for(let s=0;s<t.length;s++){const a=t[s];-1!==a.indexOf(".ts")&&n.push({url:o+a.replace(/#.*?\n/,"").replace(/\n$/,""),type:"video",bytSize:0,fileName:e,videoType:"ts",superSpecialFileName:"true",isSelect:!1,poster:"poster",videoIndex:c++})}chrome.runtime.sendMessage({tip:"addContentVideoRows",lists:n})},s.send()}}aiparser();