User:Nardog/PasteToCommons

If you paste an image by Ctrl (or Cmd or whatever depending on your OS) on any page on the site while this script is installed, a dialog will show up that allows you to upload it to Wikimedia Commons. This is to allow easier uploading and sharing of screenshots of the site.

Installation
Add the following to your common.js:

Or you may enable the script installer in and click "Install" in the infobox on this page.

Usage
The default values for the description are based on the instructions at Screenshots of Wikipedia. You may override them in your common.js using the following syntax:

Caveats
The names of the site and the page on which you pasted the file will be published in the upload summary (separate from the filename/description).

This script employs hacks that may cease to work upon upstream code change.