Medium Unlocker (2023-12-06 updated)

Automatically detect Medium articles (including subdomains and custom domains) and replace the URL with readmedium.com to unlock Medium Posts.

< Feedback on Medium Unlocker (2023-12-06 updated)

Question/comment

Code Minor Issue

    if (document.body.outerHTML.lastIndexOf("cdn-client.medium.com") < 0) {
        return;
    }

document.body can be null as document-start.

Please consider to use MutationObserver.observe(document) to trigger the checking when document.body is ready, or document-idle

Post reply

Sign in to post a reply.