Merry Christmas from the IIWiki Team! Have a happy new year!
MediaWiki:VectorPlus.js: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
$(function(){ | $(function(){ | ||
// Check if the elements exist | |||
if (!$('#t-whatlinkshere').length || !$('#t-recentchanges').length || !$('#t-permalink').length || !$('#t-info').length) { | |||
return; | |||
} | |||
// Create a dropdown menu for the tools | |||
$('<div id="p-custom-tools" class="vector-menu vector-menu-dropdown">').append( | |||
$('<h3>').text('Tools'), | |||
$('<div class="menu">').append( | |||
$('#t-whatlinkshere, #t-recentchanges, #t-permalink, #t-info') | |||
) | |||
).insertAfter('#ca-history'); | |||
}) | |||
}) |
Revision as of 01:39, 23 February 2024
$(function(){
// Check if the elements exist
if (!$('#t-whatlinkshere').length || !$('#t-recentchanges').length || !$('#t-permalink').length || !$('#t-info').length) {
return;
}
// Create a dropdown menu for the tools
$('<div id="p-custom-tools" class="vector-menu vector-menu-dropdown">').append(
$('<h3>').text('Tools'),
$('<div class="menu">').append(
$('#t-whatlinkshere, #t-recentchanges, #t-permalink, #t-info')
)
).insertAfter('#ca-history');
})