User:Kynikos.bot/common.js

From ArchWiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
// Wiki Monkey: https://github.com/kynikos/wiki-monkey/wiki/
wikiMonkeyConfig = {
  update_check_wdays: [0, 1, 2, 3, 4, 5, 6],
  update_check_branch: 'develop',
  ArchWikiSortContacts: {enabled: true},
  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.5.3/dist/WikiMonkey-ArchWiki.min.js');
  });
});