Jump to content

User:Vislupus/common.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
mw.loader.getState('ext.gadget.rtrc') ? mw.loader.load('ext.gadget.rtrc') : (mw.loader.state( { "ext.gadget.rtrc": "loading" } ), mw.loader.load('https://www.mediawiki.org/w/load.php?debug=false&modules=ext.gadget.rtrc&lang=bg' + mw.config.get('wgUserLanguage', 'bg')));
var quickRollback_confirm = true;

mw.vars.use("EditToolbar.buttons")
.set("advFixAll", ["if (confirm('Приемане на всички предложения на Advisor?\\n"
    + "Използвайте „Показване на промените“ преди да запишете!')) fixAll()", "A*",
    "Приемане на всички предложения на Advisor"]);

function fixAll() {
    var a = $('a:contains(поправи)')[0];
    if (a) {
        a.click();
        setTimeout(fixAll, 300);
    }
}

window.quickDiffConfig = {
    keys: {
        close: '4',
        patrol: '3',
        rollback: '5',
        up: 'r',
        down: 'f',
        upUnpatrolled: 'e',
        downUnpatrolled: 'd'
    }
};
//importScript('MediaWiki:Gadget-Quick patrol.js');
importScript('Потребител:V111P/js/QuickDiffCommands.js');