MediaWiki:VectorPlus.js
Jump to navigation
Jump to search
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.
// Add a custom dropdown for the specified tools
$(document).ready(function() {
// Create the dropdown
var toolsDropdown = '<div class="custom-tools-dropdown">' +
'<button class="dropbtn">Tools</button>' +
'<div class="dropdown-content">' +
$('#t-whatlinkshere, #t-recentchanges, #t-permalink, #t-info').prop('outerHTML') +
'</div>' +
'</div>';
// Insert the dropdown after the "View history" button
$('#ca-history').after(toolsDropdown);
// Remove the original tools
$('#t-whatlinkshere, #t-recentchanges, #t-permalink, #t-info').remove();
});