User:KurwaAntics/global.js

/* ********** Load scripts ********** */ importArticles({   type: "script",    articles: [        //"u:dev:Wikimarks/code.js",        //"u:dev:View Source/code.js",        "u:dev:PurgeButton/code.js",        "u:dev:Colors/code.js",        "u:dev:QuickDiff/code.js",        "u:dev:EditIntroButton/code.js",        "u:dev:DisplayTimer/code.js",        "u:dev:PortableCSSPad/code.js",        //"u:dev:FindAndReplace/code.js"    ] });

$.get( '/wiki/User:KurwaAntics/shift-context-menu?action=render', function( data ) {   $(document).on('contextmenu',function(e){ var x = e.clientX; var y = e.clientY; if(e.shiftKey) { e.preventDefault; $('body').prepend(' '); $( "#shift-context-menu" ).html( data ); }   }); }); $(document).on('click',function(e){    $( ".context-menu" ).fadeOut.remove; });

mw.util.addCSS('.context-menu { position:fixed; background:white; font-size:14px; z-index:9999999; padding:0.5em 1em; line-height:150%; box-shadow: 2px 4px 8px rgba(0,0,0,0.25); }');