window.wikifeed = function(url, element, size) {
    var posts = [],
        numberOfPosts = size || 5,
        slice = Array.prototype.slice;

    function getIndex(children) {
        return function(value, index, list) {
            return children.index(value);
        };
    }

    function getRange(value, index, list) {
        return [value, list[index + 1]];
    };

    function getData(children) {
        return function(value, index, list) {
            //offset by 1 to get anchor tag
            var offset = [value[0] - 1, value[1] - 1];
            return slice.apply(children, offset);
        };
    }

    function parseItem(value, index, list) {
        var elem = $(value);

        if(elem.is("div")) {
            var inner = $(value).find("a");
            var images = inner.find("img,embed,object");
            images.removeAttr("width");
            images.removeAttr("height");

            return inner;
        }

        if(elem.is("table")) {
            var images = $(value).find(".gallerybox")
                .removeAttr("style");

            images.find("*").removeAttr("style");
            images.find("p").addClass("center");

            return images;
        }

        return value;
    };

    function formatPost(value, index, list) {
        var id = $(value[0]).attr("id");

        var link = $("<a></a>");
        link.attr("href", url + "#" + id)
            .attr("target", "_blank")
            .addClass("ui-icon ui-icon-extlink")
            .css("float", "right");

        var content = $("<div></div>");

        var items = value.splice(3, value.length);
        items.unshift(link);

        var title = $(value[1]);
        var text = title.text().replace(/\[edit\]/gmi, "");
        var date = $("<span></span>").html($(value[2]).text())
            .addClass("date");

        var parsed = items.map(parseItem);

        return {
            title: title.text(text).append(date),
            content: content.html(parsed)
        };
    }

    function parsePosts(html) {
        var feed = $(html).find("#bodyContent");
        var children = feed.children();

        var headers = feed.find("h2").toArray();

        if (!headers.length) return console.warn("Could not fetch headers");

        var indexes = headers.map(getIndex(children));
        indexes.push(children.length);
        var ranges = indexes.map(getRange);
        var items = ranges.map(getData(children.toArray()));

        posts = items.map(formatPost).slice(0, -1);
        render();
    }

    function render() {
        var feed = $("<div></div>");

        for(var i = 0; i < numberOfPosts; i++) {
            feed.append(posts[i].title);
            feed.append(posts[i].content);
        }

        feed.accordion({
            autoHeight: false,
            icons: false,
            active: false,
            collapsible: true
        });

        var footer = $("<a>...more...<a>").attr("href", url)
            .attr("target", "_blank")
            .css("text-align", "center")
            .css("display", "block")
            .css("margin", "3px");

        element.append(feed);
        $(".thumbcaption").remove();
        feed.append(footer);
    }

    $.ajax({
        url: url,
        dataType: "html",
        success: parsePosts
    });

    return this;
};

@@ -1324,207 +1324,8 @@
 );%0A%0A
-        var link = $(%22%3Ca%3E%3C/a%3E%22);%0A        link.attr(%22href%22, url + %22#%22 + id)%0A            .attr(%22target%22, %22_blank%22)%0A            .addClass(%22ui-icon ui-icon-extlink%22)%0A            .css(%22float%22, %22right%22);%0A%0A
     
@@ -1475,16 +1475,17 @@
 ue%5B1%5D);%0A
+%0A
         
@@ -1671,24 +1671,174 @@
 arseItem);%0A%0A
+        var link = $(%22%3Ca%3E%3C/a%3E%22);%0A        link.attr(%22href%22, url + %22#%22 + id)%0A            .html(text);%0A%0A        title = swapTag($(%22%3Ch4%3E%3C/h4%3E%22), title);%0A%0A
         retu
@@ -1871,17 +1871,17 @@
 tle.
-text(text
+html(link
 ).ap
@@ -2119,25 +2119,24 @@
 .toArray();%0A
-%0A
         if (
@@ -2256,16 +2256,17 @@
 dren));%0A
+%0A
         
@@ -2471,32 +2471,128 @@
 ender();%0A    %7D%0A%0A
+    function swapTag(tag, element) %7B%0A        return tag.clone().html(element.innerHTML);%0A    %7D%0A%0A
     function ren
@@ -2731,32 +2731,34 @@
 e);%0A            
+//
 feed.append(post
@@ -2787,160 +2787,8 @@
  %7D%0A%0A
-        feed.accordion(%7B%0A            autoHeight: false,%0A            icons: false,%0A            active: false,%0A            collapsible: true%0A        %7D);%0A%0A
     

change wikifeed to only output the titlebars