fetlife_unfakepictures

replace the css image on fetlife by the true one, allowing you to download the picture.

< Feedback on fetlife_unfakepictures

Question/comment

§
Posted: 13 April 2015

Broken Links/No Image/File Solved

As most of you have noticed on some photos once you right click and select Save As.. you might get a broken file type or no image, the easiest way to fix this is simply add .jpeg to the file name and save :)

bewamPembuat
§
Posted: 23 April 2015
Edited: 23 April 2015

As this issue comes from the browser/system, no userscript can solve it.

§
Posted: 24 April 2015
Edited: 24 April 2015

Hey, I tried saving a photo just now and did not have this problem. I'm using the 2.1 code for this script but I modified it to correct problem Seldoon was having in the "Gives me a broken link." discussion.

var fake = document.querySelector('.fake_img');
if (fake)
{
var p = fake.parentNode;
var img = document.createElement('img');
var url = getComputedStyle(fake)['backgroundImage'];

if (url && url != 'undefined'){
img.src = url.substring(4, url.length - 1);

img.height = fake.offsetHeight;
img.width = fake.offsetWidth;

console.log(img)
console.log(p)

fake.className = '';

p.appendChild(img, fake);
}
}

Post reply

Sign in to post a reply.