Snippets

Paul Irish edited this page May 12, 2016 · 13 revisions
Clone this wiki locally

stopBefore.js

Prepend the debugger statement to a function as easy as stopBefore('Element.prototype.removeChild').

break on property read/write

Breakpoint on access to any property

captureCalls.js

captureCalls('document.getElementById') to show a stack trace for document.getElementById on its every call

Grep.js

dataUrl.js

Add dataurl.js for loading all images on page as data urls

jQuerify

Add jQuery to any page

showheaders.js

View the HTTP headers for the current URL (using a console.table)


See also: http://bgrins.github.io/devtools-snippets/