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

Module:Sandbox/FlammablePizza

From Wikipedia, the free encyclopedia
local p = {}

function p.main(frame)
    local html = frame:preprocess(frame.args[1] or "")

    for _, class in ipairs{"speedy", "delete", "protection", "move", "content", "style", "notice",} do
        if html:find("mbox-"..class, 1, true) then
            return class
        end
    end

    return "content"
end

return p