About user scripts in beta 3
Wednesday, March 16, 2005 9:22:11 PM
Hallvord introduced Opera's latest surprise for tweakers in his Journal.
What is a user script
Basically it is a script from a local file that gets executed before any other scripts (or event handlers) on the page, once in every document.
Enabling user script in Opera 8 beta 3
The script has exactly the same restrictions as a script on the page, except that it can access some User JS specific functionality (we'll get back to you on that) and that it can read the text property on any script element (normal scripts can't read the text property of external scripts loaded from other servers than the document.)
The additional privileges are available when the User JS file is initially executed and when a User JS event is being handled. Global functions defined by User JS but called from a script in the page have no special privileges.