Editing MicroB tweaks

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 5: Line 5:
It is possible to tweak the performance and behaviour of MicroB. Please continue to read for some suggestions.
It is possible to tweak the performance and behaviour of MicroB. Please continue to read for some suggestions.
-
MicroB, being a [[:wikipedia:Mozilla|Mozilla]] based browser, has the same settings as Firefox. These settings are stored in the file <code>/home/user/.mozilla/microb/prefs.js</code>. Only a few of these settings can be changed from the MicroB menus. To change the others open the URL <code>about:config</code> in MicroB to edit them one-by-one, or edit <code>prefs.js</code>. It is better not to edit <code>prefs.js</code> directly but to touch <code>user.js</code> instead. All configuration of <code>user.js</code> will be added to <code>prefs.js</code> during start-up!
+
MicroB, being a [[:wikipedia:Mozilla|Mozilla]] based browser, has the same settings as Firefox. These settings are stored in the file <code>/home/user/.mozilla/microb/prefs.js</code>. Only a few of these settings can be changed from the MicroB menus. To change the others open the url about:config in MicroB to edit them one-by-one, or edit prefs.js.
== Settings ==
== Settings ==
-
Even though many of the settings only make sense on a notebook or desktop PC, there are some that can be useful for the Internet Tablets.
+
Even though many of the settings only make sense on a notebook or desktop pc, there are some that can be useful for the Internet Tablets.
Removes cookies when closing MicroB (allow only for session). This only applies to new cookies. To also delete earlier cookies go to Tools -> clear ->cookies in MicroB:
Removes cookies when closing MicroB (allow only for session). This only applies to new cookies. To also delete earlier cookies go to Tools -> clear ->cookies in MicroB:
Line 50: Line 50:
To edit it on the tablet itself:
To edit it on the tablet itself:
 +
 +
* if you don't have root access already install 'rootsh' through the application manager
 +
* if you don't have 'nano' installed get it with application manager
 +
* close all MicroB windows
 +
* open xterm
 +
sudo gainroot
 +
invoke-rc.d tablet-browser-daemon stop
 +
exit
 +
cd .mozilla/microb
 +
cp prefs.js prefs.js.backup
 +
nano prefs.js
-
<ol>
+
* scroll to the line you want to change/add and type the changes. Be careful to use the exact format user_pref("nameofthesetting", thevalue); . If you leave out one ';' , '(' etc. then the settings in the file will be ignored by MicroB. If a setting does not exist then add it yourself.
-
<li>
+
* to save the file click ctrl, x, y, return.
-
if you don't have [[root access]] already install 'rootsh' through the application manager
+
sudo gainroot
-
</li>
+
invoke-rc.d tablet-browser-daemon start
-
<li>
+
exit
-
if you don't have 'nano' installed get it with application manager
+
-
</li>
+
-
<li>
+
-
close all MicroB windows
+
-
</li>
+
-
<li>
+
-
open xterm
+
-
<pre>
+
-
sudo gainroot
+
-
invoke-rc.d tablet-browser-daemon stop
+
-
exit
+
-
cd .mozilla/microb
+
-
cp prefs.js prefs.js.backup
+
-
nano prefs.js
+
-
</pre>
+
-
</li>
+
-
<li>
+
-
scroll to the line you want to change/add and type the changes. Be careful to use the exact format:<pre>user_pref("nameofthesetting", thevalue);</pre>If you leave out one '<code>;</code>' , '<code>(</code>' etc. then the settings in the file will be ignored by MicroB. If a setting does not exist then add it yourself.
+
-
</li>
+
-
<li>
+
-
to save the file click ctrl, x, y, return.
+
-
<pre>
+
-
sudo gainroot
+
-
invoke-rc.d tablet-browser-daemon start
+
-
exit
+
-
</pre>
+
-
</li>
+
-
</ol>
+
   
   
-
If you decide to edit <code>prefs.js</code> on your own computer be sure to:
+
If you decide to edit prefs.js on your own computer be sure to:
-
* run as root:<pre>invoke-rc.d tablet-browser-daemon stop</pre> before editing and <pre>invoke-rc.d tablet-browser-daemon start</pre> after editing.
+
* run as root "invoke-rc.d tablet-browser-daemon stop" before editing and "invoke-rc.d tablet-browser-daemon start" after editing.
-
* use an editor that uses Unix-style line endings
+
* use an editor that uses linux style line endings
* restore the right permissions and ownership of the file when you put it back
* restore the right permissions and ownership of the file when you put it back
Line 98: Line 81:
Replaced:
Replaced:
-
* snav.keyCode.modifier
+
* snav.keyCode.modifier
-
* general.useragent.locale
+
* general.useragent.locale
-
* general.useragent.vendor
+
* general.useragent.vendor
Randomly replaced with the value from plugins.flashhack:
Randomly replaced with the value from plugins.flashhack:
-
* ftv.enabled
+
* ftv.enabled
-
* snav.ignoreTextFields
+
* snav.ignoreTextFields
-
* snav.disableJS
+
* snav.disableJS
-
* layout.full.zoom.mode.fast
+
* layout.full.zoom.mode.fast
-
* plugin.default_plugin_disable
+
* plugin.default_plugin_disable
-
* security.warn_entering_secure
+
* security.warn_entering_secure
-
* security.warn_leaving_secure
+
* security.warn_leaving_secure
-
* security.warn_submit_insecure
+
* security.warn_submit_insecure
For any such setting, you can use bookmarks to
For any such setting, you can use bookmarks to
Line 119: Line 102:
== How to restore the default settings==
== How to restore the default settings==
-
If you mess up <code>prefs.js</code> or just want the defaults back then either restore the backup file you just made, or delete <code>prefs.js</code> file so MicroB will regenerate it with default settings.
+
If you mess up prefs.js or just want the defaults back then either restore the backup file you just made, or delete prefs.js file so MicroB will regenerate it with default settings.
to restore the backup:  
to restore the backup:  
-
close all MicroB windows, and run:
+
* close all MicroB windows
-
<pre>
+
sudo gainroot
-
sudo gainroot
+
invoke-rc.d tablet-browser-daemon stop  
-
invoke-rc.d tablet-browser-daemon stop  
+
exit
-
exit
+
cd .mozilla/microb
-
cd .mozilla/microb
+
cp prefs.js.backup prefs.js
-
cp prefs.js.backup prefs.js
+
sudo gainroot
-
sudo gainroot
+
invoke-rc.d tablet-browser-daemon start
-
invoke-rc.d tablet-browser-daemon start
+
exit
-
exit
+
-
</pre>
+
-
...or to delete <code>prefs.js</code>:
+
...or to delete prefs.js:
-
close all MicroB windows,a dn run:
+
* close all MicroB windows
-
<pre>
+
sudo gainroot
-
sudo gainroot
+
invoke-rc.d tablet-browser-daemon stop  
-
invoke-rc.d tablet-browser-daemon stop  
+
rm /mozilla/microb/prefs.js
-
rm /mozilla/microb/prefs.js
+
invoke-rc.d tablet-browser-daemon start
-
invoke-rc.d tablet-browser-daemon start
+
exit
-
exit
+
-
</pre>
+
== Also see ==
== Also see ==
Line 152: Line 131:
* [http://browser-extras.garage.maemo.org Browser-Extras, for MicroB extensions]
* [http://browser-extras.garage.maemo.org Browser-Extras, for MicroB extensions]
 +
[[Category:Users]]
[[Category:Web]]
[[Category:Web]]
[[Category:Power users]]
[[Category:Power users]]
 +
 +
 +
IT IS BETTER TO NOT EDIT prefs.js directly but to touch and user.js. All configuration of user.js will be added to prefs.js during start-up!

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)