Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Wikipedia:WikiProject User scripts/Scripts/Logs link

From Wikipedia, the free encyclopedia
// from [http://en.wikipedia.org/w/index.php?title=User:Thebainer/monobook.js&oldid=32546177 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

$.when($.ready, mw.loader.using('mediawiki.util')).then(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'));

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