MediaWiki:Common.js: Difference between revisions
Appearance
Replaced content with "→Any JavaScript here will be loaded for all users on every page load.: " Tags: Replaced Manual revert |
No edit summary |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
$(function () { | |||
// Make sure we're in Vector 2022 skin | |||
if (mw.config.get('skin') !== 'vector-2022') return; | |||
// Wait until the personal tools are ready | |||
mw.util.addPortletLink( | |||
'vector-user-links', // ID of the top-right user links menu in Vector 2022 | |||
'/wiki/ReportAnimalAbuse', // Change to your target page or external URL | |||
'🐾 Report Abuse', | |||
'pt-reportabuse', | |||
'Report animal abuse', | |||
null, | |||
'#pt-login' // Insert before the "Log in" link | |||
); | |||
}); |
Revision as of 03:49, 21 April 2025
/* Any JavaScript here will be loaded for all users on every page load. */ $(function () { // Make sure we're in Vector 2022 skin if (mw.config.get('skin') !== 'vector-2022') return; // Wait until the personal tools are ready mw.util.addPortletLink( 'vector-user-links', // ID of the top-right user links menu in Vector 2022 '/wiki/ReportAnimalAbuse', // Change to your target page or external URL '🐾 Report Abuse', 'pt-reportabuse', 'Report animal abuse', null, '#pt-login' // Insert before the "Log in" link ); });