MediaWiki:Common.js: Difference between revisions
Appearance
Created page with " // Scroll to top on page load or refresh window.addEventListener('load', function() { window.scrollTo({ top: 0, behavior: 'smooth' }); }); →--- VERIFIED BADGE SCRIPT (Twitter-style, inline with title) ---: mw.loader.using('mediawiki.util').then(function () { $(function () { const verifiedPages = [ 'Narendra_Modi', // Add more verified page names here ]; const currentPage = mw.config.get('wgPageName'); if (verifiedPages.includes(curr..." |
Replaced content with " // Scroll to top on page load or refresh window.addEventListener('load', function() { window.scrollTo({ top: 0, behavior: 'smooth' }); });" Tag: Replaced |
||
| Line 3: | Line 3: | ||
window.addEventListener('load', function() { | window.addEventListener('load', function() { | ||
window.scrollTo({ top: 0, behavior: 'smooth' }); | window.scrollTo({ top: 0, behavior: 'smooth' }); | ||
}); | }); | ||
Revision as of 02:42, 2 December 2025
// Scroll to top on page load or refresh
window.addEventListener('load', function() {
window.scrollTo({ top: 0, behavior: 'smooth' });
});