Created
March 7, 2014 01:48
-
-
Save gblazex/9403501 to your computer and use it in GitHub Desktop.
This file contains 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 fixDevTools() { | |
Element.prototype.enableStyleClass = function(){} | |
var oldToggle = DOMTokenList.prototype.toggle; | |
DOMTokenList.prototype.toggle = function(c) { | |
if ('offscreen' == c) return; | |
oldToggle.apply(this, arguments); | |
} | |
var cssText = ''; | |
cssText += '.network-graph-label { display:none }\n'; | |
cssText += '.network-log-grid.data-grid tr.offscreen > td > div { display: block; }\n'; | |
var style = document.createElement('style'); | |
style.innerHTML = cssText; | |
document.body.appendChild(style); | |
return 'DevTools fixed.'; | |
} | |
fixDevTools(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment