Skip to content

Instantly share code, notes, and snippets.

@StanAngeloff
Created August 11, 2010 12:26
Show Gist options
  • Save StanAngeloff/518899 to your computer and use it in GitHub Desktop.
Save StanAngeloff/518899 to your computer and use it in GitHub Desktop.
(function() {
for (var child, i = 0, length = document.childNodes.length; i < length && (child = document.childNodes[i]); i ++) {
if (child.nodeType === 7) {
if (child.nodeValue.indexOf('aero') > 0) {
child.nodeValue = 'discard="discard"';
document.removeChild(child);
}
}
}
var pi = document.createProcessingInstruction('xml-stylesheet', 'href="file:///D:/Workspace/public/komodo-aero-theme/src/skin/aero/theme.css?' + (new Date().getTime()) + '" type="text/css"');
document.insertBefore(pi, document.firstChild);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment