Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Filter by Updates:
- javascript: (async () => {(await Promise.all(Array.apply(void 0,Array(+Array.from(document.querySelectorAll("ol.pagination>li")).slice(-2,-1)[0].textContent)).map((t,e)=>new Promise((t,r)=>fetch(`https://archiveofourown.org/users/${document.querySelector("a.dropdown-toggle").textContent.split(" ")[1].slice(0,-1)}/readings?page=${e+1}`).then(r=>r.text().then(r=>{let o=document.createElement("div");document.body.innerHTML="",o.innerHTML=r,t(Array.from(o.querySelectorAll("ol.reading.work.index.group > li")).map(t=>({id:t.id.split("_")[1],title:Array.from(t.querySelectorAll("h4.heading > a")).map(t=>t.textContent)[0],authors:Array.from(t.querySelectorAll(%27h4.heading > a[rel~="author"]%27)).map(t=>({text:t.textContent.trim(),href:t.attributes.href.value})),language:Array.from(t.querySelectorAll("dl.stats > dd.language")).map(t=>t.textContent)[0],wordcount:+(Array.from(t.querySelectorAll("dl.stats > dd.words")).map(t=>t.textContent)[0]||"").replace(",",""),chapters:(Array.from(t.querySelectorAll("dl.stats > dd.chapters")).map(t=>t.textContent)[0]||"?/?").split("/"),visited:"Visited"==t.querySelector("h4.viewed").innerText.trim().split(" ").at(-2)?1:parseInt(t.querySelector("h4.viewed").innerText.trim().split(" ").at(-2)),lastvisit:t.querySelector("h4.viewed").innerText,tags:{warnings:Array.from(t.querySelectorAll("li.warnings")).map(t=>t.textContent),relationships:Array.from(t.querySelectorAll("li.relationships")).map(t=>t.textContent),characters:Array.from(t.querySelectorAll("li.characters")).map(t=>t.textContent),freeforms:Array.from(t.querySelectorAll("li.freeforms")).map(t=>t.textContent)},fandom:Array.from(t.querySelectorAll("h5.fandoms.heading > a.tag")).map(t=>t.textContent),updated:Array.from(t.querySelectorAll("p.datetime")).map(t=>t.textContent)[0],kudos:+Array.from(t.querySelectorAll("dd.kudos")).map(t=>t.textContent)[0],onpage:e+1,summary:Array.from(t.querySelectorAll("blockquote.userstuff.summary > p")).map(t=>t.textContent)})))})))))).flat().filter(t=>t.lastvisit.includes("Update")).forEach(t=>document.body.innerHTML+=`<h2><a href="https://archiveofourown.org/works/${t.id}">${t.title}</a> by ${t.authors.map(t=>`<a href="https://archiveofourown.org${t.href}"> ${t.text}</a>`).join(" ")}</h2><p><strong>(${t.fandom.join(", ")})</strong></p><p><strong>${t.tags.warnings.join(", ")}</strong></p><p>${t.tags.relationships.join(", ")}</p<p>${t.tags.characters.join(", ")}</p><p><span style="font-size:9px">${t.tags.freeforms.join(", ")}</span></p><blockquote><p>${t.summary.join("</br>")}</p></blockquote><p><strong>Kudos:</strong> ${t.kudos} | <strong>Chapters: </strong>${t.chapters.join("/")} | <strong>Words: </strong>${t.wordcount} | Updated: ${t.updated} | Visited: ${t.visited}x | Read Count: ${t.visited/+t.chapters[0]}</p><hr />`)})()
- Sort by Kudos:
- javascript: (async () => {(await Promise.all(Array.apply(void 0,Array(+Array.from(document.querySelectorAll("ol.pagination>li")).slice(-2,-1)[0].textContent)).map((t,e)=>new Promise((t,r)=>fetch(`https://archiveofourown.org/users/${document.querySelector("a.dropdown-toggle").textContent.split(" ")[1].slice(0,-1)}/readings?page=${e+1}`).then(r=>r.text().then(r=>{let o=document.createElement("div");document.body.innerHTML="",o.innerHTML=r,t(Array.from(o.querySelectorAll("ol.reading.work.index.group > li")).map(t=>({id:t.id.split("_")[1],title:Array.from(t.querySelectorAll("h4.heading > a")).map(t=>t.textContent)[0],authors:Array.from(t.querySelectorAll(%27h4.heading > a[rel~="author"]%27)).map(t=>({text:t.textContent.trim(),href:t.attributes.href.value})),language:Array.from(t.querySelectorAll("dl.stats > dd.language")).map(t=>t.textContent)[0],wordcount:+(Array.from(t.querySelectorAll("dl.stats > dd.words")).map(t=>t.textContent)[0]||"").replace(",",""),chapters:(Array.from(t.querySelectorAll("dl.stats > dd.chapters")).map(t=>t.textContent)[0]||"?/?").split("/"),visited:"Visited"==t.querySelector("h4.viewed").innerText.trim().split(" ").at(-2)?1:parseInt(t.querySelector("h4.viewed").innerText.trim().split(" ").at(-2)),lastvisit:t.querySelector("h4.viewed").innerText,tags:{warnings:Array.from(t.querySelectorAll("li.warnings")).map(t=>t.textContent),relationships:Array.from(t.querySelectorAll("li.relationships")).map(t=>t.textContent),characters:Array.from(t.querySelectorAll("li.characters")).map(t=>t.textContent),freeforms:Array.from(t.querySelectorAll("li.freeforms")).map(t=>t.textContent)},fandom:Array.from(t.querySelectorAll("h5.fandoms.heading > a.tag")).map(t=>t.textContent),updated:Array.from(t.querySelectorAll("p.datetime")).map(t=>t.textContent)[0],kudos:+Array.from(t.querySelectorAll("dd.kudos")).map(t=>t.textContent)[0],onpage:e+1,summary:Array.from(t.querySelectorAll("blockquote.userstuff.summary > p")).map(t=>t.textContent)})))})))))).flat().filter(t=>t.visited/t.chapters[0] > 1).sort((a,b) => (b.visited/+b.chapters[0])-(a.visited/+a.chapters[0])).forEach(t=>document.body.innerHTML+=`<h2><a href="https://archiveofourown.org/works/${t.id}">${t.title}</a> by ${t.authors.map(t=>`<a href="https://archiveofourown.org${t.href}"> ${t.text}</a>`).join(" ")}</h2><p><strong>(${t.fandom.join(", ")})</strong></p><p><strong>${t.tags.warnings.join(", ")}</strong></p><p>${t.tags.relationships.join(", ")}</p<p>${t.tags.characters.join(", ")}</p><p><span style="font-size:9px">${t.tags.freeforms.join(", ")}</span></p><blockquote><p>${t.summary.join("</br>")}</p></blockquote><p><strong>Kudos:</strong> ${t.kudos} | <strong>Chapters: </strong>${t.chapters.join("/")} | <strong>Words: </strong>${t.wordcount} | Updated: ${t.updated} | Visited: ${t.visited}x | Read Count: ${t.visited/+t.chapters[0]}</p><hr />`)})()
- a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement