MediaWiki:Common.js/cookie.js

/* Any JavaScript here will be loaded for all users on every page load. */ function setCookie(name, value, expires) { var d = new Date; d.setDate(d.getDate + expires); document.cookie = name + '=' + escape(value) + ';path=/'; } function getCookie(name) { if (document.cookie.length > 0) { var start = document.cookie.indexOf(name + '='); if (start != -1) { start = start + name.length + 1; var end = document.cookie.indexOf(';', start); if (end == -1) { end = document.cookie.length; }			return unescape(document.cookie.substring(start, end)); } 	}	return ''; }

Leggi il resto a: http://it.onepiece.wikia.com/wiki/MediaWiki:Common.js/cookie.js#ixzz3D43jNDJc Under Creative Commons License: Attribution Share Alike