-
Notifications
You must be signed in to change notification settings - Fork 0
Snippets
Paul Irish edited this page May 12, 2016
·
13 revisions
Prepend the debugger statement to a function as easy as stopBefore('Element.prototype.removeChild').
- Site: https://gist.github.com/NV/5376464
- Also for logging: https://gist.github.com/johan/5436827
Breakpoint on access to any property
captureCalls('document.getElementById') to show a stack trace for document.getElementById on its every call
- Site: https://gist.github.com/nicdaCosta/4072412
Object.prototype.grep
, skipping inherited properties - Also: https://gist.github.com/johan/5550897
grep
andgrep.own
, for inherited or non-inherited ditto
Add dataurl.js for loading all images on page as data urls
Add jQuery to any page
View the HTTP headers for the current URL (using a console.table)
See also: http://bgrins.github.io/devtools-snippets/