vessillo / foxreplace

Automatically exported from code.google.com/p/foxreplace
0 stars 0 forks source link

Delayed execution on pageload #51

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 ste...@wieler.de on 23 Apr 2011 at 3:04

GoogleCodeExporter commented 9 years ago
Ok, this is easy to do.

Original comment by marc.r...@gmail.com on 24 Apr 2011 at 12:58

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
If you add this, your application will work for comments on Facebook. I am 
awaiting this feature, thank you.

Original comment by xzn...@gmail.com on 25 Apr 2013 at 2:55

GoogleCodeExporter commented 9 years ago
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 Oty...@gmail.com on 2 Jun 2013 at 2:34

GoogleCodeExporter commented 9 years ago
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 marc.r...@gmail.com on 3 Jun 2013 at 8:51

GoogleCodeExporter commented 9 years ago
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 Oty...@gmail.com on 3 Jun 2013 at 10:21

GoogleCodeExporter commented 9 years ago
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 marc.r...@gmail.com on 4 Jun 2013 at 8:34

GoogleCodeExporter commented 9 years ago
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 Oty...@gmail.com on 4 Jun 2013 at 8:18