Skip to content

Instantly share code, notes, and snippets.

@tomykaira
Created September 21, 2015 15:27
Show Gist options
  • Save tomykaira/d30539a5b83823903f41 to your computer and use it in GitHub Desktop.
Save tomykaira/d30539a5b83823903f41 to your computer and use it in GitHub Desktop.
Select all results from chrome://history. be sure that history iframe is selected.
var arrayMethods = Object.getOwnPropertyNames( Array.prototype );
arrayMethods.forEach( attachArrayMethodsToNodeList );
function attachArrayMethodsToNodeList(methodName)
{
if(methodName !== "length") {
NodeList.prototype[methodName] = Array.prototype[methodName];
}
};
document.querySelectorAll('input').forEach(function (d) { d.checked = true })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment