home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 2875
Discussions: 188,379, Posts: 2,243,461, Members: 232,607
Old October 21st, 2008, 01:32 PM   Digg it!   #1 (permalink)
Ultimate Member
 
CujoRbd's Avatar
 
Join Date: Oct 2001
Location: Everywhere
Posts: 1,050
Make Firefox search plug-ins convert string to lower case

I wanted Firefox to take what I put into the search bar and make it lowercase before sending it to the search engine.

I do this because one of the search engines I point to is case-sensitive, although all of the queries I send will only return a value if the query is all lower-case. It's an odd database system, but unfortunately I don't have admin access to modify it myself.

Note that I am using Firefox 2, but this should also be applicable to FF3. I'll update if the instructions are too different.

I did accomplished this by modifying the following chrome component:

file: <APPLICATION FOLDER>\chrome\browser.jar\content\browser\search\ search.xml

*NOTE: Replace "<APPLICATION FOLDER>" with the path to Firefox's installation.

method: handleSearchCommand
change from: [var textValue = textBox.value;]
change to: [var textValue = textBox.value.toLowerCase();]


Let me know if you have any feedback... I just wanted to share this since I found it useful.

CujoRbd is offline   Reply With Quote
Old October 21st, 2008, 02:02 PM     #2 (permalink)
Ultimate Member
 
CujoRbd's Avatar
 
Join Date: Oct 2001
Location: Everywhere
Posts: 1,050
I made it slightly more intellgent:

file: <APPLICATION FOLDER>\chrome\browser.jar\content\browser\search\ search.xml

*NOTE: Replace "<APPLICATION FOLDER>" with the path to Firefox's installation.

method: handleSearchCommand
change from: [var textValue = textBox.value;]
change to: [var textValue = textBox.value.replace("KB","kb");
textValue = textValue.replace("TN","tn");]

This just basically replaces instance of the specific letters that I know will always be lower-case in the database; I noted a few entries (migrated from an old database) that DID make use of upper-case letters, so that's why I use this method now.

CujoRbd is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
(TUTORIAL)TechIMO Search FireFox Search Engine Add-On "Heatmiser" General Tech Discussion 0 July 20th, 2005 09:04 PM
Plug ins norty Graphic Design and Digital Photography 2 May 13th, 2004 10:57 AM
photoshop plug-ins soulja General Tech Discussion 7 August 12th, 2003 10:25 AM
WinAmp plug-ins? How?? John Prophet Multimedia and Audio 4 December 5th, 2002 02:38 PM
Extracting Fonts and Plug-Ins Envision Graphic Design and Digital Photography 4 May 14th, 2002 01:35 PM

Most Active Discussions
Is It Just Me? (2885)
The United States Debt (20)
Looks like Burris will get his Sena.. (8)
I think I just killed my computer w.. (24)
Upgrading RAM (5)
Folderchat Weekday thread (439)
Antec 300 bulk purchase? (11)
Worth the upgrade?? (14)
Help with an Ati Radeon HD 4850 512.. (25)
Recent Discussions
Best digital camera for under 2.. (14)
Help with an Ati Radeon HD 4850.. (25)
Install Problem for Windows Def.. (0)
New Build ( Finally ) (1)
dual monitors wont boot (0)
Folderchat Weekday thread (439)
MSN Hotmail Down??? (7)
Laptop waking up itself (0)
CPU wont boot (3)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 08:39 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28