Commons:User scripts

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

MediaWiki: 1.36.0-wmf.38 (783a4e6)
jQuery: 3.3.1 / UI: 1.12.1

Hi, interested in scripting? We need help, so do not hesitate to ask what you can do. We recommend start testing in your user-namespace (new users see basic instructions here).

We have a JavaScript styleguide, but it is a guide, not a policy. Nevertheless, consider reading the MediaWiki manual.

A list of currently available scripts can be found at Category:User scripts.


To create[edit]

These are just suggestions. Feel free to comment in the talk-section.

Scripts without il8n[edit]


Under construction[edit]

General Talk[edit]



Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.

Recent changes

  • Users can thank others for their edits. Checkusers can now see user data related to that action. This can help identify sock puppets who harass others using thanks. [1]


  • Everyone was logged out a couple of weeks ago to fix a security problem. The problem was not entirely fixed. Because of this everyone was logged out once again last week. [2][3]

Changes later this week

  • Wikis that are not for one specific language can translate pages. Sometimes parts of translations are outdated or missing. Outdated translations are marked with a pink background. Missing translations will also be marked in the future. This markup can sometimes break things. It can soon be disabled by using a translate nowrap tag on the source page. [4]
  • Recurrent item The new version of MediaWiki will be on test wikis and from 14 July. It will be on non-Wikipedia wikis and some Wikipedias from 15 July. It will be on all wikis from 16 July (calendar).

Future changes

  • Advanced item Wikimedia code review plans to use GitLab. It would be hosted on Wikimedia servers. [5][6][7][8]

Tech news prepared by Tech News writers and posted by botContributeTranslateGet helpGive feedbackSubscribe or unsubscribe.

Users with script experience that may help[edit]

Wiki-tech-logo.svgThis user develops
user scripts;
{{User script developer}}

See also: Category:Commons JavaScript coders

See also[edit]



You can test any script by running it from your console or put the code in a Special:MyPage/test.js and hit “preview”.

Validating and styling[edit]