User:Kynikos/common.js

From ArchWiki
< User:Kynikos
Revision as of 14:30, 10 February 2019 by Kynikos (talk | contribs) (update backup standalone Wiki Monkey)
Jump to navigation Jump to search

Note: After saving, 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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
// 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');
  });
});