Difference between revisions of "User:Kynikos/common.js"

From ArchWiki
Jump to navigation Jump to search
m (change port)
(Wiki Monkey 5.0.0)
Line 1: Line 1:
 +
// Wiki Monkey: https://github.com/kynikos/wiki-monkey/wiki/
 
wikiMonkeyConfig = {
 
wikiMonkeyConfig = {
    update_check_wdays: [0, 1, 2, 3, 4, 5, 6],
+
  update_check_wdays: [0, 1, 2, 3, 4, 5, 6],
    update_check_branch: 'develop',  
+
  update_check_branch: 'develop',
    ArchWikiSaveTalk: {enabled: true,
+
  ArchWikiWantedCategories: {enabled: true},
                      page: "User:Kynikos/Tasks"},
+
  DeletePages: {enabled: true}
    ArchWikiWantedCategories: {enabled: true},
 
    DeletePages: {enabled: true}
 
 
}
 
}
//mw.loader.load('https://rawcdn.githack.com/kynikos/wiki-monkey/v4.2.1/dist/WikiMonkey-ArchWiki.min.js');
+
$.ajax({
//mw.loader.load('https://rawcdn.githack.com/kynikos/wiki-monkey/v4.2.1/auxiliary/WikiMonkey-local.js');
+
  dataType: 'script',
mw.loader.load('https://localhost:13502/WikiMonkey-local.js');
+
  cache: true,
 +
  url: 'https://localhost:13504/WikiMonkey-local.js',
 +
}).fail(function() {
 +
  $.ajax({
 +
    dataType: 'script',
 +
    cache: true,
 +
    url: 'https://localhost:13502/WikiMonkey-ArchWiki.min.js',
 +
  }).fail(function() {
 +
    mw.loader.load('https://rawcdn.githack.com/kynikos/wiki-monkey/v5.0.0/dist/WikiMonkey-ArchWiki.min.js');
 +
  });
 +
});

Revision as of 16:35, 5 December 2018

// Wiki Monkey: https://github.com/kynikos/wiki-monkey/wiki/
wikiMonkeyConfig = {
  update_check_wdays: [0, 1, 2, 3, 4, 5, 6],
  update_check_branch: 'develop',
  ArchWikiWantedCategories: {enabled: true},
  DeletePages: {enabled: true}
}
$.ajax({
  dataType: 'script',
  cache: true,
  url: 'https://localhost:13504/WikiMonkey-local.js',
}).fail(function() {
  $.ajax({
    dataType: 'script',
    cache: true,
    url: 'https://localhost:13502/WikiMonkey-ArchWiki.min.js',
  }).fail(function() {
    mw.loader.load('https://rawcdn.githack.com/kynikos/wiki-monkey/v5.0.0/dist/WikiMonkey-ArchWiki.min.js');
  });
});