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

From ArchWiki
Jump to navigation Jump to search
(Wiki Monkey 5.0.0)
m (update backup standalone Wiki Monkey)
Line 16: Line 16:
 
     url: 'https://localhost:13502/WikiMonkey-ArchWiki.min.js',
 
     url: 'https://localhost:13502/WikiMonkey-ArchWiki.min.js',
 
   }).fail(function() {
 
   }).fail(function() {
     mw.loader.load('https://rawcdn.githack.com/kynikos/wiki-monkey/v5.0.0/dist/WikiMonkey-ArchWiki.min.js');
+
     mw.loader.load('https://rawcdn.githack.com/kynikos/wiki-monkey/v5.0.1/dist/WikiMonkey-ArchWiki.min.js');
 
   });
 
   });
 
});
 
});

Revision as of 14:30, 10 February 2019

// 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.1/dist/WikiMonkey-ArchWiki.min.js');
  });
});