MediaWiki:Gadget-exchangePages-core.js
Revision as of 08:00, 16 February 2022 by Soulgazer (talk | contribs) (Created page with "//<nowiki> $('.gemw-button.secondary').each(function(i,e){ var txt = $(e).find('a').text(); var href = $(e).find('a').attr('href'); var button = new OO.ui.ButtonWidget({ label: txt, title: href }); button.$element.on('mousedown', function(){ window.open(href, '_blank'); }); $(e).parent().append(button.$element); $(e).remove(); }); var exchangeOverlay = $('<div>'); exchangeOverlay .css({position: 'relative', 'z-index': 100}) .attr('id', 'rsw-exchange-ov...")
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
//<nowiki> $('.gemw-button.secondary').each(function(i,e){ var txt = $(e).find('a').text(); var href = $(e).find('a').attr('href'); var button = new OO.ui.ButtonWidget({ label: txt, title: href }); button.$element.on('mousedown', function(){ window.open(href, '_blank'); }); $(e).parent().append(button.$element); $(e).remove(); }); var exchangeOverlay = $('<div>'); exchangeOverlay .css({position: 'relative', 'z-index': 100}) .attr('id', 'rsw-exchange-overlay') .appendTo('body'); //</nowiki>