|
|
| Line 1: |
Line 1: |
| $(document).ready(function () {
| |
| console.log("✅ Common.js is loading and attempting to insert link...");
| |
|
| |
|
| // Create new link
| |
| var $customLink = $('<li><a href="/index.php/Special:RecentChanges">Recent Changes</a></li>');
| |
|
| |
| // Wait a bit for the Chameleon menu to render
| |
| setTimeout(function () {
| |
| var menu = $('.cmln-personal-tools .dropdown-menu');
| |
| if (menu.length) {
| |
| menu.append($customLink);
| |
| console.log("✅ Custom link added to personal tools menu.");
| |
| } else {
| |
| console.warn("⚠️ Personal tools dropdown not found.");
| |
| }
| |
| }, 500); // Slight delay to ensure menu has rendered
| |
| });
| |
| /* Optional tweaks to footer logo */
| |
| #footer .mw-logo-icon {
| |
| width: 50px; /* adjust size as needed */
| |
| height: auto;
| |
| margin-right: 10px;
| |
| }
| |