FA TextViewer

Allows for online viewing of all text based submissions of FurAffinity

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

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

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==
// @name         FA TextViewer
// @namespace    FurAffinity
// @version      2.0.2
// @description  Allows for online viewing of all text based submissions of FurAffinity
// @author       JaysonHusky
// @match        https://www.furaffinity.net/view/*/
// @grant        none
// @run-at       document-end
// @require      https://code.jquery.com/jquery-latest.js
// ==/UserScript==
(function() {
    'use strict';
$(document).ready(function(){
    var TemplateStyle=$('body').attr('data-static-path');
    var is_book=$("meta[property='og:type']").attr("content");
    var SubmissionDownloadURL="";
    if(TemplateStyle=="/themes/beta"){
        SubmissionDownloadURL=$('a.download-logged-in').attr('href');
        $('#submissionImg').after('<br/><br/><iframe style="width: 900px; height: 900px;" src="https://docs.google.com/gview?url=https:'+SubmissionDownloadURL+'&embedded=true" height="240" width="320" frameborder="0"></iframe>');
    }
    else if(TemplateStyle=="/themes/classic"){
        SubmissionDownloadURL=$('div#text-container a').attr('href');
        $('#submissionImg').after('<br/><br/><iframe style="width: 900px; height: 900px;" src="https://docs.google.com/gview?url=https:'+SubmissionDownloadURL+'&embedded=true" height="240" width="320" frameborder="0"></iframe>');
    }
    else {
        console.log('FA Online Viewer is only activated on story/poetry submissions.');
    }
});
})();