Improving some previous days

This commit is contained in:
Joshua Seigler 2020-12-07 20:28:41 +00:00
parent 048bb56462
commit ba2a91c553
4 changed files with 4 additions and 5 deletions

View file

@ -1,2 +1 @@
let d=document.body.textContent.replaceAll(/[FL]/g,0).replaceAll(/[BR]/g,1).trim().split`
`.map(c=>parseInt(c.slice(0,7),2)*8+parseInt(c.slice(7),2)).sort((a,b)=>b-a);[d[0],d.find((s,i,S)=>s-S[i+1]==2)-1]
d=document.body.innerText.replaceAll(/[FL]/g,0).replaceAll(/[BR]/g,1).trim().split`\n`.map(c=>parseInt(c,2)).sort((a,b)=>b-a);[d[0],d.find((s,i,S)=>s-S[i+1]==2)-1]