I need to replace specific text, in a URL, using Greasemonkey.
For example, if the page is:
http://adf.st/?u=https%3A%2F%2Finstagram.com%2Fp%2F4XOVEaD5Ca%2F
Then the script will use the following URL:
http://adfa.cc/?u=https%3A%2F%2Finstagram.com%2Fp%2F4XOVEaD5Ca%2F
Note: The rest of the text after adf.st/
is not fixed.
This is a standard-ish problem; use the pattern below.
The
@match
line is set to the old domain, andnewDomain
is set to the desired domain.