Created
May 21, 2015 08:42
-
-
Save christianhaller/38300f62edd5e226fd47 to your computer and use it in GitHub Desktop.
redirect paywall haz.de
This file contains 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"> | |
<!--\\ | |
(function(){var a='article';var b={"article":"20","gallery":"10"}; | |
if(typeof(a)!='undefined'){if(b[a]){var ref=document.referrer;if(ref.match(/^(https|http)?:\/\/([^\/]+\.)?(facebook\.com|twitter\.com|t\.co|bitly\.com|bit\.ly|xrow\.com)(\/|$)/i)){window.location.href='/paidcontent/metered'+window.location.pathname;}}}}()); | |
//--> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment