Can anyone help me figure out why this JS code doesn't work? Note: I am on desktop, I know this won't work on phone.
Here is the page from where I copied the code: https://dev.fandom.com/wiki/SpoilerAlert
Here is what I pasted to MediaWiki:Common.js (and it has been approved):
/* Spoilers */
dev:SpoilerAlert/code.js
window.SpoilerAlertJS = {
question: 'This area contains spoilers. Are you sure you want to read it?',
yes: 'Yes',
no: 'No',
fadeDelay: 1600
};
Here is the source code, that is supposed to make it so that a part of the page is covered with a dialog to prevent spoilers.
<div id="SpoilerAlert">*''"I'm going to add a spoiler script soon, so don't edit this part in the meanwhile." - Zrenjaninac''</div>
But in reality, this didn't do anything, even though my JS was approved.
Here is the page in question: https://happytreefriends.fandom.com/wiki/Too_Much_Scream_Time