Greasy Fork is available in English.
从此类使用相同框架的漫画网站上下载免费或已付费的章节
script works fine in www.sunday-webry.com , doesn't see any problems
Can't reproduce your problem.
Sorry, after re-examination, this seems to be a bug that only occurs in Firefox.
Chrome130.0.6723.59 : OK
Firefox131.0.3 : NG
Greasemonkey is using v5.1.1 in both cases.
Maybe you can try Tampermonkey in Firefox?
I'm really sorry.
I'm using TamperMonkey, not Greasemonkey.
I wrote GreaseMoneky by mistake. (v5.1.1 does not exist in Greasemonkey).
Thanks for the update even though support is no longer available.
It seems that when running the script on a type B site,
buttonCSS
andxhr
may not work correctly because they are considered to have been accessed before initialization. I have only checked ttps://www.sunday-webry.com, so this may not be a problem elsewhere.I have made the following modifications.
Change 1. buttonCSS has been moved to the top of the addButton function.
Change 2. xhr moved before starting MutationObserver.
Translated using DeepL.
Sorry if it's not clear.