This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // log.js | |
| // https://github.com/bgrins/devtools-snippets | |
| // Adds a `log` function to window object. | |
| // http://www.briangrinstead.com/blog/console-log-helper-function | |
| (function() { | |
| window.log = Function.prototype.bind.call(console.log, console); | |
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // jquerify.js | |
| // https://github.com/bgrins/devtools-snippets | |
| // Add jQuery to any page that does not have it already. | |
| (function () { | |
| if ( !window.jQuery ) { | |
| var s = document.createElement('script'); | |
| s.setAttribute('src', '//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js'); | |
| document.body.appendChild(s); |
NewerOlder