משתמש:IKhitron/common.js – הבדלי גרסאות

תוכן שנמחק תוכן שנוסף
אין תקציר עריכה
אין תקציר עריכה
שורה 101:
mw.loader.using( 'oojs-ui-widgets' ).done(function(){
if (mw.config.get('wgCanonicalSpecialPageName') == 'Watchlist') {
var cloned = $('.mw-rcfilters-ui-filterWrapperWidget-showNewChanges').clone();
var widgetsomebutton = new OO.ui.ButtonWidget({
cloned.attr("id", "newId");
label: 'somebutton',
$('.mw-rcfilters-ui-filterWrapperWidget-showNewChanges').after(cloned);
title: 'somebutton',
cloned.css({visibility: 'visible'});
id: 'somebutton',
});
widgetsomebutton.on('click', somebutton);
$('h1')
.append(widgetsomebutton.$element);
}
function somebutton() {
jQuery.event.trigger( {
type: 'keypress',
altKey: true,
shiftKey: true,
which: 75
// ctrlKey: true,
// which: 41
} );
}
});