User:A. Amritesh/common.js

// importScript('User:SSethi (WMF)/Sandbox/SimpleUserScriptExamples.js'); mw.loader.using( 'oojs-ui-widgets','oojs-ui.styles.icons-movement' ).done(function{ var buttonIcon = new OO.ui.ButtonWidget( { icon: 'upTriangle', title: 'Up', classes:[ 'my-button'] } );   $( '#mw-content-text' ).after(buttonIcon.$element ); // buttonIcon.setIcon( 'upTriangle' ); $('.my-button').css('float','right'); buttonIcon.on('click', function{$(window).scrollTop(0);}); // .onClick(document.getElementById(firstHeading).focus({preventScroll:false})) });

$("span,code,p").on({ mouseenter: function{    $(this).css("background-color", "black");    $(this).css("color", "white");  },  mouseleave: function{    $(this).css("background-color", "white");    $(this).css("color", "black");  } });