User:Theopolisme/afch-ffu.js

//////////////////////////////////////////// // Yet another AfC helper script //////////////////////////////////////////// // Home page and documentation:  // Development:  //////////////////////////////////////////// // if ((wgPageName.indexOf('Wikipedia:Articles_for_creation') !== -1) || (wgPageName.indexOf('Wikipedia_talk:Articles_for_creation') !== -1) || (wgPageName.indexOf('Wikipedia:Files_for_upload') !== -1) || (wgPageName.indexOf('User:*') !== -1)) { importScript('User:Timotheus Canens/displaymessage.js'); var afchelper_baseurl = '//' + mw.config.get('wgServer') + '/w/index.php?action=raw&ctype=text/javascript&title=User:Theopolisme/afch-ffu.js'; mw.loader.load(afchelper_baseurl + '/core.js'); var afcHelper_advert = ' (AFCH)'; var pagetext = ''; var usertalkpage = ''; function afcHelper_escapeHtmlChars(original) { return original.replace(/&/g, "&amp;").replace(//g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");	}

if (wgPageName.indexOf('Wikipedia:Articles_for_creation/Redirects') !== -1) { mw.loader.load(afchelper_baseurl + '/redirects.js'); } else if (wgPageName.indexOf('Wikipedia:Files_for_upload') !== -1) { mw.loader.load(afchelper_baseurl + '/ffu.js'); } else if ((wgPageName.indexOf('Wikipedia:Articles_for_creation/') !== -1)				|| (wgPageName.indexOf('Wikipedia_talk:Articles_for_creation/') !== -1)				|| (wgPageName.indexOf('User:') !== -1)				|| (wgPageName.indexOf('User_talk:') !== -1)				){ mw.loader.load(afchelper_baseurl + '/submissions.js'); } } //