User:Ilmari Karonen/logslink.js

// Slightly tweaked version of WikiProject User scripts/Scripts/Logs link

if (mw.config.get('wgCanonicalNamespace') != "Special") { addOnloadHook(function {        mw.util.addPortletLink("p-tb", mw.config.get('wgScript') + "?title=Special:Log&page=" + encodeURIComponent(mw.config.get('wgPageName')), "Page logs", "pt-logs");    }); }