How do I bust this frame buster?

344 views Asked by At

There's a Web page with this frame buster:

body {
  display: none;
}
if(top != self) {
  top.location = self.location;
} else {
  document.body.style.display = 'block';
}

I am trying to bypass this code in order to bust the frame buster. It's easy to make top.location = self.location not run, by setting a sandbox attribute on the iframe that doesn't include allow-top-navigation. However, that leaves the body hidden. How can I overcome that?

0

There are 0 answers