Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Missing cards
- https://pasteboard.co/iWJzD5TMI9PF.jpg
- // To extract profile
- copy(JSON.stringify(cardPlayFlags).replace(/,"hasc_num/g, ",\"name\":\""+document.evaluate("/html/body/div[1]/div[4]/div[3]/div[1]/div[1]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.innerHTML.trim().replace(/&/g,"&").replace(/"/g,"\\\"")+"\""+(cardPlayFlags.voice_num==2?document.evaluate("/html/body/div[1]/div[4]/div[3]/div[6]/div[1]/div[6]/div[2]/div[2]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.innerHTML.trim().replace(/&/g,"&").replace(/繪師:(.*)<br>聲優:(.*)$/,",\"illustrator\":\"$1\",\"va\":\"$2\""):",\"illustrator\":\"\",\"va\":\"\"")+",\"skill_name\":\""+document.evaluate("/html/body/div[1]/div[4]/div[3]/div[6]/div[1]/div[3]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.innerHTML.trim().replace(/&/g,"&").replace(/[\r\n]/g,"").replace(/^(.*?)<br>.*$/,"$1").replace(/"/g,"\\\"").trim()+"\",\"hasc_num")+",");
- // To extract profile, if the other fails
- copy(JSON.stringify(cardPlayFlags).replace(/,"hasc_num/g, ",\"name\":\""+document.evaluate("/html/body/div[1]/div[4]/div[3]/div[1]/div[1]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.innerHTML.trim().replace(/&/g,"&").replace(/"/g,"\\\"")+"\""+(cardPlayFlags.voice_num==2?document.evaluate("/html/body/div[1]/div[4]/div[3]/div[5]/div[1]/div[6]/div[2]/div[2]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.innerHTML.trim().replace(/&/g,"&").replace(/繪師:(.*)<br>聲優:(.*)$/,",\"illustrator\":\"$1\",\"va\":\"$2\""):",\"illustrator\":\"\",\"va\":\"\"")+",\"skill_name\":\""+document.evaluate("/html/body/div[1]/div[4]/div[3]/div[5]/div[1]/div[3]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.innerHTML.trim().replace(/&/g,"&").replace(/[\r\n]/g,"").replace(/^(.*?)<br>.*$/,"$1").replace(/"/g,"\\\"").trim()+"\",\"hasc_num")+",");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement