MediaWiki:Gadget-enwn-shortener.js

//See User:ShakataGaNai/Enwn.net //based on http://enwn.net/bookmark.php

//adds a button to the toolbar to shorten the url of the page.

$(function {mw.util.addPortletLink('p-tb', "javascript:open('http://enwn.net/api.php?m=create&url='+escape(document.URL),%20'_new','width=300,height=100');void%200;", 'Shorten URL', 'enwn-url-shortener', 'Make a enwn.nwt shortcut for this page')});