User:Mountain/shorturl.js

/** * Add shorturl links on title */

$(function {   if(wgIsArticle) {        var shortcut = wgArticleId.toString(36),        url = 'http://defn.me/r/' + wgContentLanguage + '/' + shortcut,        node = document.getElementById('firstHeading');        if(node) {            var html = node.innerHTML + ' ' + url + ' ';            node.innerHTML = html;        }    } });