Have you ever encountered a website on the Internet that uses a word or phrase that you dislike? Or maybe a site where a menu is too large to fit in the browser window because of a large name in it? Or maybe translate words from one language to another?
While you can try and use scripts for that, probably the best option comes in form of the FoxReplace extension for the Firefox web browser.
The extension allows you to replace any word or phrase that you encounter on a website, including that site's HTML code, with something else.
Once you have installed the extension and restarted Firefox it can be used right away. You have three distinct options to add or invoke replacements or substitutions for text on web pages:
Substitutions are added in the group editor. Here you can add one or multiple substitutions and assign urls on which they are applied on.
You can create plain text replacements, for instance Google Chrome to Chrome, but also more sophisticated ones. The input string supports plain text input but also regular expressions. The output string supports plain text as well, but also variables. If you add $% you will add the input string to it as well for example.
Make sure you check the enable box here, and select whether HTML is allowed in the source, target or in both.
The urls tab on the other hand lists all matching urls that the replacement operation is run on. If you leave it empty, it will be applied to all pages. You can use the hyphen character to exclude urls and the wildcard character to match one or multiple characters.
The main options menu allows you to prioritize replacement groups and to modify several other core features. Here you can define whether the replacements should happen automatically on page load or every x seconds, or only manually if you do not select either option.
Another option that is available on the page is to replace urls on the site as well. You can replace links and image sources this way which opens up interesting options. You can for instance add http://www.redirect.am/? in front of every outgoing link to hide your referrer from being shown on the target site.
Substitution groups can be imported from a local resource or url, and loaded periodically as well if you enable the functionality.
If you need to replace text on websites, then you may want to consider using FoxReplace for that as it offers a very comfortable option to do so.
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.