User talk:PiRSquared17/twinkle-beta.js
Add topicAppearance
From Meta, a Wikimedia project coordination wiki
Latest comment: 4 years ago by PiRSquared17 in topic Uncaught ReferenceError: Morebits is not defined
This error popped up a few times in the last 12hrs so I suspect its been misconfigured by certain users. Would be great if you added a check at the top and exited the script if that is undefined
e.g.
(function () if (typeof Morebits === 'undefined' ) { return; } ... }())
Thanks in advance! Jdlrobson (talk) 18:29, 8 August 2020 (UTC) Reply
- @PiRSquared17: this is becoming more problematic and I need to do something about it. I'd like to propose copying the contents of this wiki page to User:PiRSquared17/twinkle-beta-main.js and then changing the body of User:PiRSquared17/twinkle-beta.js to
if (typeof Morebits !== 'undefined' ) { mw.loader.getScript('mw.loader.getScript('https://meta.wikimedia.org/w/index.php?title=User:PiRSquared17/twinkle-beta-main.jss&action=raw&ctype=text/javascript'); }
Can you please let me know if you have a better solution? Jon (WMF) (talk) 16:07, 27 August 2020 (UTC) Reply
- @Jon (WMF): Sorry, I didn't see the notification before. I haven't maintained this script in years, and I'd be surprised if it still works at all. I'd recommend replacing references to it with another more actively maintained global Twinkle script, User:Xiplus/TwinkleGlobal.js. PiRSquared17 (talk) 13:52, 28 August 2020 (UTC) Reply