MediaWiki:Common.js: Difference between revisions
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 15: | Line 15: | ||
document.querySelector('#footer-places').append(susElement); | document.querySelector('#footer-places').append(susElement); | ||
alert('HELLO!!!'); | alert('HELLO 2!!!'); | ||
}); | }); | ||
alert('HELLO 1!!!'); | |||
/** END SUS */ | /** END SUS */ |
Revision as of 17:50, 6 January 2023
/* Any JavaScript here will be loaded for all users on every page load. */ /** SUS */ document.on('DOMContentLoaded', () => { const susElement = document.createElement('li'); susElement.id = "footer-places-sus"; const img = document.createElement('img'); img.src = "https://static.revolt.chat/emoji/fluent-3d/1f99d.svg?v=1"; img.width = "64px"; img.height = "64px"; susElement.append(img); document.querySelector('#footer-places').append(susElement); alert('HELLO 2!!!'); }); alert('HELLO 1!!!'); /** END SUS */