Skip to content

Instantly share code, notes, and snippets.

@gblazex
Created March 7, 2014 01:48
Show Gist options
  • Save gblazex/9403501 to your computer and use it in GitHub Desktop.
Save gblazex/9403501 to your computer and use it in GitHub Desktop.
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