dougeeebear wrote:If there is a coding error anywhere within userChrome.js, nothing in the userChrome.js file is used.
JavaScript is way stricter than CSS. An error in userChrome.css probably affects only a few rules, whereas one in JavaScript quite easily affects the whole file (especially if it's a syntax error). The point is that JavaScript doesn't know about your different snippets as long as you don't use the updated Sub-Script Loader (which catches the errors in the individual files). In the end, you really have to avoid errors...
alta88 wrote:does this mean full "C:\blah blah\..\ScriptDir\script1.uc.js" is correct syntax for arg aFile?
Yes and no. Yes, the full path is the correct syntax. And no, in JavaScript you have to write the backslashs twice: "C:\\Documents and Settings\\...\\chrome\\ScriptDir\\script1.js".
alta88 wrote:importScript("ScriptDir\script1.uc.js");
I've updated the importScript snippet to also accept paths relative to the chrome folder (i.e. "ScriptDir/script1.uc.js" equals "C:\\...\\chrome\\ScriptDir\\script1.uc.js").
Diorser wrote:Looking for a simple JS to hide titlebar
Hiding the titlebar of existing windows is impossible. All you could do would be to switch the window into full-screen mode (which effectively hides the titlebar):
Code: Select all
window.fullScreen = true;
In case you want to achieve a different effect, please describe more precisely what you're after...