Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-03-2004, 01:59 AM   #1
LQ Newbie
Registered: Aug 2003
Posts: 15

Rep: Reputation: 0
create themes on firefox!

Well, since version 1.0 came out, I have been stuck with created themes. That just won't do. I stumbled on some code that will let you browse to your own .jar files, and swap out the theme. Paste into a text file, and open with firefox... browse to you .jar file, and voila instant theme.

Hopefully this helps out a few people.

What I have done is I downloaded the plastikfox theme, and swapped out the .png files for icons created in the 'sparkling' icon set. seems to match KDE perfectly now. (maybe there was an easier way to do this.)


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

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
No new themes allow in firefox raxxal SUSE / openSUSE 2 11-03-2005 11:10 PM
installing themes in firefox chilehead Linux - Software 7 07-10-2005 01:28 PM
How to create Themes wh33t Linux - General 1 10-07-2004 12:56 AM
firefox won't change themes needforspeed Linux - Software 4 04-30-2004 01:18 PM
how to create icon themes for kde? anura Linux - Software 1 03-09-2004 05:12 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration