Wikipedia:WikiProject User scripts/Scripts/Add LI link

// Note: There is now a mostly equivalent function,, included as a part of MediaWiki in wikibits.js. Please consider using it instead. The only major difference is that the first argument to  should be the   attribute of an element containing the list, not the DOM node of the list itself.

function addlilink(node, href, text, id, tooltip, accesskey) { if( !node.parentNode.id ) jsMsg( "You are using an outdated script that is using an old addlilink. Report your problem to get it fixed.")

return addPortletLink( node.parentNode.id, href, text, id, tooltip, accesskey); }

//