User:Theo's Little Bot/afch/afchelper.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* Uploaded from https://github.com/WPAFC/afch, commit: 19abc698b10fe4990439153d3e686c1c3de2873e (develop) */
////////////////////////////////////////////
// Yet another AfC helper script
////////////////////////////////////////////
// Home page and documentation: <http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Articles_for_creation/Helper_script>
// Development: <https://github.com/WikiProject-Articles-for-creation/afch>
////////////////////////////////////////////
//<nowiki>
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) || (wgPageName.indexOf('Draft:') !== -1)) {
	var afchelper_baseurl = mw.config.get('wgServer') + mw.config.get('wgScript') + '?action=raw&ctype=text/javascript&title=User:Theo%27s Little Bot/afch/afchelper.js';
	mw.loader.load(afchelper_baseurl + '/core.js');
}
//</nowiki>