maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   User Javascript enabling on Opera (https://talk.maemo.org/showthread.php?t=7111)

aleksandyr 2007-06-30 21:20

User Javascript enabling on Opera
 
in /home/user/opera/opera.ini:

Code:

User JavaScript File=
User JavaScript=0

change to:

Code:

User JavaScript File=/home/user/user.js
User JavaScript=1

put the following in user.js:

Code:

alert("victory!");
Apologies if this is old news, but I couldn't find a reference to it anywhere.

The potential for this is extraordinary :)

YoDude 2007-06-30 22:26

Re: User Javascript enabling on Opera
 
indeed... rock on brother!

Bree 2007-07-01 00:43

Re: User Javascript enabling on Opera
 
I don't have an /opera folder in /home/user ....


edit::::

Found it and editing file now....
but is this javascript mod for n800?

I'm on 770....
no javascript in the file....

doctoss 2007-07-01 02:29

Re: User Javascript enabling on Opera
 
Does it work? Surely not this easy.

Bree 2007-07-01 02:31

Re: User Javascript enabling on Opera
 
not working for me... on 770

doctoss 2007-07-01 02:49

Re: User Javascript enabling on Opera
 
what is the alert (victory) stuff?

doctoss 2007-07-01 03:00

Re: User Javascript enabling on Opera
 
where is user.js?

YoDude 2007-07-01 03:29

Re: User Javascript enabling on Opera
 
Quote:

Originally Posted by doctoss (Post 55278)
where is user.js?


I believe you need to creat a user.js file in home/user

The file should contain the text Alek specified.
Code:

alert("victory!");
Quote:

To write your own User JavaScripts, use a text editor to create the JavaScript file, and save it in your User JavaScript directory. The file will be automatically loaded the next time a page is loaded in Opera. Opera does not need to be restarted to see any changes to User JavaScript files.
>> http://www.opera.com/support/tutorials/userjs/using/

doctoss 2007-07-01 03:36

Re: User Javascript enabling on Opera
 
Thanks, but I am new to linux and the n800. How do I create a file and how do I put script in it. Sorry, Thanks

doctoss 2007-07-01 04:06

Re: User Javascript enabling on Opera
 
I am trying to use vi, but to no success.


All times are GMT. The time now is 15:10.

vBulletin® Version 3.8.8