// ==UserScript==
// @name FA TextViewer
// @namespace FurAffinity
// @version 1.0.1
// @description Allows for online viewing of all text based submissions of FurAffinity
// @author JaysonHusky
// @match https://www.furaffinity.net/view/*/
// @grant none
// @require https://code.jquery.com/jquery-latest.js
// @downloadURL none
// ==/UserScript==
(function() {
'use strict';
$(document).ready(function(){
var is_book=$("meta[property='og:type']").attr("content");
if(is_book=="book" && STATIC_PATH=="/themes/beta"){
var SubmissionDownloadURL=$('a.download-logged-in').attr('href');
$('#submissionImg').after('
');
}
else {
console.log('FA Online Viewer is only activated on story/poetry submissions, and is currently unavailable in ClassicUI');
}
});
})();