Skip to content

Instantly share code, notes, and snippets.

View myakura's full-sized avatar

Masataka Yakura myakura

View GitHub Profile
@myakura
myakura / chromeversion.js
Last active December 13, 2015 19:19
grabs data from chrome://version and reformat for "Chrome" sheet on http://goo.gl/39PQw
// open the console and run on chrome://version
// Blink (Cr28+)
function t(s){return document.querySelector(s).innerText};copy(t('#version')+'\t'+t('[i18n-content=version_modifier]')+'\t\t\t'+t('#blink_version')+'\t'+t('[i18n-content=js_version]')+'\t'+t('#flash_version')+'\t'+navigator.userAgent);
@myakura
myakura / gist:4535879
Created January 15, 2013 03:45
get Net Applications market share data
copy(Array.prototype.slice.call(document.querySelectorAll('[class^="rpt-row"] > td:last-child')).map(function (td) { return parseFloat(td.textContent.trim(), 10) }));
// http://marketshare.hitslink.com/report.aspx?qprid=3&qpaf=&qpcustom=Chrome%2025.0&qpcustomb=0&qptimeframe=M&qpsp=156&qpnp=12