Skip to content

Instantly share code, notes, and snippets.

@michimani
Created June 8, 2020 12:19
Show Gist options
  • Save michimani/ae17b16182ec07d22c24d244d2d47e50 to your computer and use it in GitHub Desktop.
Save michimani/ae17b16182ec07d22c24d244d2d47e50 to your computer and use it in GitHub Desktop.
This is a bookmarklet displays the solve results measured by csTimer.
javascript:(function(){const statsSelector="#stats div.statc table.sumtable.table tr";var stats=document.querySelectorAll(statsSelector),statsTitle="",statsValue="";stats.forEach(t=>{let e=t.querySelector("th").innerText;if(""!=e){"time"==e&&(e="1"),""!=statsTitle&&(statsTitle+="/"),statsTitle+=e;let s=t.querySelectorAll("td")[1].innerText;""!=statsValue&&(statsValue+="/"),statsValue+=s}});alert(`${statsTitle} = ${statsValue}`);})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment