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
// formcontrols.js | |
// https://github.com/bgrins/devtools-snippets | |
// Print out forms and their controls | |
(function() { | |
var forms = document.querySelectorAll("form"); | |
for (var i = 0, len = forms.length; i < len; i++) { | |
var tab = [ ]; |
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
// Cache Buster | |
// https://bgrins.github.io/devtools-snippets/#cachebuster | |
// Overwrite all link and (optionally) script tags by adding Date.now() at the end of href and src attributes, respectively. | |
// By default processing scripts is not performed, you should change the variable process_scripts to true to run these. | |
(function (){ | |
var rep = /.*\?.*/, | |
links = document.getElementsByTagName('link'), | |
scripts = document.getElementsByTagName('script'), | |
process_scripts = false; |
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
/** | |
* Samuel Suther [email protected] | |
* 2016-03-08 | |
* This Sippet open a Confirm-Dialog. Input the Unicode. Result appear in a Textarea. | |
* This way, you can copy the String and enter an new Unicode directly if needed. | |
*/ | |
var faIcons = { | |
"adjust": "f042", | |
"adn": "f170", |
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
/** | |
* Simple Critical CSS and Full CSS extraction widget | |
* | |
* @usage | |
* Copy & paste this widget in the browser console and use the following methods with an optional callback. | |
* | |
* window.extractCriticalCSS( callback ); | |
* window.extractFullCSS( callback ); | |
* | |
* When no callback is provided, the extracted CSS is offered as a file download + printed to the browser 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
javascript: (function(e, s) { | |
e.src = s; | |
e.onload = function() { | |
// If noConflict is need, uncomment the following Line and use jQuery.('body')... for example instead of $.('body')... | |
//jQuery.noConflict(); | |
console.log('jQuery injected'); | |
}; | |
document.head.appendChild(e); | |
})(document.createElement('script'), '//code.jquery.com/jquery-latest.min.js'); |