- chrome://net-internals/
- Click the arrow in the top right of the window
- Click Clear Cache
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
| document.getElementById("woop").contentWindow.init() |
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
| var docWidth = document.documentElement.offsetWidth; | |
| [].forEach.call( | |
| document.querySelectorAll('*'), | |
| function(el) { | |
| if (el.offsetWidth > docWidth) { | |
| console.log(el); | |
| } | |
| } | |
| ); |
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
| function urlContains(chunk) { | |
| return window.location.href.indexOf(chunk) !== -1; | |
| } |
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
| window.addEventListener("resize", resizeThrottler, false); | |
| var resizeTimeout; | |
| function resizeThrottler() { | |
| // ignore resize events as long as an actualResizeHandler execution is in the queue | |
| if ( !resizeTimeout ) { | |
| resizeTimeout = setTimeout(function() { | |
| resizeTimeout = null; | |
| actualResizeHandler(); |
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
| echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | |
| from Sebastián Gurin (cancerberoSgx) https://github.com/gulpjs/gulp/issues/217 |
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
| chrome://flags/#force-color-profile | |
| I switched to sRGB from Default. Worked great. |