let item=[],count=1,el=document.createElement("script");el.type="application/ld+json";$(".google-breadcrumb").find("li").length>0&&($(".google-breadcrumb").find("li").each(function(){let n="";n=$(this).find("a").attr("href")==undefined?window.location.pathname:$(this).find("a").attr("href");item.push({"@type":"ListItem",position:count,name:$(this).text(),item:"https://"+window.location.host+n});count++}),el.text=JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:item}),document.querySelector("body").appendChild(el))