MediaWiki:Common.js: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 19: | Line 19: | ||
//coffee | //coffee | ||
$(document).ready(function () { | |||
var button = document.createElement('div'); | |||
button.innerHTML = '<a href="https://www.buymeacoffee.com/rajanyaofficial" target="_blank" style="position: fixed; bottom: 20px; right: 20px; background-color: #5F7FFF; color: white; padding: 12px 16px; font-family: Poppins, sans-serif; font-size: 14px; border-radius: 8px; text-decoration: none; box-shadow: 0 4px 6px rgba(0,0,0,0.2); z-index: 9999;">🛡️ Support Monthly</a>'; | |||
document.body.appendChild(button); | |||
}); | }); |
Revision as of 13:12, 10 July 2025
/* Any JavaScript here will be loaded for all users on every page load. */ // Google Analytics for GA4 (G-5MQXEFVQBE) var gtagScript = document.createElement("script"); gtagScript.src = "https://www.googletagmanager.com/gtag/js?id=G-5MQXEFVQBE"; gtagScript.async = true; document.head.appendChild(gtagScript); window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-5MQXEFVQBE'); // Remove View History tab & Recent Changes link for anonymous users if (!mw.config.get('wgUserName')) { $('#ca-history').remove(); // Removes history tab $('#n-recentchanges').remove(); // Removes recent changes link $('a[title="Special:RecentChanges"]').remove(); // Extra check } //coffee $(document).ready(function () { var button = document.createElement('div'); button.innerHTML = '<a href="https://www.buymeacoffee.com/rajanyaofficial" target="_blank" style="position: fixed; bottom: 20px; right: 20px; background-color: #5F7FFF; color: white; padding: 12px 16px; font-family: Poppins, sans-serif; font-size: 14px; border-radius: 8px; text-decoration: none; box-shadow: 0 4px 6px rgba(0,0,0,0.2); z-index: 9999;">🛡️ Support Monthly</a>'; document.body.appendChild(button); });