0

I have seen "@run-at document-start" and "contentScriptWhen: 'start' " in Firefox extension(or userscript).

All these statements are used to run some scripts, while the web page starts loading in Firefox.

Now I want to run my script at document start in Opera extension (or userscript).

How to catch this start event in Opera browser?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Mmh
  • 399
  • 1
  • 5
  • 16

1 Answers1

1

What you want is actually the default behaviour of opera user javascript.

  • Gotcha #1: your script must have .js extension, and not .user.js
  • Gotcha #2: when you use .js userscript you have to manually listen for loading events.

But, imho the price for the power you get - is not that high ;)

c69
  • 19,951
  • 7
  • 52
  • 82