Issue #3 - getAttribute in Chrome
This commit is contained in:
parent
5ea10b1d22
commit
2779528560
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user