Garam Bahu Post Links

Xforum - Zenforo

//Get links from author's content page
let arr=[];
document.querySelectorAll("div.block-container > ol > li > div > div > h3 > a").forEach(l=>arr.push(l.href));
copy(arr.join('\n'));
//Full Code for async scrape
var arr2=[];
var output = document.querySelector('.output');
arr.forEach(l=>{
	let postId=l.replace(/.+\/post-/,'post-');
    getText(l,postId)
})
async function getText(url,id) {
    await fetch(url).then(function(response) {        
        return response.text();
    }).then(async function(html) {        
        output.innerHTML = html;
        arr2.push(output.querySelector('[data-lb-id='+id+']').innerHTML.trim())
    });
}

Sexbaba

let arr=[];
document.querySelectorAll(".post_body").forEach((l,i)=>arr.push('

Page '+window.location.search.replace('?page=','')+' Episode '+(i+1)+'


'+l.innerHTML.trim()+'
____
')); copy(arr.join('\n'));



let arr=[];
document.querySelectorAll(".post_body").forEach((l,i)=>arr.push('

Page '+window.location.search.replace('?page=','')+' Episode '+(i+1)+'


'+l.innerHTML.trim()+'
____
')); copy(arr.join('\n'));

0 comments:

Post a Comment