Skip to content

Instantly share code, notes, and snippets.

Andre AndreLion

Block or report user

Report or block AndreLion

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
AndreLion / shortcut.js
Last active Jan 15, 2020
View shortcut.js
var style = document.createElement('style');
style.innerHTML = '.container ol.items li .title[shortcut] { border-color:#66afe9;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6); }';
var length = document.querySelector('ol.items').children.length;
var index = 0;
var inc = function(){
return index >= length ? index = length : index++;
View jsperf-bookmarklet.js
var key = localStorage.wpt_key;
if (!key) {
var prompt = window.__proto__.prompt;
key = prompt('Your WebPagetest API key, please?');
if (!key) {
return gameOver();
localStorage.wpt_key = key;
You can’t perform that action at this time.