ive got a small script im using at Firefox and Chrome,
it just changes the color of this page.
in Firefox it just works fine,
but in Chrome i can see the original color of the page first and seconds after that it changes.
Is that normal?
(How) can i change that?
Ive got no idea how to do it with a GM script, but here’s how to do it as a chrome extension….
manifest.json
new.css
Info on content scripts….
http://developer.chrome.com/extensions/content_scripts.html
Info on Chrome extensions….
http://developer.chrome.com/extensions/getstarted.html
If GM scripts have a
run_atequivalent then it needs to bedocument_startas its sounds like the css is getting injected atdocument_idlewhich will be after the dom/page is loaded. You want it before that so you dont see it change. Thats why I added!importantto every css rule in my answer, to make sure their not changed by any css that might come after yours.EDIT
Looked it up and there is a run_at variable, here’s the same as above but as a GM script….