Difference between revisions of "MediaWiki:Common.js"

From Fall of Eden
Jump to navigation Jump to search
(Blanked the page)
 
Line 1: Line 1:
function readCookie(e,t,n,r){if(cookies){return cookies[e]}t=document.cookie.split("; ");cookies={};for(r=t.length-1;r>=0;r--){n=t[r].split("=");cookies[n[0]]=n[1]}return cookies[e]}function checkAge(e){var t=readCookie("ageCheck");if(!t){window.location.href="age.html?url="+encodeURIComponent(e)}return t}function setCookie(e,t,n,r){var i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3);var s="expires="+i.toGMTString();document.cookie=e+"="+t+"; "+s+"; path=/";if(!r){r="http://wiki.ganked.me"}window.location.href=decodeURIComponent(r)}var cookies;var QueryString=function(){var e={};var t=window.location.search.substring(1);var n=t.split("&");for(var r=0;r<n.length;r++){var i=n[r].split("=");if(typeof e[i[0]]==="undefined"){e[i[0]]=i[1]}else if(typeof e[i[0]]==="string"){var s=[e[i[0]],i[1]];e[i[0]]=s}else{e[i[0]].push(i[1])}}return e}();document.onload=checkAge(document.URL)
+
 

Latest revision as of 19:54, 22 November 2016