Jump to content

User:Gryllida/js/afch/afch-helper.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.
////////////////////////////////////////////
// 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>
////////////////////////////////////////////
// CHANGES MADE:
// 1) default selected reason: custom
// 2) default comments text: from https://en.wikipedia.org/wiki/User:Gryllida/doc/AfC
// 3) User:Gryllida/js/afch/decline decline template to notify users
//<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') + '/w/index.php?action=raw&ctype=text/javascript&title=User:Gryllida/js/afch/afch-helper.js';
        mw.loader.load(afchelper_baseurl + '/core.js');
}
//</nowiki>