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

From ArchWiki
Jump to navigation Jump to search
(Wiki Monkey needs to be updated manually because MediaWiki 1.33 broke it)
(Update Wiki Monkey to version 5.0.4)
 
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.3/dist/WikiMonkey-ArchWiki.min.js');
+
     mw.loader.load('https://rawcdn.githack.com/kynikos/wiki-monkey/v5.0.4/dist/WikiMonkey-ArchWiki.min.js');
 
   });
 
   });
 
});
 
});

Latest revision as of 16:14, 15 September 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.4/dist/WikiMonkey-ArchWiki.min.js');
  });
});