自动检测Medium文章(包括子域名和自定义域名),替换URL为readmedium.com来解锁Medium付费文章
< 脚本Medium解锁 (2023-12-06更新)的反馈
if (document.body.outerHTML.lastIndexOf("cdn-client.medium.com") < 0) { return; }
document.body can be null as document-start.
document.body
document-start
Please consider to use MutationObserver.observe(document) to trigger the checking when document.body is ready, or document-idle
MutationObserver.observe(document)
document-idle
登录以发表回复。
Code Minor Issue
document.body
can be null asdocument-start
.Please consider to use
MutationObserver.observe(document)
to trigger the checking whendocument.body
is ready, ordocument-idle