// noinspection JSUnresolvedFunction Array.from(document.getElementsByClassName("inner-item")).forEach((item) => { item.onclick = () => { if (item.getAttribute("data-item-href").startsWith("parent://")) { window.open("https://" + item.getAttribute("data-item-href").substr("parent://".length)); } else if (item.getAttribute("data-item-href").startsWith("top://")) { window.parent.location.href = item.getAttribute("data-item-href").substr("top://".length); } else { $(document.body).fadeOut(75); location.href = item.getAttribute("data-item-href") } } })