Difference between revisions of "MediaWiki:Common.js"
From Yo-Kai Watch Wiki
(3 intermediate revisions by the same user not shown) | |||
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. */ | ||
+ | /* | ||
if ($('.mw-headline:first').length > 0) { | if ($('.mw-headline:first').length > 0) { | ||
console.log('exists') | console.log('exists') | ||
+ | $('.mw-headline:first').parent().after('test test') | ||
} else { | } else { | ||
console.log('do not exist') | console.log('do not exist') | ||
+ | $('#firstHeading').after('test2 test2') | ||
} | } | ||
− |
Latest revision as of 02:48, 4 January 2021
/* Any JavaScript here will be loaded for all users on every page load. */ /* if ($('.mw-headline:first').length > 0) { console.log('exists') $('.mw-headline:first').parent().after('test test') } else { console.log('do not exist') $('#firstHeading').after('test2 test2') }