Created
August 30, 2010 22:39
-
-
Save StanAngeloff/558163 to your computer and use it in GitHub Desktop.
Styling XUL applications like web pages
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() { | |
| 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) { /* UPDATE: 'aero' with a keyword from your file name */ | |
| 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"'); /* UPDATE: with path to a local resource; keep new Date()... */ | |
| document.insertBefore(pi, document.firstChild); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment