maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N800 (https://talk.maemo.org/forumdisplay.php?f=25)
-   -   How to remove a line in about:config? (https://talk.maemo.org/showthread.php?t=14722)

vinscuzzy 2008-01-09 19:03

How to remove a line in about:config?
 
I was messing around with a script in greasemonkey that required adding a useragent override line in about:config. Now I cant figure out how to delete the line I added. I got around it by setting the preference with no value, but I really wanna learn how to delete the line altogether. I read on the pc version you can right-click to delete, but that obviously doesnt work on the n800. Any thoughts?

iamthewalrus 2008-01-09 19:20

Re: How to remove a line in about:config?
 
- install nano
- close the browser
- open xterm and type:
Code:

cd  .mozilla/microb/
cp  prefs.js prefs.js.backup
nano prefs.js

- delete the line with the particular setting
- save the file (ctrl-x, y)

Or if you want all the default settings back:

- close the browser
- open xterm and type:
Code:

rm  .mozilla/microb/prefs.js

vinscuzzy 2008-01-09 19:48

Re: How to remove a line in about:config?
 
thanks! i used the restore default settings. I originally tried the first option, installed nano, typed what you said, but my inexperience with x-term got me stuck. Couldnt find the line I added. That was actually the first time I used xterm. Noob in the house!!!! Again thanks for the quick response!!

iamthewalrus 2008-01-09 20:17

Re: How to remove a line in about:config?
 
No prob. I hope they change Microb such that you can delete/reset all settings from within the browser.

namtastic 2008-01-09 22:00

Re: How to remove a line in about:config?
 
Or...

Code:

cd  .mozilla/microb/
cp  prefs.js prefs.js.backup
ln -s ./prefs.js ~/MyDocs/.documents/prefs.js.txt

Now you can use the Notes application to edit your prefs.js file which now appears in the Documents folder. :)


All times are GMT. The time now is 22:39.

vBulletin® Version 3.8.8