User:Vjudge1/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.
// Hack for Wikiplus
mw.config.get2 = mw.config.get;
mw.config.get = function(config) {
    var r = mw.config.get2(config);
    if (config === 'wgUserGroups') {
        r.push('autoconfirmed');
    }
    return r;
};

mw.loader.load('https://wikiplus-app.smartgslb.com/Main.js');
localStorage.Wikiplus_SendStatistics = 'False';
localStorage.Wikiplus_Settings = '{"defaultSummary": ""}';

// Auto summary
(mw.config.get('wgAction') === 'edit' && document.getElementById('wpSummary').value === '') && (document.getElementById('wpSummary').value = '=');