Last active
December 17, 2015 08:38
-
-
Save girvan/5581123 to your computer and use it in GitHub Desktop.
blogger 404 page: put after <body>
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'> | |
//<![CDATA[ | |
(function(d,l){ | |
if(l.pathname.match(/^\/\d\d\d\d\/\d\d\/[\w\-]+\.html/) && d.title.indexOf(':')===-1) | |
{ | |
var html = unescape("%3Ciframe%20src%3D%27//www.google.com/404.html%27" | |
+ "%20width%3D100%25%20height%3D3000px%3E%3C/iframe%3E" | |
+ "%3Ctextarea%20style%3D%27display%3Anone%3B%27%20border%3D0%3E"); | |
d.body.style.overflow='hidden'; | |
d.title = 'Error 404: Not found'; | |
d.write(html); | |
} | |
})(document, location); | |
//]]> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment