feat: auto-click free option on paywall

This commit is contained in:
Eddy de Vink 2026-05-20 04:17:12 +02:00
commit 133b91bee5

13
content.js Normal file
View 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 });