-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Whether I'm using dillo+ or not, I often come across instances when it would be helpful to find-and-replace within html prior to rendering, whether it be global and automatic, or manually applied. For instance, it is often helpful to redirect urls to alternative frontends (such as is possible in browsers such as firefox/icecat with the privacy-redirect extension). This is especially true here as there is no javascript, but the redirect must be manually done except when starting from these alternatives already. In addition to utilitarian redirects for frontends, it would allow redirecting to a preferred wikipedia theme/skin without signing in, or do something humorous like the xkcd substitutions.
If manual only, it could be accessed from the tools menu, or perhaps using ^h, as is common in programs with replace features. If global/automatic, it might be accessed similarly, or from within dillorc.
If in dillorc, the substitutions might be defined by something like sed_command='[command(s)]', then dillo could run sed from the system with the variable from dillorc being the command(s). This would ensure the substitution behavior matches with what the user is accustomed to.