views:

28

answers:

2

Is it possible to run a user script before the page and DOM loads?

A: 

Only if the user script runs on google chrome atm. Greasemonkey may support this too someday:

// ==UserScript==
// @name My script
// @description It's really neat
// @run-at document-start
// ==/UserScript==
Erik Vold
+1  A: 

As Erik Vold said, Greasemonkey cannot do this unless the browser is Chrome.

But, if this functionality is needed on any other browser, you can write an extension.

Brock Adams