// ==UserScript== // @name FA Fixes Control Panel // @namespace FurAffinity.net // @version 1.3.5.1 // @description Adds a control panel of fixes to the FurAffinity website, so you can enable/disable them at will. // @author JaysonHusky // @match *://www.furaffinity.net/* // @exclude *://www.furaffinity.net/login/ // @exclude *://www.furaffinity.net/logout/ // @grant GM_getValue // @grant GM_setValue // @require http://code.jquery.com/jquery-latest.js // @downloadURL none // ==/UserScript== (function() { 'use strict'; // Load Current Settings function FAFCP_LoadCP(i){ var setting_returned = GM_getValue(i); if(setting_returned=="yes"){ $('#'+i+'_yes').prop("checked", true); } else if(setting_returned=="no") { $('#'+i+'_no').prop("checked", true); } else { console.log('Setting: '+i+' Returned: '+setting_returned+' (Other Result)'); } } function FAFCP_Load_Tweaks(i){ var setting_returned = GM_getValue(i); if(setting_returned=="yes"){ return "yes"; } else if(setting_returned=="no") { return "no"; } else { return "undefined"; } } function FAFCP_SaveSettings(fafcp_nct,fafcp_sbg,fafcp_hs,fafcp_os,fafcp_sst,fafcp_sstpo,fafcp_fn,fafcp_tp,fafcp_nf,fafcp_bbf){ GM_setValue('fafcp_nct',fafcp_nct);GM_setValue('fafcp_sbg',fafcp_sbg);GM_setValue('fafcp_hs',fafcp_hs);GM_setValue('fafcp_os',fafcp_os); GM_setValue('fafcp_sst',fafcp_sst);GM_setValue('fafcp_sstpo',fafcp_sstpo);GM_setValue('fafcp_fn',fafcp_fn);GM_setValue('fafcp_tp',fafcp_tp); GM_setValue('fafcp_nf',fafcp_nf);GM_setValue('fafcp_bbf',fafcp_bbf); } function ExecuteTweak(tweak){ switch(tweak) { case "NoCustomThumbnails": $("img[src*='t.facdn.net']").each(function(index){ var thumburl=$(this).attr('src').replace("@150","@400"); $(this).attr("src",thumburl); }); break; case "SidebarBeGone": $("").appendTo("head"); break; case "HiddenStreams": $("").appendTo("head"); break; case "ObviousStreams": $("").appendTo("head"); break; case "SameSizeThumbnails": $("").appendTo("head"); break; case "SameSizeThumbnailsPO": $("").appendTo("head"); break; case "FixedNavigation": $("").appendTo("head"); break; case "TidyProfile": var ProfileSize = 480; // (Defines max amount of profile that should be shown, the rest is still DOM loaded but hidden by overflow) if ($('.userpage-profile-info').height() > ProfileSize) { // Check for height $('.userpage-profile-info').css('height',''+ProfileSize+'px'); // Set new height $('.userpage-profile-info').css('overflow-y','auto'); // Allow overflow of remaining content } break; case "NoteFix": $('').appendTo("head"); break; case "BringBackButtons": $('.flex-submission-container').before('
Disables Furaffinity from showing custom thumbnails on all submissions. Replacing the original thumbnails with a scaled down version of the actual submission.
Relocates the sidebar off the screen, so it can be activated by hovering over it.
Fixes the fullscreen submission bug
Hides all stream notifications in the notifications centre.
Important: Does not change the notifications counter!
Re-styles stream notifications to make them more obvious in the notification's centre.
Adjusts all thumbnails of submissions to be of the same size (150px x 150px)
Adjusts all thumbnails on profile pages to be of the same size (150px x 150px)
Places the navigation bar in a fixed position, so it scrolls with the page
Add's a scroll bar to the the user profile section, if it's determined to be too long, to avoid unnesscessary scrolling.
Fixes the almost invisible textboxes/textarea's
Brings back the submission buttons when the sidebar is hidden
For widths between 480px & 1070px
FurAffinity Fixes - Control Panel | |||||||||
|
`);
}
}
// Load the users settings
$.each(["fafcp_nct","fafcp_sbg","fafcp_hs","fafcp_os","fafcp_sst","fafcp_sstpo","fafcp_fn","fafcp_tp","fafcp_nf","fafcp_bbf"],function(i,l){
FAFCP_LoadCP(l);
});
// Check and Run the Tweaks if required
if(FAFCP_Load_Tweaks('fafcp_nct')=="yes"){ExecuteTweak('NoCustomThumbnails');} else { /* Do Nothing */ }
if(FAFCP_Load_Tweaks('fafcp_sbg')=="yes"){ExecuteTweak('SidebarBeGone');} else { /* Do Nothing */ }
if(FAFCP_Load_Tweaks('fafcp_hs')=="yes"){ExecuteTweak('HiddenStreams');} else { /* Do Nothing */ }
if(FAFCP_Load_Tweaks('fafcp_os')=="yes"){ExecuteTweak('ObviousStreams');} else { /* Do Nothing */ }
if(FAFCP_Load_Tweaks('fafcp_sst')=="yes"){ExecuteTweak('SameSizeThumbnails');} else { /* Do Nothing */ }
if(FAFCP_Load_Tweaks('fafcp_sstpo')=="yes"){ExecuteTweak('SameSizeThumbnailsPO');} else { /* Do Nothing */ }
if(FAFCP_Load_Tweaks('fafcp_fn')=="yes"){ExecuteTweak('FixedNavigation');} else { /* Do Nothing */ }
if(FAFCP_Load_Tweaks('fafcp_tp')=="yes"){ExecuteTweak('TidyProfile');} else { /* Do Nothing */ }
if(FAFCP_Load_Tweaks('fafcp_nf')=="yes"){ExecuteTweak('NoteFix');} else { /* Do Nothing */ }
if(FAFCP_Load_Tweaks('fafcp_bbf')=="yes"){ExecuteTweak('BringBackButtons');} else { /* Do Nothing */ }
})();