javascript:(()=>{let[e,t]=function(){let e=document.createElement("button"),t=document.createElement("div"),n=document.createElement("div"),o=document.createElement("div");return n.appendChild(o),t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.position="fixed",t.style.width="100vw",t.style.height="100vh",t.style.top="0",t.style.left="0",t.style.backgroundColor="rgba(0,0,0,.75)",t.style.flexWrap="wrap",t.style.flexDirection="column",t.appendChild(e),t.appendChild(n),e.textContent="Looking For Follows",e.disabled=!0,document.body.appendChild(t),[e,o]}();(function e(t,n,o,l){return console.log(`Fetching Page ${t}`),n.textContent=`Fetching Page ${t}${l?` of ${l}`:""}`,new Promise((l,a)=>{fetch(`https://mangadex.org/follows/manga/0/0/${t}/`).then(r=>{r.text().then(r=>{let c=document.implementation.createDocumentType("html","",""),i=document.implementation.createDocument("","html",c);i.documentElement.innerHTML=r;let d=Object.values(i.documentElement.querySelectorAll(".manga-entry"));if(0==d.length)return a();d=function(e){return e.map(e=>{let t={};return t.id=e.dataset.id,t.title=e.querySelector(".manga_title").title,t.url=e.querySelector(".manga_title").href,e.querySelectorAll(".btn-group .dropdown-menu .dropdown-item.disabled").forEach(e=>{if(e.classList.contains("manga_rating_button")){let n=e.textContent.trim();""!=n&&(t.rating=e.id)}else e.classList.contains("manga_follow_button")&&(t.followText=e.textContent.trim(),t.follow=e.id)}),t})}(d),o.textContent=o.textContent?o.textContent:0;let[,m,u]=i.documentElement.querySelector("#chapters > p").textContent.match(/to (\d+) of (\d+)/),s=i.documentElement.querySelector("#chapters .page-link .fa-angle-double-right").parentElement.href.match(/(\d+)\/$/)[1];if(o.textContent=`Found ${m} / ${u} follows.`,t>=parseInt(s))return l(d);l(e(t+1,n,o,s).then(e=>d.concat(e)).catch(()=>d))}).catch(a)}).catch(a)})})(1,e,t).then(t=>{let n=t.sort((e,t)=>e.follow-t.follow||(null!=t.rating?t.rating:-1)-(null!=e.rating?e.rating:-1)).reduce((e,t)=>`${""==e?"":e+"\n"}${t.followText}${null!=t.rating?` (${t.rating})`:""}: ${t.title}`,"");console.log(n),e.textContent="Copy Follows!",e.disabled=!1,e.onclick=(()=>{!function(e){let t=document.createElement("textarea"),n=document.getSelection();t.textContent=e,document.body.appendChild(t),n.removeAllRanges(),t.select(),document.execCommand("copy"),n.removeAllRanges(),document.body.removeChild(t),console.log(`Copied cover art '${e}'`)}(n),e.parentElement.remove()})})})();