Boilerplate for writing Commons UserScripts that takes advantage from the Warper API.
This boilerplate contains code to:
- always run you code on pages with the
Template:Map
within theFile
namespace. - retrieve existing map data from the Warper.
- authenticating a user using Mediawiki OAuth.
- importing a map to the Warper.
- validating user tokens.
It should be inline documented but if you run into something please create a new issue.