Replace deprecated JavaScript code in the TwnMainPage extension (jQuery.hover)

When I visit a MediaWiki where TwnMainPage extension is installed, for example and open the browser developer console, then I see the following warning: ext.translate.mainpage.js?e59c2:123 JQMIGRATE: jQuery.fn.hover() is deprecated

The JavaScript code that produces this warning needs to be replaced with a modern code.

For more information see

The code is in this Git repository:

Patch needs to be submitted to Wikimedia Gerrit:

You can find me as Nikerabbit on #mediawiki-i18n in Freenode IRC network:

Task tags

  • jquery
  • javascript

Students who completed this task

Rafid Aslam

Task type

  • code Code