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

תוכן שנמחק תוכן שנוסף
אין תקציר עריכה
אין תקציר עריכה
שורה 99:
importScript('user:IKhitron/infobox1.js');
 
mw.loader.using( 'oojs-ui-widgets' ).done(function(){
if (mw.config.get('wgCanonicalSpecialPageName') == 'Watchlist') {
var widgetsomebutton = new OO.ui.ButtonWidget({
label: 'somebutton',
title label: 'somebutton',
id title: 'somebutton',
label id: 'somebutton',
});
widgetsomebutton.on('click', somebutton);
$('h1')
$('h1')
.append(widgetsomebutton.$element);
}
 
function somebutton() {
jQuery.event.trigger( {
type: 'keypress',
altKey: true,
shiftKey: true,
which: 75
} );
}
});