Skip to content

Instantly share code, notes, and snippets.

@kitwalker12
Created October 9, 2014 22:44
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 kitwalker12/729ad86eeeafba108847 to your computer and use it in GitHub Desktop.
Save kitwalker12/729ad86eeeafba108847 to your computer and use it in GitHub Desktop.
chrome devtools tips
monitorEvents(window, 'click');
monitorEvents(window, 'scroll');
//After store as global variable, save to clipboard
copy($_)
//timeline
console.timeline('xxx');
console.timelineEnd('xxx');
//profile
console.profile('xxx');
console.profileEnd('xxx');
//inspect
inspect(document.body.firstChild);
inspect(somefunctionname);
//copy object as string
copy($0);
copy(document.body);
//query DOM elements
$$(selector);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment