Difference between revisions of "MediaWiki:Common.js"

From Yo-Kai Watch Wiki
Jump to: navigation, search
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) {
 +
console.log('exists')
 +
} else {
 +
console.log('do not exist')
 +
}
 
$('.mw-headline:first').parent().after('test test')
 
$('.mw-headline:first').parent().after('test test')

Revision as of 01:23, 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')
} else {
console.log('do not exist')
}
$('.mw-headline:first').parent().after('test test')