Skip to content

Instantly share code, notes, and snippets.

@christianhaller
Created May 21, 2015 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christianhaller/38300f62edd5e226fd47 to your computer and use it in GitHub Desktop.
Save christianhaller/38300f62edd5e226fd47 to your computer and use it in GitHub Desktop.
redirect paywall haz.de
<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