MediaWiki:Gadget-main-spoiler-warning-screen.js: Difference between revisions

No edit summary
Tag: Reverted
Undo revision 3327 by TadeLn (talk)
Tag: Undo
 
Line 14: Line 14:
window.rgwiki_main_spoilerWarningScreenWasShown = false;
window.rgwiki_main_spoilerWarningScreenWasShown = false;
findAndExecute(".rgwiki-main-show-spoiler-warning-screen", (trigger) => {
findAndExecute(".rgwiki-main-show-spoiler-warning-screen", (trigger) => {
     const acknowledgementDuration = 1 * 60 * 1000; // in ms, for how long should the spoiler stay hidden
     const acknowledgementDuration = 1 * 24 * 60 * 60 * 1000; // in ms, for how long should the spoiler stay hidden
     const pageName = window.mw.config.values.wgPageName;
     const pageName = window.mw.config.values.wgPageName;
     const now = Date.now();
     const now = Date.now();