User:Cogitolibero/common.js

/* // see http://en.wikipedia.org/wiki/User:Lupin/autoedit.js // http://www.mediawiki.org/wiki/Extension:Autoedit

function getParamValue(paramName) { var cmdRe=RegExp('[&?]'+paramName+'=([^&]*)'); var h=document.location; var m; if (m=cmdRe.exec(h)) { try { return decodeURI(m[1]); } catch (someError) {} } return null; };

x = getParamValue("testing"); alert(x); //alert(wgPageName); importScript("User:Cogitolibero/swipe.js");