Thanks Aaron, it works great. The spacing of the UserScript headers is wrong at the bottom of this page though: http://dev.chromium.org/developers/design-documents/user-scripts Also, I found out you have to use the space bar to separate "@run-at" from "document-start". You can't use the tab key.
Charles. On 3/7/09, Aaron Boodman <[email protected]> wrote: > I had the syntax wrong of the UserScript header. Here is a version that > works: > > // ==UserScript== > // @run-at document-start > // ==/UserScript== > > alert('foo'); > > (on Chrome dev channel) > > - a > > On Fri, Mar 6, 2009 at 2:15 PM, Charles L. <[email protected]> wrote: >> >> On Mar 3, 7:09 am, Aaron Boodman <[email protected]> wrote: >>> We have an earlyinjectionpoint now. Please see this documentation for >>> details: >>> >>> http://dev.chromium.org/developers/design-documents/user-scripts >>> >>> Let me know how it works for you. >> >> >> Thanks, Aaron. Actually it doesn't work on my end. Here's my test >> script: >> >> >> >> >> //== UserScript == >> // @name My script >> // @description It's really neat >> // @match * >> // @run-at document-start >> //== /UserScript == >> >> alert("Now"); >> >> >> >> >> I try to load Google News for instance, and I get the alert only once >> the page is fully loaded. Can you try on your end please? Do you know >> what may be causing this? >> Thanks, >> >> Charles. >> >> >> > -- Charles-André Landemaine. --~--~---------~--~----~------------~-------~--~----~ Chromium Discussion mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-discuss -~----------~----~----~----~------~----~------~--~---
