Skip to content

Instantly share code, notes, and snippets.

@antonybudianto
Created October 28, 2019 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonybudianto/302a94029f6c3efc5a385d64b19693ac to your computer and use it in GitHub Desktop.
Save antonybudianto/302a94029f6c3efc5a385d64b19693ac to your computer and use it in GitHub Desktop.
ua=[];
document.querySelectorAll('.kbnDocTable__row').forEach(n => {
let fdiv = n.querySelectorAll('.kbnDocTableCell__dataField')[1]
let txt = fdiv.querySelector('div > span').innerHTML
ua.push({txt, modern: /Chrome\/([1-9][0-9][0-9]|[7-9][0-9]|6[1-9])/.test(txt)})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment