Wikipedia:WikiProject User scripts/Scripts/Logs link

// from User:Thebainer/monobook.js

// adds a 'logs for this page' link to the toolbox bar // if the page is a special page, then no link is displayed

addOnloadHook(function {    if ( mw.config.get('wgCanonicalNamespace') == "Special" )        return;  // don't display link for special pages

url = mw.config.get('wgServer') + "/w/index.php?title=Special:Log&page=" + encodeURIComponent(mw.config.get('wgPageName'));

addPortletLink("p-tb", url, "Page logs", "pt-logs"); });