User talk:SD0001/private-sandbox.js
Appearance
@SD0001: This is similar to User:BrandonXLF/TestWikitext, right? 1234qwer1234qwer4 (talk) 19:24, 1 September 2020 (UTC)
- similar, yeah. I wasn't of that script before. Looking at its code, though, it looks like it's mainly meant for testing (as the title says). It uses the browser localStorage, which means anything you write on one computer won't be available when you switch to another one. Also, the localStorage isn't reliable for storing a large amount of content. This script uses mw.user.options, which eliminates both issues. โ SD0001 (talk) 20:13, 1 September 2020 (UTC)
- @SD0001: Thanks for the information; I've added the script to the list. ๐๐ค๐ฏ๐บ๐ช๐ค๐๐๐ท๐ฎ๐ฅ๐๐บ๐ด๐๐๐ฐ (๐๐ฎ๐ญ๐ ) 11:56, 3 September 2020 (UTC)
@SD0001: mw.config.get('wgPageName') !== 'Special:PrivateSandbox' && mw.config.get('wgPageName') !== 'Special:BlankPage/PrivateSandbox'
only works on English-language projects; could you please replace that by mw.config.get('wgNamespaceNumber') !== -1 || mw.config.get('wgTitle') !== 'PrivateSandbox' && mw.config.get('wgTitle') !== 'BlankPage/PrivateSandbox'
to make the script globally usable? Thanks. ๐๐ค๐ฏ๐บ๐ช๐ค๐๐๐ท๐ฎ๐ฅ๐๐บ๐ด๐๐๐ฐ (๐๐ฎ๐ญ๐ ) 18:59, 1 November 2020 (UTC)
- @1234qwer1234qwer4: Could you please do that? I know I could fork the script into my own userspace, but keeping everything in one place is cleaner in my opinion. ๐๐ค๐ฏ๐บ๐ช๐ค๐๐๐ท๐ฎ๐ฅ๐๐บ๐ด๐๐๐ฐ (๐๐ฎ๐ญ๐ ) 21:49, 26 December 2020 (UTC)