Topic on User talk:Lucas Werkmeister (WMDE)

Jump to navigation Jump to search
TomT0m (talkcontribs)

Hi, I’m working on a user script (grease/tampermonkey script actually) for the query service to add labels to items in the table view in the user language (currently where « user language = french most probably)

User:TomT0m/wdqslabels.js

It kind of works, except I run the procedure periodically because I don’t know if it’s even possible to correctly hook up this somewhere in the UI. Would it be possible to launch it when the results loads or when the user clicks on the pagination numbering to see another bunch of results ?

Lucas Werkmeister (WMDE) (talkcontribs)

No, there is no support for running user scripts on the query service UI, and we don’t plan to add anything of the sort either at the moment. If you use GreaseMonkey/Tampermonkey for that, you’re doing so at your own risk. (For example, User:TomT0m/wdqslabels.js contains at least one security vulnerability because it doesn’t escape labels: try changing fr to en and running a query like SELECT (wd:Q43981055 AS ?id) {}.)

TomT0m (talkcontribs)

right, thanks for the injection report !

I’ll assume the risk.

TomT0m (talkcontribs)

But if you want this not to be published elsewhere I can delete the page and keep it for myself. I might publish this on the tampermonkey script library, but only if that’s OK for you of course.

Reply to "User script for wdqs advice"