Automatically detect Medium articles (including subdomains and custom domains) and replace the URL with readmedium.com to unlock Medium Posts.
< 腳本Medium Unlocker (2023-12-06 updated)的回應
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.bodycan be null asdocument-start.Please consider to use
MutationObserver.observe(document)to trigger the checking whendocument.bodyis ready, ordocument-idle