maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Mods ]Browser Mods (https://talk.maemo.org/showthread.php?t=50644)

dsawhney 2010-04-21 18:21

Re: [Mods ]Browser Mods
 
Quote:

Originally Posted by MiK546 (Post 620984)
Is there any way to add a new value in N900. I would like to add "nglayout.initialpaint.delay", as descripted in here as this makes Firefox show everything as soon as they are loaded and therefore make it a lot faster.

You can manually add the value in ~/.mozilla/fennec/*.default/prefs.js. Make sure to backup the file first.

salawat 2010-04-21 19:34

Re: [Mods ]Browser Mods
 
the mod for searching google at normal view works only when typing words then hitting the enter button however when you tap the bit where it says for example im searching for maemo. the bit where it says Google Search: 'maemo' when you tap that it still searches in mobile mode. how can i take tht off and make it normal view

TomJ 2010-04-21 20:33

Re: [Mods ]Browser Mods
 
Quote:

Originally Posted by lifenexus (Post 620710)

Address bar Google search.

By default, when you type anything in the address bar and press enter, it searches in google mobile which can be annoying. If u want it to search in google desktop, go back to about:config,
in the filter type, "keyword".
click on "keyword.url" and press enter. change the tect to
Code:

http://www.google.com/search?btnG=Google+Search&q=
If u want it to use "im feeling lucky" ie, when you search for anythin it wll dip theirst website from sarch results automatically,
change the smae keyword.url to
Code:

http://www.google.com/search?btnI=I%27m+Feeling+Lucky&q=

(Taken wholesale from my post in the main mod thread, and with due credit to the posters who did most of the work, noted below)

It is possible to make the default web browser's address bar search use more than just google, a la Opera or (I'm told) Firefox.

What to do:

Download this file to your N900, prefereably to the Documents folder.

In XTerminal enter the command

Code:

mv MyDocs/.documents/search.txt search.htm
(NB If you saved to a folder other than Documents from the webbrowser MyDocs/.documents will need to be changed to the requisite path)

In the web browser go to the page about:config
Read the "Here be dragons" warning and promise to be careful.

Find the setting keyword.URL by typing key into the filter box at the top of the page. Select the line keyboard.URL by tapping it and press enter.

Put
Code:

file:///home/user/search.htm?
in the dialogue box that appears and tap Done.

Now when you type a search into the address bar you can choose the following search engines by prefixing them with the letters lited below:

go - regular Google search (not mobile!)
wiki - wikipedia
map - Google Maps UK
ebay - eBay UK
php - PHP manual
mysql - MySQL manual
acronym - acronymfinder.com
urban - urbandictionary.com

(eg ebay n900 in the address bar will seach ebay.co.uk for an N900, wheras wiki n900 will search wikpedia)

You can add to or edit the choice of engines by editing search.htm - I would advise using pygtkeditor, which I think any serious modder should have installed unless they like vim or emacs. I, for instance, have edited the line
Code:

urls['go']='http://www.google.com/search?q=%s';
to read
Code:

urls['g']='http://www.google.co.uk/search?q=%s';
which means that instead of typing
Code:

go foo
into the address bar to get a search for foo from the full-fat google.com I type
Code:

g foo
to search google.co.uk.

A further change I have made is to add the lines
Code:

urls['tt']='http://traintimes.org.uk/%s';
into the search engine list block of code and
Code:

redirUrl = redirUrl.replace(/%2F/g,"\/");
before the line
Code:

document.location.replace(redirUrl);
This allows you to replicate the bookmarkable search function for UK train journeys on the excellent traintimes.org.uk by typing, for instance
Code:

tt hitchin/york/1000/tomorrow
to search for tomorrow's departures from Hitchin to York at around 1000.
The second line of code needs to be added as else between the script and the browser / is replaced with %2F which confuses the website. For more on how to use this look at the traintimes.org.uk frontpage; you can click the iCal links from its search results to get the times entered into your n900 calendar.

Hat-tips to evad for coming up with the idea and Viqsi for the device-side rather than online evolution of the idea in this thread.

lifenexus 2010-04-22 01:40

Re: [Mods ]Browser Mods
 
i didnt know it was posted before. forgive me

lifenexus 2010-04-22 05:59

Re: [Mods ]Browser Mods
 
in the new fennec version, one can ad new values from the about config page

TomJ 2010-04-22 06:43

Re: [Mods ]Browser Mods
 
Quote:

Originally Posted by lifenexus (Post 621816)
i didnt know it was posted before. forgive me

No worries... the more people find out about the various tricks the better. Incidentally, I've found a page in the wiki about changing the default search which I've tidied up and added my little bit to.

lifenexus 2010-04-22 10:29

Re: [Mods ]Browser Mods
 
thx. ill experiment with configuration files and see what i can do

F2thaK 2010-04-22 11:44

Re: [Mods ]Browser Mods
 
Quote:

Originally Posted by mornage (Post 621363)
oh yeah, I did also adjust:

network.http.max-connections-per-server to 32
network.http.max-connections to 16

as shown here

it is

network.http.max-connections-per-server to 16
network.http.max-connections to 32

F2thaK 2010-04-22 11:57

Re: [Mods ]Browser Mods
 
anyone know where the microb config file is on the phone (i want to backup)

thx

euanandrews 2010-04-22 12:50

Re: [Mods ]Browser Mods
 
Woop woop!
Have def seen a speed increase in my browser....and I have changed the default Google Mobile search to Google New Zealand...nice


All times are GMT. The time now is 09:01.

vBulletin® Version 3.8.8