Skip to content

Instantly share code, notes, and snippets.

Avatar

Christian Haller christianhaller

View GitHub Profile
View Verlage im Internet: Jahr 2015
<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>
@christianhaller
christianhaller / old school
Created Jun 10, 2013
before javascript was cool!
View old school
<script language="JavaScript">
<!--
function MM_findObj(n, d) { //v3.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
You can’t perform that action at this time.