Re: Customizing Firefox Search.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/14/2013 07:03 AM, Daniel J Walsh wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Any know of a way to build a customized search into firefox.  Basically I want
to setup a search pull down which is hard coded to a particular site.

For example, add a menu item called
MyBlog

And what ever I put into the search window ends up going to google as

$SEARCHTEXT site:danwalsh.livejournal.com

Maybe something like this local page that you bookmark:

<!DOCTYPE html>
<html>
<script>
 function fix(){
   var field=document.getElementById('searchTerm');
   field.value+=" site:danwalsh.livejournal.com"
 }
</script>
<body>
 <form  name="input"
	action="https://google.com";
	method="get"
	onsubmit="fix()">
 Search: <input type="text" id="searchTerm" name="q">
	 <input type="submit" value="Submit">
 </form>
</body>
</html>

or use a functionally equivalent javascript in greasemonkey





--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux