My Location Message Board E-Mail
pcbypaul
pc software, repair
      return to
    Homepage
bg

 
WP Clipart

Not Just for Geeks Anymore
Scripts 'N Tips
Xterm Use
Firefox Updating
update Java
Firefox Keys
Themes offline
Start Firefox
Kill Firefox
Firefox 16x16
Firefox Problems
Compiling
Compile wxPython
Disk Usage
CD Player
cdArray
Find-Installed
Backgrounds
Gimp Splash
Links
LinuxPackages
IceWalkers
Freshmeat
Linux Today
Slashdot



    Install Firefox themes offline




  Themes are simple to install online, but sometimes you may not be connected, or you want to add a theme on another machine and don't want to have to browse - so how do you do it?

  Not as simple as you might think, unless you have a little script to do it. I found one rather quickly on the internet, and repost it here with the code so you might do it for yourself. It is just a small table with a javascript. The code is listed below it. Try it out. Just copy and paste the text, save it as an html page, then open it with Firefox, browsing to wherever you downloaded your theme ".jar" files.

  You can install them from here, too -- but that sort of defeats the purpose : )



Install Firefox .JAR theme from Harddisk




<html><head><title> Firefox offline theme installation </title></head><body>
<script type="text/javascript">
function installTheme(where) {
var file = '';
if (where == 'local') {
file = 'file:///' + escape(document.getElementById('filename').value.replace(/\\/g,'/'));
} else {
file = document.getElementById('url').value;
}
InstallTrigger.installChrome(InstallTrigger.SKIN, file, getName(file));
}
function getName(raw) {
var grabFileStart = raw.lastIndexOf('/');
var grabFileEnd = raw.lastIndexOf('.');
if (grabFileStart >= grabFileEnd) {
return 'Invalid file name';
} else {
return raw.substring(grabFileStart + 1,grabFileEnd);
}
}
function installThemeNow(file) {
InstallTrigger.installChrome(InstallTrigger.SKIN, file, getName(file));
return true;
}
</script>

<table width="80%" border="0" align="center" cellpadding="0" cellspacing="2" bgcolor="#a52a2a">

<tr>

  <td bgcolor="#F5F4ED"><br><div align="center"><span class="style2">Install Firefox .JAR theme from Harddisk<br><br></span>

      <form><input id="filename" type="file">

      <input value="Install" onclick="installTheme('local');" type="button">

      </form>

  </div></td>

</tr>
</table> </body></html>




Tux Pages created and served by Linux Graphics made/edited by the Gimp   Created with the Gimp byPaul