User:A. Amritesh/common.js

var params = { action: 'opensearch', search: 'Python', namespace: '0', format: 'json' },	api = new mw.Api;

api.get( params ).done( function ( data ) {	 function showGadgetUI {           var button = new OO.ui.PopupButtonWidget( { icon: 'menu', label: 'Python', popup: { $content: $( ' Python : ' + data  ), padded: true, anchor: false, align: 'forwards' }           } );

$( '#mw-content-text' ).prepend( button.$element ); } } );