FetLife Image Save-As Fixer

Allows Right Click ~> 'Save As' on FetLife images. ( by @ScottJFox )

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// YOU MUST BE USING HTTPS:// because you should be, anyway.
// @name         FetLife Image Save-As Fixer
// @namespace    https://twitter.com/ScottJFox
// @version      0.1
// @description  Allows Right Click ~> 'Save As' on FetLife images. ( by @ScottJFox )
//               Uses RegEx to grab the img.src from FetLife's source code.
// @match        https://fetlife.com/users/*/pictures/*
// @copyright    2014+, @ScottJFox
// ==/UserScript==
 
var doc = document.createElement('style');
document.getElementsByTagName('head')[0].appendChild(doc);
if (document.URL.match(/pictures\/\d+$/)) {
  doc = $('.fake_img');
  if (doc.size() == 1) {
    var img = document.createElement('img');
    var url = doc.css('background-image');
    img.src = url.substring(4, url.length - 1);
    img.height = doc.height();
    img.width = doc.width();
    var p = doc.parent();
    doc.remove();
    p.append(img);
  }
}