foxreplace icon indicating copy to clipboard operation
foxreplace copied to clipboard

Delayed execution on pageload

Open GoogleCodeExporter opened this issue 10 years ago • 8 comments

Hi,

I'm using foxreplace on a site where it doesn't work on pageload, so I have to 
manually press F2 on each page. If your "auto-replace on pageload" option had 
the ability to add a delay, I would add 500 milliseconds and that would 
probably make it work.

It's not that important, I am fine pressing F2 plenty of times, but of course 
an automated solution would be preferable.

Original issue reported on code.google.com by [email protected] on 23 Apr 2011 at 3:04

GoogleCodeExporter avatar Aug 21 '15 18:08 GoogleCodeExporter

Ok, this is easy to do.

Original comment by [email protected] on 24 Apr 2011 at 12:58

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

GoogleCodeExporter avatar Aug 21 '15 18:08 GoogleCodeExporter

[deleted comment]

GoogleCodeExporter avatar Aug 21 '15 18:08 GoogleCodeExporter

If you add this, your application will work for comments on Facebook. I am 
awaiting this feature, thank you.

Original comment by [email protected] on 25 Apr 2013 at 2:55

GoogleCodeExporter avatar Aug 21 '15 18:08 GoogleCodeExporter

So it should be a "timer to apply FoxReplace replacement after the page is 
fully loaded", did I get it ?

I've a newbie question, but, maybe the problem is you are replacing the words 
when the loading is over. Maybe you should apply the changes before all the 
javascript crap go on in the party ? I suppose it's the conflict between the 
plugin and the scripts working at the same time that causes the issue, nope ?

Original comment by [email protected] on 2 Jun 2013 at 2:34

GoogleCodeExporter avatar Aug 21 '15 18:08 GoogleCodeExporter

The addon and the scripts don't work at the same time, they run in a certain 
order, but I don't know which order it is, i.e., if a page has a script bound 
to the load event I don't know if that script is executed before or after the 
substitutions, and I don't know if the order is the same every time or if it 
can vary. But last time I checked, I couldn't force a specific order, so it was 
impossible to ensure that the substitutions are applied before the scripts in 
the page are executed.

Original comment by [email protected] on 3 Jun 2013 at 8:51

GoogleCodeExporter avatar Aug 21 '15 18:08 GoogleCodeExporter

A timer could be a workaround, tho, not beautiful.

...Mhm, could it be possible to "don't replace" the things that are used by 
scripts, basically ?

Original comment by [email protected] on 3 Jun 2013 at 10:21

GoogleCodeExporter avatar Aug 21 '15 18:08 GoogleCodeExporter

Well, that's an entirely different question. What would be the goal of not 
replacing things used by scripts? Anyway I don't know how to detect which 
things are or will be used by scripts and which not.

Original comment by [email protected] on 4 Jun 2013 at 8:34

GoogleCodeExporter avatar Aug 21 '15 18:08 GoogleCodeExporter

In my case the annoying script is loaded from an <iframe>, so... The sites I'm 
watching are terrible, let's kill them all... Mhm.

Thats quite sad, I really love your addon, but it freezes the 1/4 of the sites 
I know using scripts :/

Original comment by [email protected] on 4 Jun 2013 at 8:18

GoogleCodeExporter avatar Aug 21 '15 18:08 GoogleCodeExporter