Comments (3)
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 [email protected]
on 10 Nov 2009 at 7:48
- Changed state: Accepted
from foxreplace.
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\[email protected]\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 [email protected]
on 10 Jan 2011 at 7:56
Attachments:
from foxreplace.
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 [email protected]
on 3 Aug 2013 at 4:53
- Changed state: Fixed
- Added labels: Component-Logic
from foxreplace.
Related Issues (20)
- make url/script replacement per list rather than global
- i know this is for issues, but you ever make this for chrome? HOT 2
- feature request: Add option to set style for replaced text
- fox replace works on page, but not the comment section (bug?) HOT 1
- backup and restore HOT 1
- Feature request: Substitution rule folders HOT 2
- doesnt work in ffox when opening pdf files from local computer/directory HOT 1
- Foxreplace doesn't find words inside shadow dom HOT 3
- ECMAscript regex not implemented in exactitude: is there a FoxReplace regex style available? HOT 3
- With firefox nightly (android), foxreplace export doesn't work HOT 1
- Request for clarification about lists of replacements
- Regular expressionss with matching groups HOT 2
- Document how to access the Plugin HOT 1
- Adding Colors to Changes HOT 4
- Keyboard shortcuts no longer work with 2.6.0 HOT 2
- URL replacements do not work anymore after the latest update
- Older version HOT 2
- fox replace having issue replacing word starting with period "." and doesn't replace them HOT 3
- In Discord browser tabs, replacements only happen for me. HOT 1
- When using the function replace option, the p1, p2, …, pN and group parameters don't work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foxreplace.