-
-
Save criptalis/73e85c93382fd8a131f409e0ebb18f1e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| // Source: Anti iFrame Buster in JavaScript | |
| var prevent_bust = 0; | |
| window.onbeforeunload = function() { prevent_bust++; } | |
| setInterval(function() { | |
| if (prevent_bust > 0) { | |
| prevent_bust -= 2; | |
| window.top.location = 'http://domain.com'; | |
| } | |
| }, 1); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment