Skip to content

Loading…

Inject content scripts in already opened tabs at launch #129

Closed
gorhill opened this Issue · 1 comment

1 participant

@gorhill

As per Chrome store feedback:

Found a minor flaw with blocking specific elements on a page. Basically, if you have chrome to open a specific website when launched, it won't work properly until the webpage is refreshed. For example, let's say I blocked a sidebar in Facebook. Set chrome to open Facebook when launched and relaunch chrome. The sidebar won't be blocked until Facebook is refreshed.

@gorhill

My answer:

That would be gorhill/uBlock#108. Unfortunately, there is no guaranteed fix for this one, the browser doesn't wait for extensions to fully load before opening a tab, by design. There might be extensions out there which purpose is to manage tabs, and maybe one of them has a feature to prevent tabs from opening at launch unless you ask for it. I could try to inject content scripts into existing pages, but that would address only the cosmetic filters part (assuming this works anyways).

@gorhill gorhill added a commit that closed this issue
@gorhill gorhill this fixes #129 5cd14ce
@gorhill gorhill closed this in 5cd14ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.