Code-Injector icon indicating copy to clipboard operation
Code-Injector copied to clipboard

Automatic Injection Not Working

Open 0-SamboNZ-0 opened this issue 5 years ago • 4 comments

Hi @Lor-Saba,

This is a nice plugin and in theory does exactly what I need, but I have been unable to get auto-injection working.

I can manually inject the code and it works fine, but regardless of whether the 'on load' option is enabled or not, I can't get it auto-injecting.

Firefox 68.0.1 (64bit) Code-Injector 0.2.1

Any assistance you could give me to troubleshoot this issue would be greatly appreciated.

Thanks,

Sam.

0-SamboNZ-0 avatar Aug 01 '19 00:08 0-SamboNZ-0

I also have the same issue.

Code Injector v0.3.2 Firefox Developer 76.0b6 (64-bit)

bunnyroo avatar Apr 20 '20 17:04 bunnyroo

Same issue. Manually works, but never automatically when the site is loaded. It even shows the number of rules applied, but they are not really applied. I wouldn't even mind a keyboard shortcut to manually apply rules.

Chrome 96 64-bit Version 0.3.2

exportio avatar Nov 18 '21 19:11 exportio

Same here. Have to inject manually each time.

Edge 111.0.1661.62 (64-bit) on Linux

rejuvenator avatar Apr 06 '23 16:04 rejuvenator

Sometimes, with modern pages, onLoad is triggered before much of the content is actually loaded.

One work around that works is to add a delay, or to do so on a regular interval if the action is idempotent, or you can control undesired additional executions with a flag.

So for example:

function myFunction () {
   ...
}

// Execute the function immediately upon page load
myFunction();

// Then execute it every 5 seconds
myFunction(updateColors, 5000);

dankirkd avatar Aug 18 '23 19:08 dankirkd