Full stack developer and a tech lead in a daily job. I mainly deal with web stuff, and in wikimedia I mainly write gadgets (CSS/JS). UI/UX enthusiast.
On wikipedia since 2005.
User Details
- User Since
- Oct 13 2014, 5:14 PM (476 w, 5 d)
- Availability
- Available
- LDAP User
- Unknown
- MediaWiki User
- Nux [ Global Accounts ]
Tue, Nov 28
Sat, Nov 25
So if I understand it correctly, when sandbox'ing is applied, it always gets a transient origin, which means that upon each request the origin effectively changes and thus there is no caching right ? And the only way around it is using a separate domain without sandboxing ?
I think the message should be modified. This is not a very friendly message. Especially with that "localhost" which might freak out a dev 😉 (my initial thought: why is Wikipedia trying to connect to my localhost). Jokes aside, the message does suggest there is problem on my side but – as I understand – this is mostly a backend problem. So maybe log some details to JS console or a tooltip or something...
Mon, Nov 20
I also found this in whatwg spec:
<iframe sandbox src="https://usercontent.example.net/getusercontent.cgi?id=12193"></iframe>
[Warning!] It is important to use a separate domain so that if the attacker convinces the user to visit that page directly, the page doesn't run in the context of the site's origin, which would make the user vulnerable to any attack found in the page.
Use a separate but unsandboxed domain (en.wikipedia.wikimedia-usercontent.org or something like that) that internally resolves to the same wiki (with similar effects to the "sandbox mode" mentioned above, except it wouldn't do sandboxing, just relying on the origin / registrable domain being different). This would of course vastly increase the effort required (buying the domain, setting up DNS rules, certificates, a bunch of changes to site configuration...).
Fri, Nov 10
Clam and others supported by 95.8% of browsers globally:
The quick fix for this particular case is to update the URL in Toolhub to the un-encoded value of https://commons.wikimedia.org/wiki/File:Logo_Dzień_Nowego_Artykułu_Orem_version.svg. I have done this at https://toolhub.wikimedia.org/tools/dna/history/revision/46196/diff/48064 and the desired icon is now rendering.
Nov 3 2023
Oct 31 2023
Thanks for the fix. That seems like a less invasive way then I wanted to do it.
Oct 30 2023
Oct 29 2023
Ci/cd configuration can be separated. For example I have a Jenkins installation of which configuration is not accessible to anyone. Jenkins pools GitHub and runs Wikiploy. That Wikiploy script can be in a separate repo if I need to. There is no problem in that.
Oct 26 2023
So I kind of actually implemented this myself 🙂
Oct 19 2023
Oct 11 2023
Does that mean you cannot reach non-mobile https://pl.wikipedia.org/wiki/Specjalna:Różnica_mobilna/71469982 anymore? Because I can.
Oct 8 2023
Sep 26 2023
I assume modules and templates using the classes are also affected, right?
https://pl.wikipedia.org/w/index.php?search=insource%3A%2Fmw-ui%2F&title=Specjalna:Szukaj&profile=advanced&fulltext=1&ns8=1&ns10=1&ns828=1
Petscan also depends on this. Or to be more exact it assumes calback parameter is available to avoid CORS issues.
Sep 23 2023
Hi. @Aklapper this shows that Wikipedia:Portal wikipedystów also triggers the switch of skin from monobook (prefered by Cuku New) to default (V'22).
If supporting negation perhaps it should be thought about more broadly and apply to all options (see also T342532)
Hm... I guess the parser part can be more universal. But I think having gadgets not in main namespace would help with budgets etc more. I assume most people, most of the time, probably visit only the main namespace.
Sep 22 2023
For the performance sake could you support namespace!=0 syntax?
Sep 20 2023
@Jdlrobson done. Didn't help, but I guess maybe cache? (purge didn't help though)
Sep 18 2023
For Polish Wikipedia all disambiguation pages have {{Ujednoznacznienie}} on top and the page preview fails for them.
Sep 16 2023
Sep 14 2023
Seems like tags with explicit display:none are removed. So the problem was not the span with class (like I assumed). I've modified our template and it should work now.
I think .noexcerpt should be added explicitly to templates (rather then implicit, default class for Phonos).
Sep 13 2023
Did you ever thought of using NodeJS?
Sep 12 2023
@AlexisJazz Seems I found a way, if that helps. They have some rules for addresses/page title as seems.
wgPageContentModel:"sanitized-css" wgRelevantPageName:"Template:Legend/Style.css"
@Izno Actually NavFrame is used on all year pages for collapsing navigation in a nice and more accessible way (both for sighted users and for users using screen readers and for mobile UX). But if you think you can do it with the default then we can discuss that. We can discuss that on WP:BAR:TE or on the template's page. In general default collapsing is visibly slower to load though.
A table with all this data would be great too. I mean something like:
{| |- ! gadget !! size [KiB] !! zipped [KiB] |- ... |}
login.toolforge.org is not working too (even after flushing local dns). So no way to ssh into TS.
Sep 11 2023
Sep 9 2023
Sep 2 2023
This code is used on wikisource:
var mwskin = mw.config.get('skin'); var parentId = mwskin === "vector-2022" ? 'p-associated-pages' : 'p-namespaces'; var item = mw.util.addPortletLink( parentId, '#', "Lorem ipsum"); if (item && mwskin === "vector-2022") { item.classList.add('vector-tab-noicon'); // v22 }
I think you're looking for https://toolhub.wikimedia.org/tools/patchdemo ?
Isn't this what the Beta-Cluster is for?
Sep 1 2023
Aug 28 2023
The example book looks terrible on my monitor in Vector '22:
https://fr.wikisource.org/wiki/Criton_(trad._Cousin)?match=en
Aug 15 2023
Aug 14 2023
Aug 13 2023
I believe that code is more likely to have a valid maintainer name. The same applies to documentation within code, as you might have noticed. This has been my experience at least. Documentation in comments tends to be more up-to-date in general, not just in the context of Wikipedia scripts.
The goal of this task was really to encourage someone who had never edited before to try editing for the very first time. We tried to design the task in a way that was extremely simple and really limited user options / limited decision fatigue. The good news is it really does help more new account holders try editing for the first time: Add a link Experiment analysis. And the good news is that although the task is fairly limited, newcomers do seem to progress on and try new types of editing: Newcomer task edit type analysis.
Aug 6 2023
Aug 5 2023
Two more things missing (worse then Quarry):
Is there any tutorial on how to use the Superset? I tried to run a simple query on plwiki but initially failed to find a database. It would be helpful to have a welcome page that explains how to find databases or add the same links Quarry has in the menu.
Aug 4 2023
Changed hideSidebar upstream. You can update uk.wiki.
https://pl.wikipedia.org/wiki/Wikipedysta:Nux/hideSidebar.js
Jul 30 2023
This could be extended for all types of edit tasks I think. Like when you want to add a picture, but maybe not as just image in the body, but in the infobox. Or I want to add an image and add an alt text and some links.
Jul 26 2023
Sorry, I wasn't able to test it before the review. I will need to install the latest MW, but not sure when will I have enough time to do so as I am on and off from home...
Jul 18 2023
I just noticed that 8301136545 works, but weirdly, the ISBN which you get back in the citation (9788301136543) does not work! Is it just that the isbn 13 isn't in their search database (despite that obviously they know about it because they're returning it) do you think?
Maybe it would be more useful to spit back interpretation of what was entered. You know like now when enable ES6 it says that on the special page ("This gadget is only supported on ES6-compliant browsers") and other thing like that. So like that, but show even a dump of options on a preview of changes or something. I guess an editor would solve that too (like for TemplateData).
Jul 1 2023
Something you can use for things like popups:
// popups // only on devices that can hover (not on touch-only) if (!window.matchMedia("(hover: none)").matches) { importStylesheet('MediaWiki:Gadget-navpop.css'); mw.loader.using( "mediawiki.api,mediawiki.user,mediawiki.util,user.options,mediawiki.jqueryMsg".split(',') , function() { importScript('MediaWiki:Gadget-popups.js'); }); }
Jun 30 2023
The thing with en.wiki is probably that they get most of the stuff done by WMF. For example, many enhancements were made in the new Vector specifically after the mutiny on en.wiki. This is not a reproach; it just partly explains why they have fewer default gadgets. This also might explain why Wikisource usually has more gadgets than Wikipedia. WS has weaker support in general, and more features need to be added by the community.
Jun 29 2023
Does that mean gadgets will still be available for all skins by default? So this would be a default gadget for all skins and targets?
wikiflex [ResourceLoader | hidden | default] | wikiflex.css
Jun 28 2023
So to be clear this will cause a bug:
hideSidebar [ResourceLoader | skins=vector,monobook | targets=desktop ] | hideSidebar.js MobileMaps[ResourceLoader|targets=mobile]|mobilemaps.js
This will be fine:
hide-rollback [ResourceLoader | rights=rollback | targets=desktop,mobile ] | hide-rollback.css | hide-rollback.js
On that note, there is a new color-mix function in CSS:
https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color-mix
Jun 27 2023
Jun 26 2023
Jun 23 2023
Jun 21 2023
So this is called multiple times uw.ui.Upload.prototype.load = function (uploads).
There are too many files-added events.
Reproduction with images.
More detailed steps to reproduce:
Jun 19 2023
The scripts are not re-downloaded every time you view a page, and there is no need to add any bcache, maxage or smaxage parameters to MediaWiki urls, these do not improve performance anymore. Performance is our default, as much as possible.
Jun 16 2023
Note that on Village pump someone mentioned that the i18n menu doesn't work in Opera GX so that is kind of weird. I don't have that one but I tested with IE on Windows 10 (via Edge).
Jun 15 2023
There is a green light from Zotero devs and the Polish National Library is now available:
https://github.com/zotero/translators/pull/3036
Jun 9 2023
As I understand below would work, but AFAIK was not merged:
@Esanders That is helpful for other stuff... but none of that works for discussion tools.
Jun 6 2023
@KFrancis I sent you an email. Please let me know if it didn't arrive or something else would be needed.
Jun 5 2023
I've confirmed the steps above break refs.
This is still a regular thing. I think this might be happening for all named refs when the first ref doesn't have cite-body.
May 22 2023
Sent an e-mail signed with my PGP, fingerprint: 86C84A9B865FDD51FCFB12D2EE3F8013A0DD3792.
May 20 2023
analytics-privatedata-users is the wrong group and SRE-Access-Requests is the wrong workflow here. What you want for (especially client) log access is Logstash access which can be received via the nda LDAP group which is required via LDAP-Access-Requests.
May 19 2023
May 18 2023
You may have seen my tests. I've re-enabled the KA template (the Lua call) for a while and it's a very popular template. I've disable the Lua call for now, but please note that it doesn't solve the problem.