User talk:SD0001/private-sandbox.js

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

@SD0001: This is similar to User:BrandonXLF/TestWikitext, right? 1234qwer1234qwer4 (talk) 19:24, 1 September 2020 (UTC)[reply]

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)[reply]
@SD0001: Thanks for the information; I've added the script to the list. ๐Ÿ™๐Ÿค๐Ÿฏ๐Ÿบ๐ช๐‘ค๐’†๐“‡๐Ÿท๐Ÿฎ๐Ÿฅ๐Ÿœ๐“บ๐”ด๐•–๐–—๐Ÿฐ (๐—๐—ฎ๐˜ญ๐™ ) 11:56, 3 September 2020 (UTC)[reply]

@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)[reply]

@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)[reply]