Redirect specific sites by replacing part of the URL.
当前为
This script redirects user-specified URLs to new ones, by replacing part of the URL.
The settings live in the script's storage as JSON. Here's what the different pieces mean:
If your settings are as follows:
{
"replacePrefix": "/BIT/",
"replaceSuffix": "/",
"replaceTheseStrings": {
"1": "BLUE",
"2": "RED",
"4": "WHITE",
"9": "PURPLE"
}
}
The script will redirect https://www.google.com/BIT/1/asdf to https://www.google.com/BIT/BLUE/asdf, but will not change https://www.google.com/1/asdf (because it doesn't match the prefix).
Source: GitHub
Available on Greasy Fork for easy installation.