User:Ale jrb/Scripts

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

I will occasionally create JavaScript scipts that perform a useful task. I will document these here. :)

descwatch[edit]

importScript ( 'User:Ale_jrb/Scripts/descwatch.js' ); // [[User:Ale_jrb/Scripts]]

This script automatically determines whether there is a description for the file you are viewing that matches your language (the language you have set the MediaWiki interface too), and if not, uses Google Translate to load (in the background) and display a translation of the description for you. It should work for most of the pref-language options, and is extremely fast.