Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.js

MediaWiki interface page

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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
//----- [ Improts ] -----//
mw.loader.load('/index.php?title=MediaWiki:Notice.js&action=raw&ctype=text/javascript');

//----- [ Pagination ] -----//
$(function() {
  $("span.no-blank-target").each(function() {
    $(this).closest("a").removeAttr("target").removeAttr("rel");
  });
});

// --- [ Home/Sidebar ] --- //
$(function () {
  $('.gtw-sidebar a.external').attr({
    target: '_blank',
    rel: 'noopener noreferrer'
  });
  $('.gtw-sidebar a.external.no-blank-target').removeAttr('target').removeAttr('rel');
});