MediaWiki:Common.js
MediaWiki interface page
More actions
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');
});