checked.js 348 B

12345678910111213
  1. (function(){let d=document;
  2. let ea=d.querySelectorAll('input:checked');
  3. let s="";
  4. for(let i=0;i<ea.length;i++){
  5. let sibling = ea[i].nextElementSibling;
  6. if(sibling==null) sibling=ea[i].previousElementSibling;
  7. let str = sibling.getAttribute("href");
  8. if(null==str) str=sibling.getAttribute("src");
  9. s = s+str+"\n";
  10. }
  11. return s;
  12. })()