User:Pling/vector.js

/** function addTopLink(label, url) { var userpage = document.getElementById('pt-userpage'); if (userpage) { var link = document.createElement('a'); link.href = url; link.appendChild(document.createTextNode(label)); var li   = document.createElement('li'); li.appendChild(link);
 * Links in "user row"

userpage.parentNode.insertBefore(li, userpage.parentNode.firstChild); } } addOnloadHook(function {	/**	 * Format : addTopLink ('link label', 'link url');	 **/	addTopLink('images', '/index.php?title=Special:PrefixIndex&namespace=6&prefix=User_Pling');	addTopLink('pages', '/index.php?title=Special:PrefixIndex&namespace=2&prefix=Pling'); });

// This script modifies the output of the "Your signature with timestamp" edit button. (function {    var oldAddButton = window.addButton;    if (typeof(oldAddButton) != 'function') return;    window.addButton = function  {        if (arguments.length > 2)            arguments[2] = arguments[2].replace(/^--(~+)$/, '$1');        oldAddButton.apply(this, arguments);    }; });