KangoExtensions / kango

Kango framework issue tracker
74 stars 7 forks source link

JavaScrit and CSS before load #6

Closed christianromeni closed 10 years ago

christianromeni commented 12 years ago

Is there going to be a way tom implement JS and CSS before the website is completely loaded? I would like to modify a website, but the old style would be displayed before, and I dont want that.

akrylysov commented 12 years ago

Impossible in v0.9.8, but we will add ability to run content scripts before DOMContentLoaded event in future versions.

christianromeni commented 12 years ago

Good to hear that... Do you have an estimate when this will happen?

akrylysov commented 12 years ago

No exact ETA right now (we need some research work in IE and FF), will update this issue when some details will be available.

christianromeni commented 12 years ago

That would be really great.... If this is available I'll use Kango for my Projects....Even if IE is left out for the moment :)

krutikashah commented 11 years ago

Any updates? I was looking for a way to be able to intercept and/or block resource requests before the DOMContentLoaded event.
Thanks

akrylysov commented 11 years ago

Any updates? I was looking for a way to be able to intercept and/or block resource requests before the DOMContentLoaded event.

Not implemented yet, but you will not be able to intercept and/or block resources even if you can load your content script before DOMContentLoaded.

akrylysov commented 10 years ago

Implemented for Chrome, Firefox, Opera, Safari in Kango 1.3.0.

christianromeni commented 10 years ago

Finaly!!! Top! :) Thx a lot.

akrylysov commented 10 years ago

You are welcome, new version will be avaliable in two weeks.

garoevans commented 10 years ago

Is there any documentation on how to do this? I have the following but it doesn't seem to do what I wanted:

{
    "content_scripts": [
        {
            "js": "initiate.js",
            "run_at": "document_start"
        },
        "listener.js"
    ],

UPDATE:

Think I found it @run-at document-start