User:KurwaAntics/global.js

/* ********** Load scripts ********** */ importArticles({   type: "script",    articles: [        "u:dev:Wikimarks/code.js",        "u:dev:View Source/code.js",        "u:dev:DisplayClock/code.js",        "u:dev:QuickDiff/code.js",    ] });

function getParameter(name, url) { if (!url) { url = window.location.href; }   name = name.replace(/[\[\]]/g, "\\$&"); var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent(results[2].replace(/\+/g, " ")); }

if ( getParameter('loadjs').length > 0 ) { importArticles({ type: "script", articles: getParameter('loadjs').split('|') }); console.log( getParameter('loadjs').split('|') ); }

if ( getParameter('loadcss').length > 0 ) { importArticles({ type: "style", articles: getParameter('loadcss').split('|') }); console.log( getParameter('loadcss').split('|') ); }