feat: auto-click free option on paywall
This commit is contained in:
parent
95f519b9d3
commit
133b91bee5
1 changed files with 13 additions and 0 deletions
13
content.js
Normal file
13
content.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
const observer = new MutationObserver(() => {
|
||||
const overlay = document.querySelector('.payok__wrap');
|
||||
if (!overlay) return;
|
||||
|
||||
const freeRadio = overlay.querySelector('input[name="pay-ok"][value="ok"]');
|
||||
const submitBtn = overlay.querySelector('button.payok__submit');
|
||||
if (!freeRadio || !submitBtn) return;
|
||||
|
||||
freeRadio.click();
|
||||
setTimeout(() => submitBtn.click(), 100);
|
||||
});
|
||||
|
||||
observer.observe(document.body, { childList: true, subtree: true });
|
||||
Loading…
Reference in a new issue