Skip to content

Woundorf/foxreplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

45d46d7 · Jan 3, 2024
Aug 23, 2023
Oct 5, 2017
Aug 23, 2023
Aug 23, 2023
Jul 30, 2019
Jan 3, 2024
Aug 21, 2023
Mar 13, 2017
Nov 13, 2016
Oct 31, 2016
Aug 5, 2023
Nov 23, 2018
Jan 3, 2024
Nov 23, 2018
Aug 4, 2008
Oct 5, 2017
Jan 3, 2024
Oct 5, 2017
Aug 4, 2008

Repository files navigation

FoxReplace

FoxReplace allows you to replace text fragments in a page by other text fragments. The system is based in substitutions: a substitution consists in a text which has to be replaced (identified as "Replace") and a text by which the first has to be replaced (identified as "With"). All substitutions are always applied over the whole content of a page (you can't do partial substitutions at the moment). Substitutions can be case-sensitive or insensitive. The use of regular expressions is also supported.

You can have predefined substitutions in a substitution list to apply them all at once, and also do individual substitutions. You also have the option to apply the substitution list automatically whenever a page is loaded.

Install From AMO

Replace with Function

  • Syntax: JavaScript
  • The provided input will run as the return statement to string.replace and can use the same variables mentioned in MDN
    • Example:
      • Replace: dino(saur)
        • Regular Expression
      • With: "great big " + match + " biga" + p1.toUpperCase()
        • Function
      • Result: great big dinosaur bigaSAUR