Content deleted Content added
mNo edit summary |
mNo edit summary |
||
Line 30:
// Load user's settings.
var page = `User:${mw.config.get("wgUserName")}/InsertShortcutsSettings.js`;
var loadFrom = us_InsertShortcuts_loadFrom === undefined ? null : `https://${us_InsertShortcuts_loadFrom}.org/w/api.php`;
this.getWikitext(page, wikitext =>
{
if(wikitext.startsWith("!!REDIRECT"))
{
this.getWikitext(page, wikitext =>
{
Line 47 ⟶ 48:
this.inserts = wikitext.replace(/\\\n/g, "").split("\n");
}
}, null, null, loadFrom);
},
|