A boilerplate fro writing userscripts & gadgets that takes advantage of the Warper API
JavaScript
Latest commit 23b0206 Nov 22, 2016 @Abbe98 Abbe98 mw.loader
so that it works out of the box

README.md

Maps UserScript Boilerplate

Boilerplate for writing Commons UserScripts that takes advantage from the Warper API.

This boilerplate contains code to:

  1. always run you code on pages with the Template:Map within the File namespace.
  2. retrieve existing map data from the Warper.
  3. authenticating a user using Mediawiki OAuth.
  4. importing a map to the Warper.
  5. validating user tokens.

It should be inline documented but if you run into something please create a new issue.