Firefox extension inject script before loading any page -


I wrote Firefox extensions to inject some scripts and CSS on all the web pages loaded while expanded.

So far, everything works fine as soon as I open a new page that loads it into script and CSS is injected. But what I need is that the extension is loading in front of the page.

Example; I am loading the page with my extension, I am customizing this page. Now I see the Twitter page first, then the extension loads and my changes apply to the intent page.

What I want is the opposite I want to load everything in detail first, so whenever the Twitter page loads, it appears directly with my custom changes.

Currently I'm using the following lines to implement the script / styles. Although I want to get the "Content script" set, it will not fix my problem.

  Include: '*', contentScriptFile: [data.url ('jq.js'), Data.url ('js.js')], ContentTablefile: data.it ("css.css"), content script when: 'Start',  

I have solved this problem. As soon as my index page loads, I am loading the Twitter Intent (TI) page in the background.

While the TI page is full, it stops again. The page is now in the cache, the next time TI loads, everything is immediately corrected

You can get more information about background loading here:

This Bela has shown how I did the trick;


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -