Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fetch("https://api.victoriahearts.com/profile/search", {
- "headers": {
- "accept": "application/json",
- "content-type": "application/json"
- },
- "referrer": "https://victoriahearts.com/",
- "referrerPolicy": "strict-origin-when-cross-origin",
- "body": "{\"page\":1,\"limit\":50,\"q\":{\"ageFrom\":18,\"ageTo\":90,\"which\":\"all\",\"is_live_video_streaming\":null,\"is_streaming\":null,\"is_validated\":true,\"gender\":\"female\"},\"xq\":{\"is_online\":false,\"ageFrom\":18,\"ageTo\":90,\"is_live_video_streaming\":null,\"is_streaming\":null,\"is_validated\":true,\"id_country\":\"All countries\",\"id_city\":\"All cities\",\"marital_status\":\"\",\"count_children\":-1,\"religion\":\"\",\"education\":\"\",\"drinking\":0,\"smoking\":0,\"id_user\":\"\",\"gender\":\"female\"},\"extended\":false}",
- "method": "POST",
- "mode": "cors",
- "credentials": "include"
- }).then(r=>r.json()).then(d=>{
- window.lastP=d;
- document.body.innerHTML=""; document.body.style.scrollSnapType="both mandatory";
- for (var v of d.data.items) {
- var img=document.createElement("img");img.style.height="100vh";img.style.objectFit="contain";img.style.marginLeft="60px";img.src=v.avatar_original;document.body.appendChild(img);img.setAttribute("userid",v.id);img.title=v.id;
- img.onclick=function(){
- fetch("https://api.victoriahearts.com/profile/get-photos/"+this.getAttribute("userid"), {"credentials": "include"}).then(r=>r.json()).then(d=>{console.log(d);
- var w=window.open();w.document.body.style.backgroundColor="#262626";
- var il=d.data.public.concat(d.data.private);console.log(il);
- for (var v of il) {
- var img=document.createElement("img");img.title=v.id;img.setAttribute("picid",v.id);
- img.style.display="block";img.style.marginLeft="60px";//img.style.margin="5px";//img.style.align="left";
- //img.style.width="100vw";
- img.style.height="100vh";
- img.style.objectFit="contain"; /* or object-fit: contain; */
- img.src=v.url_original;w.document.body.appendChild(img);
- }
- })
- }
- /*fetch("https://api.victoriahearts.com/profile/get-photos/65204659", {
- "headers": {
- "accept": "application/json"
- },
- "method": "POST",
- "mode": "cors",
- "credentials": "include"
- }); */
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement