3 ms·
> Works Undetected > LIRA works in the background on any webpage. This is false. If you mutate the DOM on the page, you're trivially detectable. Unless this i
by lolinder 2y ago
> Works Undetected
> LIRA works in the background on any webpage.
This is false. If you mutate the DOM on the page, you're trivially detectable. Unless this is meant as a honeypot you should at least warn your users that you're only undetectable as long as the edtech sites don't care to try.
Courtesy of ChatGPT 4o mini:
const onPopupDetected = (node) => {
console.log('<lira-popup> element detected:', node);
};
const observer = new MutationObserver((mutationsList, observer) => {
for (const mutation of mutationsList) {
if (mutation.type === 'childList') {
mutation.addedNodes.forEach((node) => {
if (node.nodeName.toLowerCase() === 'lira-popup') {
onPopupDetected(node);
}
});
}
}
});
observer.observe(document.body, {
childList: true,
subtree: true,
});