MediaWiki:Common.js
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.
$(function () { console.log('[ReportAbuseLink] Running (Forced Float)...'); // Check if already exists if (document.getElementById('report-abuse-button')) return; // Create the link const link = document.createElement('a'); link.id = 'report-abuse-button'; link.href = mw.util.getUrl('Report_Animal_Abuse'); link.textContent = '🐾 Report Abuse'; // Style the link link.style.position = 'fixed'; link.style.top = '10px'; link.style.right = '10px'; link.style.backgroundColor = '#c00'; link.style.color = '#fff'; link.style.padding = '8px 12px'; link.style.borderRadius = '8px'; link.style.fontWeight = 'bold'; link.style.zIndex = '9999'; link.style.textDecoration = 'none'; link.style.boxShadow = '0 2px 6px rgba(0,0,0,0.3)'; // Insert into body document.body.appendChild(link); console.log('[ReportAbuseLink] Floating button inserted.'); });