Jump to content

User talk:BrandonXLF

Add topic
From Meta, a Wikimedia project coordination wiki
Latest comment: 2 years ago by Krinkle in topic momentjs

Afrikaans | العربية | অসমীয়া | asturianu | azərbaycanca | Boarisch | беларуская | беларуская (тарашкевіца) | български | ပအိုဝ်ႏဘာႏသာႏ | বাংলা | བོད་ཡིག | bosanski | català | کوردی | corsu | čeština | Cymraeg | dansk | Deutsch | Deutsch (Sie-Form) | Zazaki | ދިވެހިބަސް | Ελληνικά | emiliàn e rumagnòl | English | Esperanto | español | eesti | euskara | فارسی | suomi | français | Nordfriisk | Frysk | galego | Alemannisch | ગુજરાતી | עברית | हिन्दी | Fiji Hindi | hrvatski | magyar | հայերեն | interlingua | Bahasa Indonesia | Ido | íslenska | italiano | 日本語 | ქართული | ភាសាខ្មែរ | 한국어 | Qaraqalpaqsha | kar | kurdî | Limburgs | ລາວ | lietuvių | Minangkabau | македонски | മലയാളം | молдовеняскэ | Bahasa Melayu | မြန်မာဘာသာ | مازِرونی | Napulitano | नेपाली | Nederlands | norsk nynorsk | norsk | occitan | Kapampangan | Norfuk / Pitkern | polski | português | português do Brasil | پښتو | Runa Simi | română | русский | संस्कृतम् | sicilianu | سنڌي | Taclḥit | සිංහල | slovenčina | slovenščina | Soomaaliga | shqip | српски / srpski | svenska | ꠍꠤꠟꠐꠤ | ślůnski | தமிழ் | тоҷикӣ | ไทย | Türkmençe | Tagalog | Türkçe | татарча / tatarça | ⵜⴰⵎⴰⵣⵉⵖⵜ  | українська | اردو | oʻzbekcha / ўзбекча | vèneto | Tiếng Việt | 吴语 | 粵語 | 中文(简体) | 中文(繁體) | +/-

Welcome to Meta!

[edit]

Hello, BrandonXLF. Welcome to the Wikimedia Meta-Wiki! This website is for coordinating and discussing all Wikimedia projects. You may find it useful to read our policy page. If you are interested in doing translations, visit Meta:Babylon. You can also leave a note on Meta:Babel or Wikimedia Forum if you need help with something (please read the instructions at the top of the page before posting there). Happy editing!

-- Meta-Wiki Welcome (talk) 11:57, 10 October 2014 (UTC)Reply

momentjs

[edit]

I noticed w:User:BrandonXLF/MoreDiffInfo.js uses Moment.js, by loading it as executable script from a third-party domain (momentjs.com). I was wondering whether you considered loading the built-in module that comes with the wiki software, and if so, what problem or inconvience you may encountered so that we could mitigate it.

My interest is primarily from the perspective of providing a platform that's easy to work with for script authors such as yourself (by maintaining mw:ResourceLoader), and in relation to CSP support (T208188) which is likely to provide an opt-out for API requets but I don't currently expect us to allow executable scripts. Understanding current examples of third-party executable scripts helps to prioritise what we need to improve before such restriction comes into effect. --Krinkle (talk) 14:12, 4 May 2022 (UTC)Reply

@Krinkle I guess my issue was that I didn't realize there was a built in module when I created the script. I've now updated the script to use the built-in module. Is there a list of built in modules that I didn't notice somewhere? Currently I have to look through the core Resources.php and the extension.json for extensions, but an actual page with a list would be really helpful. BrandonXLF (talk) 15:01, 4 May 2022 (UTC)Reply
Awesome. In terms of documentation, an (incomplete) list lives at mw:ResourceLoader/Core_modules. I've just added moment to it. Krinkle (talk) 16:08, 4 May 2022 (UTC)Reply