LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 12-03-2004, 12:59 AM   #1
mcgrath0087
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 mozilla.org 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.)

cheers!



<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>
 
  


Reply


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 10:10 PM
installing themes in firefox chilehead Linux - Software 7 07-10-2005 12:28 PM
How to create Themes wh33t Linux - General 1 10-06-2004 11:56 PM
firefox won't change themes needforspeed Linux - Software 4 04-30-2004 12:18 PM
how to create icon themes for kde? anura Linux - Software 1 03-09-2004 04:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:16 PM.

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