User:Csokol/common.js

slideshow.show_slideshow_link = function { $('#p-namespaces ul').append(" Slideshow ") }

slideshow.onclick = function { $('#slideshow_link').click(function{       alert("click");    }) }

$(document).ready(function {   article_id = mw.config.get('wgArticleId');    //if its not a special page    if (article_id != 0) {        title = mw.config.get('wgTitle');        show_slideshow_link;    } });