﻿var RemoveDropdownAnchors =
{
    init: function () {
        //  Remove Dropdown Anchors
        var divs = Core.getElementsByClass("rmSlide");
        for (var i = 0; i < divs.length; i++) {
            var anchor = divs[i].previousSibling
            var child = document.createElement("SPAN");
            child.className = "rmText rmExpandDown myLink"
            if (anchor.firstChild.innerText) {
                child.innerText = anchor.firstChild.innerText;
            }
            else {
                child.textContent = anchor.firstChild.textContent;
            }
            anchor.parentNode.replaceChild(child, anchor);
        }
    }
};
Core.start(RemoveDropdownAnchors);
