note to self....
Tuesday, June 06, 2006
Firefox Selected Text Color Fix
Okay, here's a solution to one that's been bugging me for awhile:
The problem is that Mozilla Firefox 1.x under SuSE 9.2 KDE 3.3 has some weirdness with the text select foreground / background color. The fix for this was found [tweaked] from
http://www.mozilla.org/unix/customizing.html#prefs.
This fix is documented on the
mozilla.org website for Mozilla, but this works [seems to] for
Mozilla Firefox [curr ver 1.5.0.4], as well.
The tweak was that my X server didn't like the color names that were used in the example from the website - not sure why "green" or "white" are not being mapped by the X RGB color database, but using the [somewhat] standard HTML color hex number format ('#rrggbb', where rr == red, gg == green, bb == blue, and each color is a 2-digit (8-bit) hexadecimal color component value) seems to work fine.
Note that this fix might be possible in the
${ff_user_app_dir}/chrome/userChrome.css file, but I haven't found the CSS definitions of Firefox user interface elements, yet. That should exist, I believe, but it may be wrapped some sort of XUL implementation verbiage.
Anyway - here are the pertinent entries from my newly created
${ff_user_prof_dir}/user.js file [user.js did not exist by default for Firefox - simply create it and add whatever of the available Javascsript UI style commands are desired - the page linked above has more examples]:
// Set select colors for text:
user_pref("ui.textSelectBackground", "#00ff00");
user_pref("ui.textSelectForeground", "#000000");
// Select color for typeahead find is slightly different:
user_pref("ui.textSelectBackgroundAttention", "blue");
// Not clear when/if widgetSelectBackground ever gets called: let's find out.
user_pref("ui.widgetSelectBackground", "orange");
Notes:
For the shell variables used above -
${ff_user_app_dir} - this is the user's application config and state directory (typically something like
$HOME/$USER/.mozilla/firefox/)
${ff_user_prof_dir} - this is the Firefox user profile directory (typically something like
$HOME/$USER/.mozilla/firefox/${profilename} where
${profilename} is a string randomly generated for the [default] profile when Firefox starts up - usually the first time.
Labels: 1.5, 3.3, 9.2, color, config, firefox, fix, hack, kde, linux, mozilla, rgb, suse, x
Monday, April 24, 2006
catastrophic Firefox 1.5.0.2 (Linux) failure - near miss
Apparently the
blogger.com | "Publish Status" | "Publishing in progress..." throbber page is causing memory leakage and ultimately crashage in Mozilla Firefox 1.5.0.2 (Linux) - I caught it when the CPU load was up to 37%, and the available RAM was down to around 20M (these numbers according to Gkrellm) - I killed it (successfully) before it locked up X, but I am becoming more convinced that it is page content like this that is crashing the bitch...
Labels: 1.5, firefox, linux, mozilla
Intrusive Firefox Extensions - and other stuff
Fukking Klipper! Goddess save us all, the Advertisers have learned what a browser extension is. Can the spyware spooks and the virus kiddies be far behind?
A little while ago, as Firefox 1.5.0.2 (Linux) was crashing spectacularly on one workstation (vertigo) - and this time w/o the help of any extensions or themes, i might add - I was browsing the
prefs.js file for another Firefox install on another workstation (spirit).
The first thing I noticed about the install on spirit (and this would have been true for the vertigo install until I blew away the user profile directory in an effort to get Firefox to quit locking up the X server) is that there are an entire assload of settings that are added by extensions, and (in one case) by something that is not even an extension (I think - still looking at this one).
The next thing I noticed was that certain of the settings contained information about me - or rather, about some things that were on my disc drive.
Some examples - not all of these are "intrusive", I suppose, but most of them are remarkable (in some way), to me:
- user_pref("extensions.lastAppVersion", "1.0");
- This one looks to me like an artifact of a prgramming error, probably in an extension. I mean, 'lastAppVersion' of *what*?
- browser.download.dir
- Well, this one seems to be part of the browser, but how much could an untrusted extension - or even an un-noticed Javascript - learn about the directory structure of the local drive from watching this and, say, browser.download.lastDir ?
- browser.startup.homepage_override.mstone, rv:1.7.12
- What is this? I didn't see it listed - maybe I need to look again...
- extensions.mediaplayerconnectivity.*
- Well, these seem to be heirarchaly correct, but - there are a few like '.playerpls, "/usr/bin/xmms" that could conceivably leak system information to other processes that have access to this file, or even to those who released mediaplayerconnectivity
- fgupdater.*
- The fgupdater creators didn't bother with the 'extensions' prefix ... neither did the flashgot guys, or the gmnotifier guys, or the menux guys - perhaps this is a point of disagreement amongst developers? Or maybe it's already been solved, and something here is obsolete?. More of these found are sessionsaver.*, stumble.*
- gm-notifier.users.default
- ... has my username for the service - and menux.editor.path has '/usr/bin/gedit' - need to change that, since I'm not sure this system even has gedit - isn't that some Gnomish editor thing?
- print.tmp.printerfeatures.printer.*
- A bunch of these - odd, considering this workstation has never known a printer.
- security.*
- Seems like a poor place for things like .warn_viewing_mixed setting - couldn't another app [extension] change the value from, say, "true" to "false"
- stumble.784508.interests
- user_pref("stumble.784508.last_incat", "0");
- user_pref("stumble.784508.last_stumble", "1133658391177");
- user_pref("stumble.784508.last_uploaded", "1133658738236");
- user_pref("stumble.784508.newmessage", false);
- user_pref("stumble.784508.nick", "zerohex");
- user_pref("stumble.784508.password", "eshoog");
- user_pref("stumble.784508.prefetch", true);
- user_pref("stumble.784508.referral_count", "0");
- user_pref("stumble.current_user", "784508");
- Bunch of stuff there I'm not entirely comfortable with .... username, password, secret numeric username [usernumber] ... Hmmm, I might want to rethink my use of the StumbleUpon extension...
- user_pref("update_notifications.provider.0.last_checked", 1129893293);
- Huh?
- user_pref("yahoo.photos.yphLastBrowseDir", "/home/zerohex/Pictures");
- Hmmm. Severe discomfort realizing that I am a Yahoo user, and Yahoo has thin scruples... I don't recall installing any Yahoo firefox extensions, though - I will have to look into that.
Interesting - Firefox Edit menu options don't seem to interoperate as expected with the Klipboard tool under KDE - more of Gnomish foolishness.
Labels: add-ons, extensions, firefox, howto, linux
Sunday, April 23, 2006
Fixing the telnet:// protocol handler in Firefox 1.5.0.2 (Linux)
I had some problems getting Firefox to accept/provide arguments to a protocol handler command entered in the about:config page [see
previous post for about:config settings], but I have found a workaround, and posted a HOWTO document about it. See:
HOWTO Enable Telnet URI Handling in Firefox.
The gripe here is that telnet://host.name:portnum/ URLs didn't work by default in Firefox. The HOWTO gives a fix.
Labels: bash, config, firefox, hack, howto, linux, protocol, script, telnet, x11, xterm
Firefox about:config settings for telnet: URLs
Thursday, April 20, 2006
About a Day
Well, it seems like it's been about a day now, and wurx is still up and running - have not started Mozilla Firefox this session. Posting this under Opera 8.52 -
Went so far before now - okay here it is:
a) Firefox 1.0.7 with various extensions and themes loading was crashing a not-quite-stock install of whatever X server shipped with SuSE 9.2
2) Remove 1.0.7 and install Newest Whizbang 2.5.0.2 or something
[NOTE: Couldn't figure out how to do a system-wide, multi-user install for the newest Firefox - may want to look into that later - running local this time]
3) Only a few extensions plugged in this time.
BANG) it didn't work anyway.
So what do YOU think. This is not life it is a SOAP-OPERA
For the record, just a few moments ago,
$uptime
10:01pm up 10:29, 3 users, load average: 0.05, 0.31, 0.31
Labels: 10.07, 2.5, add-ons, crash, extensions, firefox, linux, mozilla, opera, problem, suse
Wednesday, February 15, 2006
Firefox Memory Leak Workaround
From a
comment on the
Slashdot discussion
Firefox Memory Leak is a Feature (bracketed info is from other posts in the same thread) - these steps describe how to turn off the memory intensive tab history caching Firefox is doing:
[0. type '
about:config' in the Location bar to get the configuration settings page]
1. set
browser.sessionhistory.max_total_viewers to "
0"
2. It does (try opening a huge Fark photohop thread, huge as in multiple hundreds of pictures, see Firefox ramp up to 600 or 700Mb ram consumption, close the fark tab, see firefox' ram usage drop dramatically to regular ram usage levels)
[more info at
>mozillazine]
[some posts suggest this may not be available in versions before 1.5]
Labels: firefox
Archives
2004/09
2005/03
2005/04
2005/05
2005/06
2005/07
2005/08
2005/09
2005/10
2005/11
2006/01
2006/02
2006/04
2006/05
2006/06
2008/01
Subscribe to Posts [Atom]