您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
replace words
当前为
Here is small js script for word replacements.
Json config with replacements should be store at any web source.
[https://github.com/], [https://www.npoint.io/], find your source
config must be loaded on script start
load_config("https://some_source/my_config.json")
config looks this way:
{
"https://some_novel_site/my_novel/chapter_*": [
"效果", "属性",
"歐皇狀態", "运气状态"
],
"url2": [
"a.s.s.", "ass",
"/(\w)\.(\w)\.(\w)\./", "$1$2$3"
]
}
well, you reading some book and want to make book-specific replaces
current chapter is
https://tw.wa01.com/novel/pagea/lunhuileyuan-nayizhiwenzi_852.html
use *
, it solves 99% cases
https://tw.wa01.com/novel/pagea/lunhuileyuan-nayizhiwenzi_*
if you really have *
in your url (some extreme cases) - then escape it \*
https://tw.wa01.com/novel/\*/lunhuileyuan-nayizhiwenzi_*
/
/lunhuileyuan-nayizhiwenzi_.*/
[]^&$.()?/\+{}|*
withhttps:\/\/tw\.wa01\.com\/novel\/pagea\/lunhuileyuan-nayizhiwenzi_
/https:\/\/tw\.wa01\.com\/novel\/pagea\/lunhuileyuan-nayizhiwenzi_/
/https:\/\/tw\.wa01\.com\/novel\/pagea\/lunhuileyuan-nayizhiwenzi_.+/
[1][0-9]
- chapters 10 - 19/https:\/\/tw\.wa01\.com\/novel\/pagea\/lunhuileyuan-nayizhiwenzi_[1][0-9]/
they also supports regexp
"/(?:blue|green) shadow king/i", "Цин Ган Инь"
google javascript regex
if want more examples
script use function string.replaceAll(pattern, replacement)
modifier global g
auto inserted
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址