Issue #3 - getAttribute in Chrome

This commit is contained in:
tobimori 2020-03-16 14:59:23 +01:00
parent 5ea10b1d22
commit 2779528560

View File

@ -19,8 +19,7 @@ const observer = new MutationObserver(function (mutations, me) {
}); });
// check if article is locked, then start the observer // check if article is locked, then start the observer
d.getElementsByTagName("meta")[1].getAttribute("name") == "isPremiumArticle" && d.getElementsByClassName("vrm-premium") &&
d.getElementsByTagName("meta")[1].getAttribute("content") == "1" &&
observer.observe(d, { observer.observe(d, {
childList: true, childList: true,
subtree: true subtree: true