WinMatrix: Firefox Offline Theme Installer - WinMatrix

Jump to content

Sign in to access features such as - Topic subscription, Automatic updates, Personal messages, Manage your profile and more..
  • (3 Pages)
  • +
  • 1
  • 2
  • 3

Firefox Offline Theme Installer Install themes from hard disk Rate Topic: -----

#1 User is offline   TituFama 

  • Super WinMatrixian
  • Icon
  • Group: WM Members
  • Posts: 2,392
  • Joined: 12-September 04

Post icon  Posted 23 October 2004 - 09:43 PM

There is no option available in Firefox for browsing and insatlling the themes. You have to install the thems online directly from the server.

But if you have downloaded a skin and now want to install it from hard disk offline?

There is one easiest way to build your own Firefox theme installer.
Copy the below code and paste it in notepad now save the file with .HTML extraction (example: Theme Installer.html)

And your Firefox theme installer is ready.
Open the HTML file with Firefox and browse the .JAR theme file from hard disk :D

<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>
<style type="text/css">
<!--
.style2 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size: 12px;
}
-->
</style>



<table width="80%" border="0" align="center" cellpadding="0" cellspacing="2" bgcolor="#0099FF">
  <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>

0

#2 User is offline   Cyclops 

  • CyclopsTheRedEye
  • Icon
  • Group: WM Admin
  • Posts: 1,025
  • Joined: 02-May 03

Posted 24 October 2004 - 02:20 AM

Code is working fine.
Thank you.
0

#3 User is offline   Power User Z 

  • Z
  • Icon
  • Group: WM Members
  • Posts: 1,595
  • Joined: 20-May 04

Posted 24 October 2004 - 04:27 AM

Thanks for the installer TituFama
There is a Firefox extension which does the same work but that's not compatible with Firefox 1.0

This post has been edited by Power User Z: 24 October 2004 - 04:42 AM

0

#4 User is offline   elositocandela 

  • DJ AZTEC IN THE HOUSE
  • Icon
  • Group: WM Members
  • Posts: 1,154
  • Joined: 06-July 04

Posted 24 October 2004 - 06:24 AM

thanks man very usefull
0

#5 User is offline   Benji 

  • Active WinMatrixian
  • Icon
  • Group: WM Members
  • Posts: 816
  • Joined: 22-July 04

Posted 24 October 2004 - 05:51 PM

Did You yourself code this?
(not implying anything such as plagerism but i think this is very impressive)
0

#6 User is offline   ReynoldsM 

  • Reynolds Medila
  • Icon
  • Group: Elites
  • Posts: 2,147
  • Joined: 30-November 03

Posted 24 October 2004 - 06:08 PM

Great, if this is your own code
0

#7 User is offline   Aqua Structure 

  • long-time listener, first-time caller
  • Icon
  • Group: WM Members
  • Posts: 1,595
  • Joined: 14-August 04

Posted 24 October 2004 - 07:05 PM

Thanks for the code, but if you didn't make it yourself be sure to give credit to whoever did. :)
0

#8 User is offline   Neofall 

  • Matrixian
  • Icon
  • Group: Elites
  • Posts: 1,709
  • Joined: 03-February 04

Posted 24 October 2004 - 11:37 PM

WOW. Thanks TituFama
0

#9 User is offline   Benji 

  • Active WinMatrixian
  • Icon
  • Group: WM Members
  • Posts: 816
  • Joined: 22-July 04

Posted 25 October 2004 - 12:48 AM

Thanks you. Now i can use kol's Longhorn theme FINALLY!!!!!
0

#10 User is offline   Liquid Snake 

  • I live in a 3D world
  • Icon
  • Group: Validating
  • Posts: 1,598
  • Joined: 15-July 03

Posted 25 October 2004 - 01:28 AM

Great job TituFama
Try to make the installer more beautiful with style sheet :D
0

#11 User is offline   Caleb 

  • Super WinMatrixian
  • Icon
  • Group: WM Members
  • Posts: 1,672
  • Joined: 11-August 04

Posted 25 October 2004 - 04:24 AM

Awesome job :D
0

#12 User is offline   Siraka_Serion_Semi 

  • S3
  • Icon
  • Group: Global Moderator
  • Posts: 2,222
  • Joined: 02-March 04

Posted 25 October 2004 - 06:31 AM

Nice skin installer
0

#13 User is offline   Virus Smith 

  • ..not an agent.
  • Icon
  • Group: WM Members
  • Posts: 1,707
  • Joined: 10-October 03

Posted 25 October 2004 - 09:15 PM

This is a must have tool for all the Firefox users
Thanks for the code man
0

#14 User is offline   FX Soldier 

  • FX
  • Icon
  • Group: WM Members
  • Posts: 1,677
  • Joined: 01-April 04

Posted 26 October 2004 - 01:07 AM

WOW. Thank you :rolleyes:
0

#15 User is offline   Sushee XP 

  • Super WinMatrixian
  • Icon
  • Group: WM Members
  • Posts: 1,224
  • Joined: 15-April 04

Posted 26 October 2004 - 11:13 PM

That's nice. Thank you very much
0

  • (3 Pages)
  • +
  • 1
  • 2
  • 3


Fast Reply

This post will need approval from a moderator before this post is shown.
  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users