🏠 Home 

FA TextViewer

Allows for online viewing of all text based submissions of FurAffinity


Install this script?
  1. // ==UserScript==
  2. // @name FA TextViewer
  3. // @namespace FurAffinity
  4. // @version 2.0.2
  5. // @description Allows for online viewing of all text based submissions of FurAffinity
  6. // @author JaysonHusky
  7. // @match https://www.furaffinity.net/view/*/
  8. // @grant none
  9. // @run-at document-end
  10. // @require https://code.jquery.com/jquery-latest.js
  11. // ==/UserScript==
  12. (function() {
  13. 'use strict';
  14. $(document).ready(function(){
  15. var TemplateStyle=$('body').attr('data-static-path');
  16. var is_book=$("meta[property='og:type']").attr("content");
  17. var SubmissionDownloadURL="";
  18. if(TemplateStyle=="/themes/beta"){
  19. SubmissionDownloadURL=$('a.download-logged-in').attr('href');
  20. $('#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>');
  21. }
  22. else if(TemplateStyle=="/themes/classic"){
  23. SubmissionDownloadURL=$('div#text-container a').attr('href');
  24. $('#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>');
  25. }
  26. else {
  27. console.log('FA Online Viewer is only activated on story/poetry submissions.');
  28. }
  29. });
  30. })();