Closed GoogleCodeExporter closed 9 years ago
Hi, this is because the HTML replacement is done on the body node instead of
the html
node. This was done in purpose to keep the head intact, but now I see that it
may be
a limitation as in your example. I will try to fix it for next version.
Original comment by marc.r...@gmail.com
on 10 Nov 2009 at 7:48
I helped my self by extending the code. I changed the "foxreplace.js" so that
the style sheet links in the "head" get replaced too. I attached the modified
"foxreplace.jar" for those ones which are interested.
You find this file in :
\Profiles\{windows user name}\Application
Data\Mozilla\Firefox\Profiles\{default.profile}\extensions\fox@replace.fx\foxrep
lace\chrome\foxreplace.jar
Modification:
foxreplace.jar\content\foxreplace.js
approx. line 322:
...
if (this.prefs.replaceUrls) {
valueNodesXpath += "|/html/body//a/@href"
+ "|/html/head//link/@href" // added
+ "|/html/head//script/@src" // added
+ "|/html/body//img/@src";
}
...
regards
Mark
Original comment by egloff.m...@gmail.com
on 10 Jan 2011 at 7:56
Attachments:
Assuming the problem was on HTML substitutions, as I understand from my
comment, then it was fixed on r168. If instead it was asking for replace URLs
to include stylesheets and scripts, as the last comment suggests (I don't know
if it's the same original poster, because it has a similar signature), then I
think it's out of the intended scope of non-HTML substitutions, which is to
change text on the body and the title (the scope could change, but currently
it's still this one).
For now, I will close the issue as fixed in r168.
Original comment by marc.r...@gmail.com
on 3 Aug 2013 at 4:53
Original issue reported on code.google.com by
data.deu...@gmail.com
on 6 Nov 2009 at 1:18