// ==UserScript==
// @name SoFurry - Color Themes
// @version 0.2.6
// @namespace http://userscripts.org/users/musicferret
// @include http://sofurry.com/*
// @include https://sofurry.com/*
// @include http://*.sofurry.com/*
// @include https://*.sofurry.com/*
// @author MusicFerret
// @description Adds a theme button in the top bar that let you select a custom theme color. You can choose red, orange, yellow, green, blue, violet, pink, silver, dark, FA, or default.
// @run-at document-start
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @grant GM_addStyle
// @grant GM_setValue
// @grant GM_getValue
// ==/UserScript==
var cozyToogle=false; //Global variable boolean for toggling on and off cozymode
var sticky = GM_getValue("sticky", false); //Gv boolean for stickyness of the top bar (load saved var)
var nextPage; //Gv for CTRL+RIGHT shortcut that finds 'nextPage href' in browse or search results
var scrollBar = true; //ON/OFF toogle for vscroll bar. Default is always on. Can't scroll with mouse wheel without.
var scrollSpeedd = 0; //Middle var for transition
var scrollSave = GM_getValue("scrollSave", 2); //Retrived saved setting for previous auto-scroll speed chosen
var fadeTimeout; //Gv that keeps count of timer of fadeout pop-up box. Keep the box showing as long as shortcut keys are pressed to ajust speed
var hideSidebar = GM_getValue("hideSidebar", false); //Toogle Hide/show sidebar in browse content
//Global Array controlling the speed of Autoscroll on a scale of 10
var scrollSpeed = [0, 150, 125, 105, 85, 65, 55, 45, 35, 30, 25];
var lineHeight = 1;
(function() {
var color = GM_getValue("color", "default");
var css="";
if (color == "default")
css="";
if (color == "red")
css = ".topbar-cont, .sftc-title, .sftc-title a, .sf-footer-breadcrumb, .topbar-cont a:not(.drop):link, .topbar-cont button, #sf-chat-inputarea, .button.buttonsmall, .sf-tabbar a.button:hover, ul.tabs, ul.tabs a, .button-bar, #nuke_everything, #nuke_current_tab, #nuke_selected:active, #sfCommentReplyContainer input, .pager input, .sf-content a.button, #yt29, #yt31, .topbar-cont #yt0, .sf-tabbar-inner a.current, .button-bar input, .sf-sidebar input:not(#suggestedtags):not(#sidebarsearch), .row.submit input, .thread_actions input, #nuke_selected {background: -moz-linear-gradient(top, #FF2211 0%, #660505 100%) !important; background: -webkit-linear-gradient(top, #FF2211 0%, #660505 100%); color: white; text-shadow: 0px 1px black !important; border-color: #992222 !important; color: white !important;}\n #yt1, #yt29:hover, #yt31:hover, .sf-tabbar, .sf-tabbar a.button, ul.tabs a.active, .sffile span, .button-bar input:hover, .pager input:hover, #sfCommentReplyContainer input:hover, .sf-sidebar input:hover:not(#sidebarsearch):not(#suggestedtags), #nuke_everything:hover, #nuke_current_tab:hover, .sf-content a.button:hover, .row.submit input:hover, .thread_actions input:hover {background: -moz-linear-gradient(top, #FF7777 0%, #FF2222 50%, #992222 100%) !important; background: -webkit-linear-gradient(top, #FF7777 0%, #FF2222 50%, #992222 100%); color: white; text-shadow: 0px 1px black; border-color: #992222 !important;}\n .topbar-cont button:hover, #headersearch, .sftc-title a:hover, .button.buttonsmall:hover, ul.tabs a:hover:not(.active), #LoginForm_sfLoginUsername, #LoginForm_sfLoginPassword, .topbar-cont #yt0:hover, .button-bar a.button:hover, .bbcode_quote_head {background: -moz-linear-gradient(top, #CC1105 0%, #220000 100%) !important; background: -webkit-linear-gradient(top, #CC1105 0%, #220000 100%); border-color: #992222 !important;}\n a#sf-userinfo-outer:hover, .sf-story-big, .title.sfTextMedDark, .wide-inactive-sub:hover, #sf-textcontent-controls, .context-menu-root, table.items tr.active, .sf-market-browse-offer, .bigsubmit:hover, .smallsubmit:hover {background: -moz-linear-gradient(top, #FFBBAA 0%, #FFFFFF 100%) !important; background: -webkit-linear-gradient(top, #FFBBAA 0%, #FFFFFF 100%);}\n #sf-textcontent-controls li:hover, #sf-chat-submit, input#addtagsform_submit, #sf-socialize input:hover {background: -moz-linear-gradient(top, #FFDDDD 0%, #FFDDDD 50%, #FFBBBB 50%, #FFBBBB 100%) !important; background: -webkit-linear-gradient(top, #FFDDDD 0%, #FFDDDD 50%, #FFBBBB 50%, #FFBBBB 100%); color: #666666; text-shadow: 0px 1px white; border-color: #FF6666;}\n div.sf-content, .sfCommentBody, .sf-sidebar, .sf-main, .sf-chat-dynamic td, .sf-content h2:not(.forumtitle), .sf-external-title, fieldset#general, fieldset#notifications, div.banner, div.watchlist, .watchlist-nuke, .date-tile, .watchlist-wrapper form, #sffp-intro, .sf-browse-shortlist-zebra, h4, fieldset, div.grey, .bigsubmit, .smallsubmit {background: #FFDDD0 !important;}\n .wide-inactive:hover, .sfArtworkSmallWrapper_fit:hover, .sf-carousel-container, .sfArtworkSmallWrapper:hover, .watchlist_item.selected, .sf-browse-displaymodes .display-button:hover, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .bbcode_quote_body {background: #FFCCC0 !important;}\n .sf-watermark, .sf-comment-options, .sf-chat-roomlist-active, .sf-chat-header-text, ul.watchlist_tabs a:visited, .sf-item-h-info-content, .wide-active, .wide-active-sub, .sf-browse-shortlist, .item.even.unread, .display-button-active, .even, .sfpreviewbox, .sfpreviewboxsmall {background: #FFBBA0 !important;}\n .sf-draggable a, .topbar-cont a.avatar, .forumtitle, .forumtitle-background, .sf-content p:not(.user-stats) {background: transparent !important;}\n span.user-info, div.user-info {background: rgba(255,0,0,0.5) !important;}\n .meterorange {background: #AA3333 !important; border-color: #AA3333;}\n .sf-tag, li.page.selected a, .pager a:hover {background: #EE5544 !important;}\n .watchlist_item, textarea#sfCommentReplyTextarea, #sf-profile-wide-nav, #sf-accounts, .sf-carousel-container, .sf-watermark, .sfCommentBody, .wide-active, .wide-active-sub, .wide-inactive-sub:hover, .dropdown.wide, .dropdown.wide li, .sf-profile-avatarcontainer, .sf-browse-displaymodes a, .sf-tabbar-inner a, #sf-socialize, .sfArtworkSmallInner.submissiononhold, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .sfTextMedDark span span, li.current a, tbody tr, .vertical .row.submit, .topbar-cont ul.dropdown, .bbcode_quote_body, .topbar {border-color: #CC6666 !important;}\n .sf-browse-displaymodes, .sf-content form td, .sf-content form th, .watchlist_header, #sf-textcontent-controls li, table.items thead th, .sf-chat-users-levelheader, h4, .sf-story-wide, .even td, .odd td, .forum_forumpost {border-bottom-color: #CC6666 !important;}\n .sf-content form th, .watchlist-nuke, li.current a, #sf-textcontent-controls li, fieldset p.row, .forum_fp_postsignature {border-top-color: #CC6666 !important;}\n .title.sfTextMedDark, #sf-textcontent-controls, .sfCommentChildrenOuter {border-style: none !important;}\n .tag.sfTextDark {border-color: #AAB0A0 !important;}\n li.current a {border-bottom-color: #FFD0CC !important;}\n .sf-story .sf-story-tags a, #sfContentDescription p, #section-favors-footer.section-footer a, .sf-story-big-tags a, .sidebarfilter-inactive a, .sf-chat-rating, .sf-chat-users-levelheader, .sfArtworkSmallWrapper a.sfTextMedLight, #sf-userinfo-outer .sfTextMedLight:not(.sfTextMedium), .sf-story-wide .sf-story-tags, .sf-market-browse-offer .sfTextMedLight, .forum_fp_postsignature, .sftagbrowser-browselink a {color: #777777 !important;}\n .sfTextMedDark .sfTextMedLight, .sf-comment-date.sfTextMedium, .sf-story abbr, .sf-story .sfTextMedium, #sf-accounts a {color: #806666 !important;}\n .sfTextMedDark span span p, div.sfCommentBody p, .sf-story:hover .sf-story-tags a, .sf-content-invisible p, .row label, .view legend, .section-title, #sfContentBody.sfTextMedDark p, .sflabel.biglabel, .sf-chat-roomlist-room a, .sf-chat-header-text, #sf-chat-users a, #sf-userinfo-outer .sfTextMedium, .sf-story-wide:hover .sf-story-tags, #sfCommentBody.sfTextMedDark p, .sf-market-browse-offer .sfTextMedium {color: #333333 !important;}\n span.sfTextMedDark span span a, a.wide-inactive, div.sfCommentBody a, .sfTextAttention, .sf-story-headline a, .sf-story-big-headline a, .sidebarfilter-active, .sidebarfilter:not(.sidebarfilter-inactive) a, a.display-button:hover, a.display-button-active:hover, .section-content a, td.link-column a, .sf-chat-username a, .watchlist_tabs a, .js_select_none, .js_select_all, .watchlist_meta a, table.items tr.active a, table.items tr.inactive a, .sf-sidebar .section a, .forumtitle a, .verysmalllabel, #sfContentTitle, .sf-browse-simpleitem:hover a, .sf-browse-shortlist a, .sf-browse-shortlist-zebra a, .sf-profile-avatarcontainer span, .watchlist_item a, .details a, .section-title-highlight, #sf-socialize input, .forum_threads a, .sf-market-browse-offer a, .forum_fp_header a, #sfContentBody a, .bigsubmit, .smallsubmit, .smalllabel a, .sf-avatar-provided a {color: #331111 !important;}\n .forumtitle-background tbody a {color: #994433 !important;}\n .sf-tabbar-inner a {color: white !important; text-shadow: 0px 1px black !important;}\n span.sfTextMedDark span span span span span:not(.sfTextMedLight), .sf-watermark span {color: black !important;}\n .sticky {position: fixed !important; width: 100% !important; left: 0; top: 0; z-index: 100; border-top: 0 !important;}\n .script {width: 90px !important;}\n .topbar ul.dropdown {background: rgba(50,0,0,0.9) !important;}\n .popbox {display: block; position: fixed; top: 50%; left: 50%; z-index: 99999; width: 100px; height: 100px; padding: 10px; background: rgba(188,18,18,0.6); color: white; border: 1px solid #700606; margin: 0px; -webkit-box-shadow: -50px 50px 50px -50px rgba(164, 164, 164, 1); box-shadow: 0px 0px 5px 0px rgba(100, 100, 100, 1); border-radius:25px;}";
else if (color == "orange")
css = ".topbar-cont, .sftc-title, .sftc-title a, .sf-footer-breadcrumb, .topbar-cont a:not(.drop):link, .topbar-cont button, #sf-chat-inputarea, .button.buttonsmall, .sf-tabbar a.button:hover, ul.tabs, ul.tabs a, .button-bar, #nuke_everything, #nuke_current_tab, #nuke_selected:active, #sfCommentReplyContainer input, .pager input, .sf-content a.button, #yt29, #yt31, .topbar-cont #yt0, .sf-tabbar-inner a.current, .button-bar input, .sf-sidebar input:not(#suggestedtags):not(#sidebarsearch), .row.submit input, .thread_actions input, #nuke_selected {background: -moz-linear-gradient(top, #FFBB33 0%, #CC8800 50%, #AA5500 100%) !important; background: -webkit-linear-gradient(top, #FFBB33 0%, #CC8800 50%, #AA5500 100%); color: white; text-shadow: 0px 1px black !important; border-color: #BB5500 !important; color: white !important;}\n #yt1, #yt29:hover, #yt31:hover, .sf-tabbar, .sf-tabbar a.button, ul.tabs a.active, .sffile span, .button-bar input:hover, .pager input:hover, #sfCommentReplyContainer input:hover, .sf-sidebar input:hover:not(#sidebarsearch):not(#suggestedtags), #nuke_everything:hover, #nuke_current_tab:hover, .sf-content a.button:hover, .row.submit input:hover, .thread_actions input:hover {background: -moz-linear-gradient(top, #FFDD66 0%, #FFBB33 50%, #CC8800 100%) !important; background: -webkit-linear-gradient(top, #FFDD66 0%, #FFBB33 50%, #CC8800 100%); color: white; text-shadow: 0px 1px black; border-color: #BB5500 !important;}\n .topbar-cont button:hover, #headersearch, .sftc-title a:hover, .button.buttonsmall:hover, ul.tabs a:hover:not(.active), #LoginForm_sfLoginUsername, #LoginForm_sfLoginPassword, .topbar-cont #yt0:hover, .button-bar a.button:hover, .bbcode_quote_head {background: -moz-linear-gradient(top, #DDAA00 0%, #AA6600 50%, #773300 100%) !important; background: -webkit-linear-gradient(top, #DDAA00 0%, #AA6600 50%, #773300 100%); border-color: #BB5500 !important;}\n a#sf-userinfo-outer:hover, .sf-story-big, .title.sfTextMedDark, .wide-inactive-sub:hover, #sf-textcontent-controls, .context-menu-root, table.items tr.active, .sf-market-browse-offer, .bigsubmit:hover, .smallsubmit:hover {background: -moz-linear-gradient(top, #FFCC77 0%, #FFFFFF 100%) !important; background: -webkit-linear-gradient(top, #FFCC77 0%, #FFFFFF 100%);}\n #sf-textcontent-controls li:hover, #sf-chat-submit, input#addtagsform_submit, #sf-socialize input:hover {background: -moz-linear-gradient(top, #FFF0AA 0%, #FFF0AA 50%, #FFDD66 50%, #FFDD66 100%) !important; background: -webkit-linear-gradient(top, #FFF0AA 0%, #FFF0AA 50%, #FFDD66 50%, #FFDD66 100%); color: #666666; text-shadow: 0px 1px white; border-color: #BB5500;}\n div.sf-content, .sfCommentBody, .sf-sidebar, .sf-main, .sf-chat-dynamic td, .sf-content h2:not(.forumtitle), .sf-external-title, fieldset#general, fieldset#notifications, div.banner, div.watchlist, .watchlist-nuke, .date-tile, .watchlist-wrapper form, #sffp-intro, .sf-browse-shortlist-zebra, h4, fieldset, div.grey, .bigsubmit, .smallsubmit {background: #FFEEBB !important;}\n .wide-inactive:hover, .sfArtworkSmallWrapper_fit:hover, .sf-carousel-container, .sfArtworkSmallWrapper:hover, .watchlist_item.selected, .sf-browse-displaymodes .display-button:hover, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .bbcode_quote_body {background: #FFDD99 !important;}\n .sf-watermark, .sf-comment-options, .sf-chat-roomlist-active, .sf-chat-header-text, ul.watchlist_tabs a:visited, .sf-item-h-info-content, .wide-active, .wide-active-sub, .sf-browse-shortlist, .item.even.unread, .display-button-active, .even, .sfpreviewbox, .sfpreviewboxsmall {background: #FFBB66 !important;}\n .sf-draggable a, .topbar-cont a.avatar, .forumtitle, .forumtitle-background, .sf-content p:not(.user-stats) {background: transparent !important;}\n span.user-info, div.user-info {background: rgba(235,130,0,0.6) !important;}\n .meterorange {background: #996622 !important; border-color: #996622;}\n .sf-tag, li.page.selected a, .pager a:hover {background: #CC8822 !important;}\n .watchlist_item, textarea#sfCommentReplyTextarea, #sf-profile-wide-nav, #sf-accounts, .sf-carousel-container, .sf-watermark, .sfCommentBody, .wide-active, .wide-active-sub, .wide-inactive-sub:hover, .dropdown.wide, .dropdown.wide li, .sf-profile-avatarcontainer, .sf-browse-displaymodes a, .sf-tabbar-inner a, #sf-socialize, .sfArtworkSmallInner.submissiononhold, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .sfTextMedDark span span, li.current a, tbody tr, .vertical .row.submit, .topbar-cont ul.dropdown, .bbcode_quote_body, .topbar {border-color: #DD7722 !important;}\n .sf-browse-displaymodes, .sf-content form td, .sf-content form th, .watchlist_header, #sf-textcontent-controls li, table.items thead th, .sf-chat-users-levelheader, h4, .sf-story-wide, .even td, .odd td, .forum_forumpost {border-bottom-color: #DD7722 !important;}\n .sf-content form th, .watchlist-nuke, li.current a, #sf-textcontent-controls li, fieldset p.row, .forum_fp_postsignature {border-top-color: #DD7722 !important;}\n .title.sfTextMedDark, #sf-textcontent-controls, .sfCommentChildrenOuter {border-style: none !important;}\n .tag.sfTextDark {border-color: #FFBB77 !important;}\n li.current a {border-bottom-color: #FFE0BB !important;}\n .sf-story .sf-story-tags a, #sfContentDescription p, #section-favors-footer.section-footer a, .sf-story-big-tags a, .sidebarfilter-inactive a, .sf-chat-rating, .sf-chat-users-levelheader, .sfArtworkSmallWrapper a.sfTextMedLight, #sf-userinfo-outer .sfTextMedLight:not(.sfTextMedium), .sf-story-wide .sf-story-tags, .sf-market-browse-offer .sfTextMedLight, .forum_fp_postsignature, .sftagbrowser-browselink a {color: #777777 !important;}\n .sfTextMedDark .sfTextMedLight, .sf-comment-date.sfTextMedium, .sf-story abbr, .sf-story .sfTextMedium, #sf-accounts a {color: #907566 !important;}\n .sfTextMedDark span span p, div.sfCommentBody p, .sf-story:hover .sf-story-tags a, .sf-content-invisible p, .row label, .view legend, .section-title, #sfContentBody.sfTextMedDark p, .sflabel.biglabel, .sf-chat-roomlist-room a, .sf-chat-header-text, #sf-chat-users a, #sf-userinfo-outer .sfTextMedium, .sf-story-wide:hover .sf-story-tags, #sfCommentBody.sfTextMedDark p, .sf-market-browse-offer .sfTextMedium {color: #333333 !important;}\n span.sfTextMedDark span span a, a.wide-inactive, div.sfCommentBody a, .sfTextAttention, .sf-story-headline a, .sf-story-big-headline a, .sidebarfilter-active, .sidebarfilter:not(.sidebarfilter-inactive) a, a.display-button:hover, a.display-button-active:hover, .section-content a, td.link-column a, .sf-chat-username a, .watchlist_tabs a, .js_select_none, .js_select_all, .watchlist_meta a, table.items tr.active a, table.items tr.inactive a, .sf-sidebar .section a, .forumtitle a, .verysmalllabel, #sfContentTitle, .sf-browse-simpleitem:hover a, .sf-browse-shortlist a, .sf-browse-shortlist-zebra a, .sf-profile-avatarcontainer span, .watchlist_item a, .details a, .section-title-highlight, #sf-socialize input, .forum_threads a, .sf-market-browse-offer a, .forum_fp_header a, #sfContentBody a, .bigsubmit, .smallsubmit, .smalllabel a, .sf-avatar-provided a {color: #552200 !important;}\n .forumtitle-background tbody a {color: #885511 !important;}\n .sf-tabbar-inner a {color: white !important; text-shadow: 0px 1px black !important;}\n span.sfTextMedDark span span span span span:not(.sfTextMedLight), .sf-watermark span {color: black !important;}\n .sticky {position: fixed !important; width: 100% !important; left: 0; top: 0; z-index: 100; border-top: 0 !important;}\n .script {width: 90px !important;}\n .topbar ul.dropdown {background: rgba(50,20,0,0.9) !important;}\n .popbox {display: block; position: fixed; top: 50%; left: 50%; z-index: 99999; width: 100px; height: 100px; padding: 10px; background: rgba(223,166,0,0.6); color: white; border: 1px solid #916C00; margin: 0px; -webkit-box-shadow: -50px 50px 50px -50px rgba(164, 164, 164, 1); box-shadow: 0px 0px 5px 0px rgba(100, 100, 100, 1); border-radius:25px;}";
else if (color == "yellow")
css = ".topbar-cont, .sftc-title, .sftc-title a, .sf-footer-breadcrumb, .topbar-cont a:not(.drop):link, .topbar-cont button, #sf-chat-inputarea, .button.buttonsmall, .sf-tabbar a.button:hover, ul.tabs, ul.tabs a, .button-bar, #nuke_everything, #nuke_current_tab, #nuke_selected:active, #sfCommentReplyContainer input, .pager input, .sf-content a.button, #yt29, #yt31, .topbar-cont #yt0, .sf-tabbar-inner a.current, .button-bar input, .sf-sidebar input:not(#suggestedtags):not(#sidebarsearch), .row.submit input, .thread_actions input, #nuke_selected {background: -moz-linear-gradient(top, #FFFF00 0%, #AAAA00 50%, #666622 100%) !important; background: -webkit-linear-gradient(top, #FFFF00 0%, #AAAA00 50%, #666622 100%); color: white; text-shadow: 0px 1px black !important; border-color: #999922 !important; color: white !important;}\n #yt1, #yt29:hover, #yt31:hover, .sf-tabbar, .sf-tabbar a.button, ul.tabs a.active, .sffile span, .button-bar input:hover, .pager input:hover, #sfCommentReplyContainer input:hover, .sf-sidebar input:hover:not(#sidebarsearch):not(#suggestedtags), #nuke_everything:hover, #nuke_current_tab:hover, .sf-content a.button:hover, .row.submit input:hover, .thread_actions input:hover {background: -moz-linear-gradient(top, #FFFF99 0%, #FFFF22 50%, #999922 100%) !important; background: -webkit-linear-gradient(top, #FFFF99 0%, #FFFF22 50%, #999922 100%); color: white; text-shadow: 0px 1px black; border-color: #AAAA33 !important;}\n .topbar-cont button:hover, #headersearch, .sftc-title a:hover, .button.buttonsmall:hover, ul.tabs a:hover:not(.active), #LoginForm_sfLoginUsername, #LoginForm_sfLoginPassword, .topbar-cont #yt0:hover, .button-bar a.button:hover, .bbcode_quote_head {background: -moz-linear-gradient(top, #CCCC00 0%, #888822 50%, #333300 100%) !important; background: -webkit-linear-gradient(top, #CCCC00 0%, #888822 50%, #333300 100%); border-color: #999922 !important;}\n a#sf-userinfo-outer:hover, .sf-story-big, .title.sfTextMedDark, .wide-inactive-sub:hover, #sf-textcontent-controls, .context-menu-root, table.items tr.active, .sf-market-browse-offer, .bigsubmit:hover, .smallsubmit:hover {background: -moz-linear-gradient(top, #FFFFBB 0%, #FFFFFF 100%) !important; background: -webkit-linear-gradient(top, #FFFFBB 0%, #FFFFFF 100%);}\n #sf-textcontent-controls li:hover, #sf-chat-submit, input#addtagsform_submit, #sf-socialize input:hover {background: -moz-linear-gradient(top, #FFFFDD 0%, #FFFFDD 50%, #FFFFBB 50%, #FFFFBB 100%) !important; background: -webkit-linear-gradient(top, #FFFFDD 0%, #FFFFDD 50%, #FFFFBB 50%, #FFFFBB 100%); color: #666666; text-shadow: 0px 1px white; border-color: #FFFF66;}\n div.sf-content, .sfCommentBody, .sf-sidebar, .sf-main, .sf-chat-dynamic td, .sf-content h2:not(.forumtitle), .sf-external-title, fieldset#general, fieldset#notifications, div.banner, div.watchlist, .watchlist-nuke, .date-tile, .watchlist-wrapper form, #sffp-intro, .sf-browse-shortlist-zebra, h4, fieldset, div.grey, .bigsubmit, .smallsubmit {background: #FFFFDD !important;}\n .wide-inactive:hover, .sfArtworkSmallWrapper_fit:hover, .sf-carousel-container, .sfArtworkSmallWrapper:hover, .watchlist_item.selected, .sf-browse-displaymodes .display-button:hover, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .bbcode_quote_body {background: #FFFFD0 !important;}\n .sf-watermark, .sf-comment-options, .sf-chat-roomlist-active, .sf-chat-header-text, ul.watchlist_tabs a:visited, .sf-item-h-info-content, .wide-active, .wide-active-sub, .sf-browse-shortlist, .item.even.unread, .display-button-active, .even, .sfpreviewbox, .sfpreviewboxsmall {background: #FFFFAA !important;}\n .sf-draggable a, .topbar-cont a.avatar, .forumtitle, .forumtitle-background, .sf-content p:not(.user-stats) {background: transparent !important;}\n span.user-info, div.user-info {background: rgba(255,255,136,0.6) !important;}\n .meterorange {background: #AAAA33 !important; border-color: #AAAA33;}\n .sf-tag, li.page.selected a, .pager a:hover {background: #CCCC88 !important;}\n .watchlist_item, textarea#sfCommentReplyTextarea, #sf-profile-wide-nav, #sf-accounts, .sf-carousel-container, .sf-watermark, .sfCommentBody, .wide-active, .wide-active-sub, .wide-inactive-sub:hover, .dropdown.wide, .dropdown.wide li, .sf-profile-avatarcontainer, .sf-browse-displaymodes a, .sf-tabbar-inner a, #sf-socialize, .sfArtworkSmallInner.submissiononhold, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .sfTextMedDark span span, li.current a, tbody tr, .vertical .row.submit, .topbar-cont ul.dropdown, .bbcode_quote_body, .topbar {border-color: #CCCC66 !important;}\n .sf-browse-displaymodes, .sf-content form td, .sf-content form th, .watchlist_header, #sf-textcontent-controls li, table.items thead th, .sf-chat-users-levelheader, h4, .sf-story-wide, .even td, .odd td, .forum_forumpost {border-bottom-color: #CCCC66 !important;}\n .sf-content form th, .watchlist-nuke, li.current a, #sf-textcontent-controls li, fieldset p.row, .forum_fp_postsignature {border-top-color: #CCCC66 !important;}\n .title.sfTextMedDark, #sf-textcontent-controls, .sfCommentChildrenOuter {border-style: none !important;}\n .tag.sfTextDark {border-color: #FFFFAA !important;}\n li.current a {border-bottom-color: #FFFFDD !important;}\n .sf-story .sf-story-tags a, #sfContentDescription p, #section-favors-footer.section-footer a, .sf-story-big-tags a, .sidebarfilter-inactive a, .sf-chat-rating, .sf-chat-users-levelheader, .sfArtworkSmallWrapper a.sfTextMedLight, #sf-userinfo-outer .sfTextMedLight:not(.sfTextMedium), .sf-story-wide .sf-story-tags, .sf-market-browse-offer .sfTextMedLight, .forum_fp_postsignature, .sftagbrowser-browselink a {color: #777777 !important;}\n .sfTextMedDark .sfTextMedLight, .sf-comment-date.sfTextMedium, .sf-story abbr, .sf-story .sfTextMedium, #sf-accounts a {color: #808066 !important;}\n .sfTextMedDark span span p, div.sfCommentBody p, .sf-story:hover .sf-story-tags a, .sf-content-invisible p, .row label, .view legend, .section-title, #sfContentBody.sfTextMedDark p, .sflabel.biglabel, .sf-chat-roomlist-room a, .sf-chat-header-text, #sf-chat-users a, #sf-userinfo-outer .sfTextMedium, .sf-story-wide:hover .sf-story-tags, #sfCommentBody.sfTextMedDark p, .sf-market-browse-offer .sfTextMedium {color: #333333 !important;}\n span.sfTextMedDark span span a, a.wide-inactive, div.sfCommentBody a, .sfTextAttention, .sf-story-headline a, .sf-story-big-headline a, .sidebarfilter-active, .sidebarfilter:not(.sidebarfilter-inactive) a, a.display-button:hover, a.display-button-active:hover, .section-content a, td.link-column a, .sf-chat-username a, .watchlist_tabs a, .js_select_none, .js_select_all, .watchlist_meta a, table.items tr.active a, table.items tr.inactive a, .sf-sidebar .section a, .forumtitle a, .verysmalllabel, #sfContentTitle, .sf-browse-simpleitem:hover a, .sf-browse-shortlist a, .sf-browse-shortlist-zebra a, .sf-profile-avatarcontainer span, .watchlist_item a, .details a, .section-title-highlight, #sf-socialize input, .forum_threads a, .sf-market-browse-offer a, .forum_fp_header a, #sfContentBody a, .bigsubmit, .smallsubmit, .smalllabel a, .sf-avatar-provided a {color: #444411 !important;}\n .forumtitle-background tbody a {color: #666644 !important;}\n .sf-tabbar-inner a {color: white !important; text-shadow: 0px 1px black !important;}\n span.sfTextMedDark span span span span span:not(.sfTextMedLight), .sf-watermark span {color: black !important;}\n .sticky {position: fixed !important; width: 100% !important; left: 0; top: 0; z-index: 100; border-top: 0 !important;}\n .script {width: 90px !important;}\n .topbar ul.dropdown {background: rgba(50,50,0,0.9) !important;}\n .popbox {display: block; position: fixed; top: 50%; left: 50%; z-index: 99999; width: 100px; height: 100px; padding: 10px; background: rgba(204,204,0,0.6); color: white; border: 1px solid #8C8C00; margin: 0px; -webkit-box-shadow: -50px 50px 50px -50px rgba(164, 164, 164, 1); box-shadow: 0px 0px 5px 0px rgba(100, 100, 100, 1); border-radius:25px;}";
else if (color == "green")
css = ".topbar-cont, .sftc-title, .sftc-title a, .sf-footer-breadcrumb, .topbar-cont a:not(.drop):link, .topbar-cont button, #sf-chat-inputarea, .button.buttonsmall, .sf-tabbar a.button:hover, ul.tabs, ul.tabs a, .button-bar, #nuke_everything, #nuke_current_tab, #nuke_selected:active, #sfCommentReplyContainer input, .pager input, .sf-content a.button, #yt29, #yt31, .topbar-cont #yt0, .sf-tabbar-inner a.current, .button-bar input, .sf-sidebar input:not(#suggestedtags):not(#sidebarsearch), .row.submit input, .thread_actions input, #nuke_selected {background: -moz-linear-gradient(top, #00FF00 0%, #33AA33 50%, #004400 100%) !important; background: -webkit-linear-gradient(top, #00FF00 0%, #33AA33 50%, #004400 100%); color: white; text-shadow: 0px 1px black !important; border-color: #229922 !important; color: white !important;}\n #yt1, #yt29:hover, #yt31:hover, .sf-tabbar, .sf-tabbar a.button, ul.tabs a.active, .sffile span, .button-bar input:hover, .pager input:hover, #sfCommentReplyContainer input:hover, .sf-sidebar input:hover:not(#sidebarsearch):not(#suggestedtags), #nuke_everything:hover, #nuke_current_tab:hover, .sf-content a.button:hover, .row.submit input:hover, .thread_actions input:hover {background: -moz-linear-gradient(top, #99FF99 0%, #22FF22 50%, #229922 100%) !important; background: -webkit-linear-gradient(top, #99FF99 0%, #22FF22 50%, #229922 100%); color: white; text-shadow: 0px 1px black; border-color: #229922 !important;}\n .topbar-cont button:hover, #headersearch, .sftc-title a:hover, .button.buttonsmall:hover, ul.tabs a:hover:not(.active), #LoginForm_sfLoginUsername, #LoginForm_sfLoginPassword, .topbar-cont #yt0:hover, .button-bar a.button:hover, .bbcode_quote_head {background: -moz-linear-gradient(top, #00CC00 0%, #228822 50%, #001100 100%) !important; background: -webkit-linear-gradient(top, #00CC00 0%, #228822 50%, #001100 100%); border-color: #229922 !important;}\n a#sf-userinfo-outer:hover, .sf-story-big, .title.sfTextMedDark, .wide-inactive-sub:hover, #sf-textcontent-controls, .context-menu-root, table.items tr.active, .sf-market-browse-offer, .bigsubmit:hover, .smallsubmit:hover {background: -moz-linear-gradient(top, #BBFFBB 0%, #FFFFFF 100%) !important; background: -webkit-linear-gradient(top, #BBFFBB 0%, #FFFFFF 100%);}\n #sf-textcontent-controls li:hover, #sf-chat-submit, input#addtagsform_submit, #sf-socialize input:hover {background: -moz-linear-gradient(top, #DDFFDD 0%, #DDFFDD 50%, #AAFFBB 50%, #AAFFBB 100%) !important; background: -webkit-linear-gradient(top, #DDFFDD 0%, #DDFFDD 50%, #AAFFBB 50%, #AAFFBB 100%); color: #666666; text-shadow: 0px 1px white; border-color: #66FF66;}\n div.sf-content, .sfCommentBody, .sf-sidebar, .sf-main, .sf-chat-dynamic td, .sf-content h2:not(.forumtitle), .sf-external-title, fieldset#general, fieldset#notifications, div.banner, div.watchlist, .watchlist-nuke, .date-tile, .watchlist-wrapper form, #sffp-intro, .sf-browse-shortlist-zebra, h4, fieldset, div.grey, .bigsubmit, .smallsubmit {background: #DDFFDD !important;}\n .wide-inactive:hover, .sfArtworkSmallWrapper_fit:hover, .sf-carousel-container, .sfArtworkSmallWrapper:hover, .watchlist_item.selected, .sf-browse-displaymodes .display-button:hover, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .bbcode_quote_body {background: #CCFFD0 !important;}\n .sf-watermark, .sf-comment-options, .sf-chat-roomlist-active, .sf-chat-header-text, ul.watchlist_tabs a:visited, .sf-item-h-info-content, .wide-active, .wide-active-sub, .sf-browse-shortlist, .item.even.unread, .display-button-active, .even, .sfpreviewbox, .sfpreviewboxsmall {background: #AAFFAA !important;}\n .sf-draggable a, .topbar-cont a.avatar, .forumtitle, .forumtitle-background, .sf-content p:not(.user-stats) {background: transparent !important;}\n span.user-info, div.user-info {background: rgba(100,240,110,0.6) !important;}\n .meterorange {background: #33AA33 !important; border-color: #33AA33;}\n .sf-tag, li.page.selected a, .pager a:hover {background: #33AA22 !important;}\n .watchlist_item, textarea#sfCommentReplyTextarea, #sf-profile-wide-nav, #sf-accounts, .sf-carousel-container, .sf-watermark, .sfCommentBody, .wide-active, .wide-active-sub, .wide-inactive-sub:hover, .dropdown.wide, .dropdown.wide li, .sf-profile-avatarcontainer, .sf-browse-displaymodes a, .sf-tabbar-inner a, #sf-socialize, .sfArtworkSmallInner.submissiononhold, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .sfTextMedDark span span, li.current a, tbody tr, .vertical .row.submit, .topbar-cont ul.dropdown, .bbcode_quote_body, .topbar {border-color: #66CC66 !important;}\n .sf-browse-displaymodes, .sf-content form td, .sf-content form th, .watchlist_header, #sf-textcontent-controls li, table.items thead th, .sf-chat-users-levelheader, h4, .sf-story-wide, .even td, .odd td, .forum_forumpost {border-bottom-color: #66CC66 !important;}\n .sf-content form th, .watchlist-nuke, li.current a, #sf-textcontent-controls li, fieldset p.row, .forum_fp_postsignature {border-top-color: #66CC66 !important;}\n .title.sfTextMedDark, #sf-textcontent-controls, .sfCommentChildrenOuter {border-style: none !important;}\n .tag.sfTextDark {border-color: #AAFFAA !important;}\n li.current a {border-bottom-color: #DDFFDD !important;}\n .sf-story .sf-story-tags a, #sfContentDescription p, #section-favors-footer.section-footer a, .sf-story-big-tags a, .sidebarfilter-inactive a, .sf-chat-rating, .sf-chat-users-levelheader, .sfArtworkSmallWrapper a.sfTextMedLight, #sf-userinfo-outer .sfTextMedLight:not(.sfTextMedium), .sf-story-wide .sf-story-tags, .sf-market-browse-offer .sfTextMedLight, .forum_fp_postsignature, .sftagbrowser-browselink a {color: #777777 !important;}\n .sfTextMedDark .sfTextMedLight, .sf-comment-date.sfTextMedium, .sf-story abbr, .sf-story .sfTextMedium, #sf-accounts a {color: #668066 !important;}\n .sfTextMedDark span span p, div.sfCommentBody p, .sf-story:hover .sf-story-tags a, .sf-content-invisible p, .row label, .view legend, .section-title, #sfContentBody.sfTextMedDark p, .sflabel.biglabel, .sf-chat-roomlist-room a, .sf-chat-header-text, #sf-chat-users a, #sf-userinfo-outer .sfTextMedium, .sf-story-wide:hover .sf-story-tags, #sfCommentBody.sfTextMedDark p, .sf-market-browse-offer .sfTextMedium {color: #333333 !important;}\n span.sfTextMedDark span span a, a.wide-inactive, div.sfCommentBody a, .sfTextAttention, .sf-story-headline a, .sf-story-big-headline a, .sidebarfilter-active, .sidebarfilter:not(.sidebarfilter-inactive) a, a.display-button:hover, a.display-button-active:hover, .section-content a, td.link-column a, .sf-chat-username a, .watchlist_tabs a, .js_select_none, .js_select_all, .watchlist_meta a, table.items tr.active a, table.items tr.inactive a, .sf-sidebar .section a, .forumtitle a, .verysmalllabel, #sfContentTitle, .sf-browse-simpleitem:hover a, .sf-browse-shortlist a, .sf-browse-shortlist-zebra a, .sf-profile-avatarcontainer span, .watchlist_item a, .details a, .section-title-highlight, #sf-socialize input, .forum_threads a, .sf-market-browse-offer a, .forum_fp_header a, #sfContentBody a, .bigsubmit, .smallsubmit, .smalllabel a, .sf-avatar-provided a {color: #113311 !important;}\n .forumtitle-background tbody a {color: #557755 !important;}\n .sf-tabbar-inner a {color: white !important; text-shadow: 0px 1px black !important;}\n span.sfTextMedDark span span span span span:not(.sfTextMedLight), .sf-watermark span {color: black !important;}\n .sticky {position: fixed !important; width: 100% !important; left: 0; top: 0; z-index: 100; border-top: 0 !important;}\n .script {width: 90px !important;}\n .topbar ul.dropdown {background: rgba(0,50,5,0.9) !important;}\n .popbox {display: block; position: fixed; top: 50%; left: 50%; z-index: 99999; width: 100px; height: 100px; padding: 10px; background: rgba(30,180,3,0.6); color: white; border: 1px solid #149602; margin: 0px; -webkit-box-shadow: -50px 50px 50px -50px rgba(164, 164, 164, 1); box-shadow: 0px 0px 5px 0px rgba(164, 164, 164, 1); border-radius:25px;}";
else if (color == "blue")
css = ".topbar-cont, .sftc-title, .sftc-title a, .sf-footer-breadcrumb, .topbar-cont a:not(.drop):link, .topbar-cont button, #sf-chat-inputarea, .button.buttonsmall, .sf-tabbar a.button:hover, ul.tabs, ul.tabs a, .button-bar, #nuke_everything, #nuke_current_tab, #nuke_selected:active, #sfCommentReplyContainer input, .pager input, .sf-content a.button, #yt29, #yt31, .topbar-cont #yt0, .sf-tabbar-inner a.current, .button-bar input, .sf-sidebar input:not(#suggestedtags):not(#sidebarsearch), .row.submit input, .thread_actions input, #nuke_selected {background: -moz-linear-gradient(top, #7DB9E8 0%, #2989D8 50%, #1E5799 100%) !important; background: -webkit-linear-gradient(top, #7DB9E8 0%, #2989D8 50%, #1E5799 100%); color: white; text-shadow: 0px 1px black !important; border-color: #3333FF !important; color: white !important;}\n #yt1, #yt29:hover, #yt31:hover, .sf-tabbar, .sf-tabbar a.button, ul.tabs a.active, .sffile span, .button-bar input:hover, .pager input:hover, #sfCommentReplyContainer input:hover, .sf-sidebar input:hover:not(#sidebarsearch):not(#suggestedtags), #nuke_everything:hover, #nuke_current_tab:hover, .sf-content a.button:hover, .row.submit input:hover, .thread_actions input:hover {background: -moz-linear-gradient(top, #D2E4F7 0%, #7DB9E8 50%, #2989D8 100%) !important; background: -webkit-linear-gradient(top, #D2E4F7 0%, #7DB9E8 50%, #2989D8 100%); color: white; text-shadow: 0px 1px black; border-color: #6666FF !important;}\n .topbar-cont button:hover, #headersearch, .sftc-title a:hover, .button.buttonsmall:hover, ul.tabs a:hover:not(.active), #LoginForm_sfLoginUsername, #LoginForm_sfLoginPassword, .topbar-cont #yt0:hover, .button-bar a.button:hover, .bbcode_quote_head {background: -moz-linear-gradient(top, #428FED 0%, #226DB7 50%, #0F2E77 100%) !important; background: -webkit-linear-gradient(top, #428FED 0%, #226DB7 50%, #0F2E77 100%); border-color: #3333FF !important;}\n a#sf-userinfo-outer:hover, .sf-story-big, .title.sfTextMedDark, .wide-inactive-sub:hover, #sf-textcontent-controls, .context-menu-root, table.items tr.active, .sf-market-browse-offer, .bigsubmit:hover, .smallsubmit:hover {background: -moz-linear-gradient(top, #AAC0FF 0%, #FFFFFF 100%) !important; background: -webkit-linear-gradient(top, #AAC0FF 0%, #FFFFFF 100%);}\n #sf-textcontent-controls li:hover, #sf-chat-submit, input#addtagsform_submit, #sf-socialize input:hover {background: -moz-linear-gradient(top, #DDDDFF 0%, #DDDDFF 50%, #AABBFF 50%, #AABBFF 100%) !important; background: -webkit-linear-gradient(top, #DDDDFF 0%, #DDDDFF 50%, #AABBFF 50%, #AABBFF 100%); color: #666666; text-shadow: 0px 1px white; border-color: #6666FF;}\n div.sf-content, .sfCommentBody, .sf-sidebar, .sf-main, .sf-chat-dynamic td, .sf-content h2:not(.forumtitle), .sf-external-title, fieldset#general, fieldset#notifications, div.banner, div.watchlist, .watchlist-nuke, .date-tile, .watchlist-wrapper form, #sffp-intro, .sf-browse-shortlist-zebra, h4, fieldset, div.grey, .bigsubmit, .smallsubmit {background: #D4E2FF !important;}\n .wide-inactive:hover, .sfArtworkSmallWrapper_fit:hover, .sf-carousel-container, .sfArtworkSmallWrapper:hover, .watchlist_item.selected, .sf-browse-displaymodes .display-button:hover, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .bbcode_quote_body {background: #C4D8FF !important;}\n .sf-watermark, .sf-comment-options, .sf-chat-roomlist-active, .sf-chat-header-text, ul.watchlist_tabs a:visited, .sf-item-h-info-content, .wide-active, .wide-active-sub, .sf-browse-shortlist, .item.even.unread, .display-button-active, .even, .sfpreviewbox, .sfpreviewboxsmall {background: #A8CAFF !important;}\n .sf-draggable a, .topbar-cont a.avatar, .forumtitle, .forumtitle-background, .sf-content p:not(.user-stats) {background: transparent !important;}\n span.user-info, div.user-info {background: rgba(136,136,255,0.6) !important;}\n .meterorange {background: #3355AA !important; border-color: #3355AA;}\n .sf-tag, li.page.selected a, .pager a:hover {background: #6085CC !important;}\n .watchlist_item, textarea#sfCommentReplyTextarea, #sf-profile-wide-nav, #sf-accounts, .sf-carousel-container, .sf-watermark, .sfCommentBody, .wide-active, .wide-active-sub, .wide-inactive-sub:hover, .dropdown.wide, .dropdown.wide li, .sf-profile-avatarcontainer, .sf-browse-displaymodes a, .sf-tabbar-inner a, #sf-socialize, .sfArtworkSmallInner.submissiononhold, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .sfTextMedDark span span, li.current a, tbody tr, .vertical .row.submit, .topbar-cont ul.dropdown, .bbcode_quote_body, .topbar {border-color: #8888FF !important;}\n .sf-browse-displaymodes, .sf-content form td, .sf-content form th, .watchlist_header, #sf-textcontent-controls li, table.items thead th, .sf-chat-users-levelheader, h4, .sf-story-wide, .even td, .odd td, .forum_forumpost {border-bottom-color: #8888FF !important;}\n .sf-content form th, .watchlist-nuke, li.current a, #sf-textcontent-controls li, fieldset p.row, .forum_fp_postsignature {border-top-color: #8888FF !important;}\n .title.sfTextMedDark, #sf-textcontent-controls, .sfCommentChildrenOuter {border-style: none !important;}\n .tag.sfTextDark {border-color: #AABBFF !important;}\n li.current a {border-bottom-color: #DDDDFF !important;}\n .sf-story .sf-story-tags a, #sfContentDescription p, #section-favors-footer.section-footer a, .sf-story-big-tags a, .sidebarfilter-inactive a, .sf-chat-rating, .sf-chat-users-levelheader, .sfArtworkSmallWrapper a.sfTextMedLight, #sf-userinfo-outer .sfTextMedLight:not(.sfTextMedium), .sf-story-wide .sf-story-tags, .sf-market-browse-offer .sfTextMedLight, .forum_fp_postsignature, .sftagbrowser-browselink a {color: #777777 !important;}\n .sfTextMedDark .sfTextMedLight, .sf-comment-date.sfTextMedium, .sf-story abbr, .sf-story .sfTextMedium, #sf-accounts a {color: #666680 !important;}\n .sfTextMedDark span span p, div.sfCommentBody p, .sf-story:hover .sf-story-tags a, .sf-content-invisible p, .row label, .view legend, .section-title, #sfContentBody.sfTextMedDark p, .sflabel.biglabel, .sf-chat-roomlist-room a, .sf-chat-header-text, #sf-chat-users a, #sf-userinfo-outer .sfTextMedium, .sf-story-wide:hover .sf-story-tags, #sfCommentBody.sfTextMedDark p, .sf-market-browse-offer .sfTextMedium {color: #333333 !important;}\n span.sfTextMedDark span span a, a.wide-inactive, div.sfCommentBody a, .sfTextAttention, .sf-story-headline a, .sf-story-big-headline a, .sidebarfilter-active, .sidebarfilter:not(.sidebarfilter-inactive) a, a.display-button:hover, a.display-button-active:hover, .section-content a, td.link-column a, .sf-chat-username a, .watchlist_tabs a, .js_select_none, .js_select_all, .watchlist_meta a, table.items tr.active a, table.items tr.inactive a, .sf-sidebar .section a, .forumtitle a, .verysmalllabel, #sfContentTitle, .sf-browse-simpleitem:hover a, .sf-browse-shortlist a, .sf-browse-shortlist-zebra a, .sf-profile-avatarcontainer span, .watchlist_item a, .details a, .section-title-highlight, #sf-socialize input, .forum_threads a, .sf-market-browse-offer a, .forum_fp_header a, #sfContentBody a, .bigsubmit, .smallsubmit, .smalllabel a, .sf-avatar-provided a {color: #111144 !important;}\n .forumtitle-background tbody a {color: #555577 !important;}\n .sf-tabbar-inner a {color: white !important; text-shadow: 0px 1px black !important;}\n span.sfTextMedDark span span span span span:not(.sfTextMedLight), .sf-watermark span {color: black !important;}\n .sticky {position: fixed !important; width: 100% !important; left: 0; top: 0; z-index: 100; border-top: 0 !important;}\n .script {width: 90px !important;}\n .topbar ul.dropdown {background: rgba(30,30,50,0.9) !important;}\n .popbox {display: block; position: fixed; top: 50%; left: 50%; z-index: 99999; width: 100px; height: 100px; padding: 10px; background: rgba(30,100,230,0.6); color: white; border: 1px solid #149; margin: 0px; -webkit-box-shadow: -50px 50px 50px -50px rgba(10, 120, 255, 1); box-shadow: 0px 0px 5px 0px rgba(10, 100, 200, 1); border-radius:25px;}";
else if (color == "violet")
css = ".topbar-cont, .sftc-title, .sftc-title a, .sf-footer-breadcrumb, .topbar-cont a:not(.drop):link, .topbar-cont button, #sf-chat-inputarea, .button.buttonsmall, .sf-tabbar a.button:hover, ul.tabs, ul.tabs a, .button-bar, #nuke_everything, #nuke_current_tab, #nuke_selected:active, #sfCommentReplyContainer input, .pager input, .sf-content a.button, #yt29, #yt31, .topbar-cont #yt0, .sf-tabbar-inner a.current, .button-bar input, .sf-sidebar input:not(#suggestedtags):not(#sidebarsearch), .row.submit input, .thread_actions input, #nuke_selected {background: -moz-linear-gradient(top, #FF44FF 0%, #440044 100%) !important; background: -webkit-linear-gradient(top, #FF44FF 0%, #440044 100%); color: white; text-shadow: 0px 1px black !important; border-color: #992299 !important; color: white !important;}\n #yt1, #yt29:hover, #yt31:hover, .sf-tabbar, .sf-tabbar a.button, ul.tabs a.active, .sffile span, .button-bar input:hover, .pager input:hover, #sfCommentReplyContainer input:hover, .sf-sidebar input:hover:not(#sidebarsearch):not(#suggestedtags), #nuke_everything:hover, #nuke_current_tab:hover, .sf-content a.button:hover, .row.submit input:hover, .thread_actions input:hover {background: -moz-linear-gradient(top, #FF99FF 0%, #FF22FF 50%, #992299 100%) !important; background: -webkit-linear-gradient(top, #FF99FF 0%, #FF22FF 50%, #992299 100%); color: white; text-shadow: 0px 1px black; border-color: #AA33AA !important;}\n .topbar-cont button:hover, #headersearch, .sftc-title a:hover, .button.buttonsmall:hover, ul.tabs a:hover:not(.active), #LoginForm_sfLoginUsername, #LoginForm_sfLoginPassword, .topbar-cont #yt0:hover, .button-bar a.button:hover, .bbcode_quote_head {background: -moz-linear-gradient(top, #CC00CC 0%, #882288 50%, #110011 100%) !important; background: -webkit-linear-gradient(top, #CC00CC 0%, #882288 50%, #110011 100%); border-color: #992299 !important;}\n a#sf-userinfo-outer:hover, .sf-story-big, .title.sfTextMedDark, .wide-inactive-sub:hover, #sf-textcontent-controls, .context-menu-root, table.items tr.active, .sf-market-browse-offer, .bigsubmit:hover, .smallsubmit:hover {background: -moz-linear-gradient(top, #FFBBFF 0%, #FFFFFF 100%) !important; background: -webkit-linear-gradient(top, #FFBBFF 0%, #FFFFFF 100%);}\n #sf-textcontent-controls li:hover, #sf-chat-submit, input#addtagsform_submit, #sf-socialize input:hover {background: -moz-linear-gradient(top, #FFDDFF 0%, #FFDDFF 50%, #FFBBFF 50%, #FFBBFF 100%) !important; background: -webkit-linear-gradient(top, #FFDDFF 0%, #FFDDFF 50%, #FFBBFF 50%, #FFBBFF 100%); color: #666666; text-shadow: 0px 1px white; border-color: #FF66FF;}\n div.sf-content, .sfCommentBody, .sf-sidebar, .sf-main, .sf-chat-dynamic td, .sf-content h2:not(.forumtitle), .sf-external-title, fieldset#general, fieldset#notifications, div.banner, div.watchlist, .watchlist-nuke, .date-tile, .watchlist-wrapper form, #sffp-intro, .sf-browse-shortlist-zebra, h4, fieldset, div.grey, .bigsubmit, .smallsubmit {background: #FFDDFF !important;}\n .wide-inactive:hover, .sfArtworkSmallWrapper_fit:hover, .sf-carousel-container, .sfArtworkSmallWrapper:hover, .watchlist_item.selected, .sf-browse-displaymodes .display-button:hover, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .bbcode_quote_body {background: #FFD0FF !important;}\n .sf-watermark, .sf-comment-options, .sf-chat-roomlist-active, .sf-chat-header-text, ul.watchlist_tabs a:visited, .sf-item-h-info-content, .wide-active, .wide-active-sub, .sf-browse-shortlist, .item.even.unread, .display-button-active, .even, .sfpreviewbox, .sfpreviewboxsmall {background: #FFAAFF !important;}\n .sf-draggable a, .topbar-cont a.avatar, .forumtitle, .forumtitle-background, .sf-content p:not(.user-stats) {background: transparent !important;}\n span.user-info, div.user-info {background: rgba(255,136,255,0.6) !important;}\n .meterorange {background: #AA33AA !important; border-color: #AA33AA;}\n .sf-tag, li.page.selected a, .pager a:hover {background: #CC88CC !important;}\n .watchlist_item, textarea#sfCommentReplyTextarea, #sf-profile-wide-nav, #sf-accounts, .sf-carousel-container, .sf-watermark, .sfCommentBody, .wide-active, .wide-active-sub, .wide-inactive-sub:hover, .dropdown.wide, .dropdown.wide li, .sf-profile-avatarcontainer, .sf-browse-displaymodes a, .sf-tabbar-inner a, #sf-socialize, .sfArtworkSmallInner.submissiononhold, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .sfTextMedDark span span, li.current a, tbody tr, .vertical .row.submit, .topbar-cont ul.dropdown, .bbcode_quote_body, .topbar {border-color: #CC66CC !important;}\n .sf-browse-displaymodes, .sf-content form td, .sf-content form th, .watchlist_header, #sf-textcontent-controls li, table.items thead th, .sf-chat-users-levelheader, h4, .sf-story-wide, .even td, .odd td, .forum_forumpost {border-bottom-color: #CC66CC !important;}\n .sf-content form th, .watchlist-nuke, li.current a, #sf-textcontent-controls li, fieldset p.row, .forum_fp_postsignature {border-top-color: #CC66CC !important;}\n .title.sfTextMedDark, #sf-textcontent-controls, .sfCommentChildrenOuter {border-style: none !important;}\n .tag.sfTextDark {border-color: #FFAAFF !important;}\n li.current a {border-bottom-color: #FFDDFF !important;}\n .sf-story .sf-story-tags a, #sfContentDescription p, #section-favors-footer.section-footer a, .sf-story-big-tags a, .sidebarfilter-inactive a, .sf-chat-rating, .sf-chat-users-levelheader, .sfArtworkSmallWrapper a.sfTextMedLight, #sf-userinfo-outer .sfTextMedLight:not(.sfTextMedium), .sf-story-wide .sf-story-tags, .sf-market-browse-offer .sfTextMedLight, .forum_fp_postsignature, .sftagbrowser-browselink a {color: #777777 !important;}\n .sfTextMedDark .sfTextMedLight, .sf-comment-date.sfTextMedium, .sf-story abbr, .sf-story .sfTextMedium, #sf-accounts a {color: #806680 !important;}\n .sfTextMedDark span span p, div.sfCommentBody p, .sf-story:hover .sf-story-tags a, .sf-content-invisible p, .row label, .view legend, .section-title, #sfContentBody.sfTextMedDark p, .sflabel.biglabel, .sf-chat-roomlist-room a, .sf-chat-header-text, #sf-chat-users a, #sf-userinfo-outer .sfTextMedium, .sf-story-wide:hover .sf-story-tags, #sfCommentBody.sfTextMedDark p, .sf-market-browse-offer .sfTextMedium {color: #333333 !important;}\n span.sfTextMedDark span span a, a.wide-inactive, div.sfCommentBody a, .sfTextAttention, .sf-story-headline a, .sf-story-big-headline a, .sidebarfilter-active, .sidebarfilter:not(.sidebarfilter-inactive) a, a.display-button:hover, a.display-button-active:hover, .section-content a, td.link-column a, .sf-chat-username a, .watchlist_tabs a, .js_select_none, .js_select_all, .watchlist_meta a, table.items tr.active a, table.items tr.inactive a, .sf-sidebar .section a, .forumtitle a, .verysmalllabel, #sfContentTitle, .sf-browse-simpleitem:hover a, .sf-browse-shortlist a, .sf-browse-shortlist-zebra a, .sf-profile-avatarcontainer span, .watchlist_item a, .details a, .section-title-highlight, #sf-socialize input, .forum_threads a, .sf-market-browse-offer a, .forum_fp_header a, #sfContentBody a, .bigsubmit, .smallsubmit, .smalllabel a, .sf-avatar-provided a {color: #441144 !important;}\n .forumtitle-background tbody a {color: #775577 !important;}\n .sf-tabbar-inner a {color: white !important; text-shadow: 0px 1px black !important;}\n span.sfTextMedDark span span span span span:not(.sfTextMedLight), .sf-watermark span {color: black !important;}\n .sticky {position: fixed !important; width: 100% !important; left: 0; top: 0; z-index: 100; border-top: 0 !important;}\n .script {width: 90px !important;}\n .topbar ul.dropdown {background: rgba(50,0,50,0.9) !important;}\n .popbox {display: block; position: fixed; top: 50%; left: 50%; z-index: 99999; width: 100px; height: 100px; padding: 10px; background: rgba(236,100,255,0.8); color: white; border: 1px solid #C100DD; margin: 0px; -webkit-box-shadow: -50px 50px 50px -50px rgba(164, 164, 164, 1); box-shadow: 0px 0px 5px 0px rgba(100, 100, 100, 1); border-radius:25px;}";
else if (color == "pink")
css = ".topbar-cont, .sftc-title, .sftc-title a, .sf-footer-breadcrumb, .topbar-cont a:not(.drop):link, .topbar-cont button, #sf-chat-inputarea, .button.buttonsmall, .sf-tabbar a.button:hover, ul.tabs, ul.tabs a, .button-bar, #nuke_everything, #nuke_current_tab, #nuke_selected:active, #sfCommentReplyContainer input, .pager input, .sf-content a.button, #yt29, #yt31, .topbar-cont #yt0, .sf-tabbar-inner a.current, .button-bar input, .sf-sidebar input:not(#suggestedtags):not(#sidebarsearch), .row.submit input, .thread_actions input, #nuke_selected {background: -moz-linear-gradient(top, #FF99DD 0%, #AB0056 100%) !important; background: -webkit-linear-gradient(top, #FF99DD 0%, #AB0056 100%); color: white; text-shadow: 0px 1px black !important; border-color: #DD5599 !important; color: white !important;}\n #yt1, #yt29:hover, #yt31:hover, .sf-tabbar, .sf-tabbar a.button, ul.tabs a.active, .sffile span, .button-bar input:hover, .pager input:hover, #sfCommentReplyContainer input:hover, .sf-sidebar input:hover:not(#sidebarsearch):not(#suggestedtags), #nuke_everything:hover, #nuke_current_tab:hover, .sf-content a.button:hover, .row.submit input:hover, .thread_actions input:hover {background: -moz-linear-gradient(top, #FFD8FA 0%, #FF77BB 50%, #CC2255 100%) !important; background: -webkit-linear-gradient(top, #FFD8FA 0%, #FF77BB 50%, #CC2255 100%); color: white; text-shadow: 0px 1px black; border-color: #DD5599 !important;}\n .topbar-cont button:hover, #headersearch, .sftc-title a:hover, .button.buttonsmall:hover, ul.tabs a:hover:not(.active), #LoginForm_sfLoginUsername, #LoginForm_sfLoginPassword, .topbar-cont #yt0:hover, .button-bar a.button:hover, .bbcode_quote_head {background: -moz-linear-gradient(top, #FF66C0 0%, #550022 100%) !important; background: -webkit-linear-gradient(top, #FF66C0 0%, #550022 100%); border-color: #DD5599 !important;}\n a#sf-userinfo-outer:hover, .sf-story-big, .title.sfTextMedDark, .wide-inactive-sub:hover, #sf-textcontent-controls, .context-menu-root, table.items tr.active, .sf-market-browse-offer, .bigsubmit:hover, .smallsubmit:hover {background: -moz-linear-gradient(top, #FFAADD 0%, #FFFFFF 100%) !important; background: -webkit-linear-gradient(top, #FFAADD 0%, #FFFFFF 100%);}\n #sf-textcontent-controls li:hover, #sf-chat-submit, input#addtagsform_submit, #sf-socialize input:hover {background: -moz-linear-gradient(top, #FFD8FA 0%, #FFD8FA 50%, #FFC0F0 50%, #FFC0F0 100%) !important; background: -webkit-linear-gradient(top, #FFD8FA 0%, #FFD8FA 50%, #FFC0F0 50%, #FFC0F0 100%); color: #666666; text-shadow: 0px 1px white; border-color: #DD5599;}\n div.sf-content, .sfCommentBody, .sf-sidebar, .sf-main, .sf-chat-dynamic td, .sf-content h2:not(.forumtitle), .sf-external-title, fieldset#general, fieldset#notifications, div.banner, div.watchlist, .watchlist-nuke, .date-tile, .watchlist-wrapper form, #sffp-intro, .sf-browse-shortlist-zebra, h4, fieldset, div.grey, .bigsubmit, .smallsubmit {background: #FFE3EE !important;}\n .wide-inactive:hover, .sfArtworkSmallWrapper_fit:hover, .sf-carousel-container, .sfArtworkSmallWrapper:hover, .watchlist_item.selected, .sf-browse-displaymodes .display-button:hover, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .bbcode_quote_body {background: #FFCDE2 !important;}\n .sf-watermark, .sf-comment-options, .sf-chat-roomlist-active, .sf-chat-header-text, ul.watchlist_tabs a:visited, .sf-item-h-info-content, .wide-active, .wide-active-sub, .sf-browse-shortlist, .item.even.unread, .display-button-active, .even, .sfpreviewbox, .sfpreviewboxsmall {background: #FF95D3 !important;}\n .sf-draggable a, .topbar-cont a.avatar, .forumtitle, .forumtitle-background, .sf-content p:not(.user-stats) {background: transparent !important;}\n span.user-info, div.user-info {background: rgba(255,0,140,0.5) !important;}\n .meterorange {background: #CC2288 !important; border-color: #CC2288;}\n .sf-tag, li.page.selected a, .pager a:hover {background: #EE5599 !important;}\n .watchlist_item, textarea#sfCommentReplyTextarea, #sf-profile-wide-nav, #sf-accounts, .sf-carousel-container, .sf-watermark, .sfCommentBody, .wide-active, .wide-active-sub, .wide-inactive-sub:hover, .dropdown.wide, .dropdown.wide li, .sf-profile-avatarcontainer, .sf-browse-displaymodes a, .sf-tabbar-inner a, #sf-socialize, .sfArtworkSmallInner.submissiononhold, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .sfTextMedDark span span, li.current a, tbody tr, .vertical .row.submit, .topbar-cont ul.dropdown, .bbcode_quote_body, .topbar {border-color: #DD5599 !important;}\n .sf-browse-displaymodes, .sf-content form td, .sf-content form th, .watchlist_header, #sf-textcontent-controls li, table.items thead th, .sf-chat-users-levelheader, h4, .sf-story-wide, .even td, .odd td, .forum_forumpost {border-bottom-color: #DD5599 !important;}\n .sf-content form th, .watchlist-nuke, li.current a, #sf-textcontent-controls li, fieldset p.row, .forum_fp_postsignature {border-top-color: #DD5599 !important;}\n .title.sfTextMedDark, #sf-textcontent-controls, .sfCommentChildrenOuter {border-style: none !important;}\n .tag.sfTextDark {border-color: #FFBBF0 !important;}\n li.current a {border-bottom-color: #FFCCF5 !important;}\n .sf-story .sf-story-tags a, #sfContentDescription p, #section-favors-footer.section-footer a, .sf-story-big-tags a, .sidebarfilter-inactive a, .sf-chat-rating, .sf-chat-users-levelheader, .sfArtworkSmallWrapper a.sfTextMedLight, #sf-userinfo-outer .sfTextMedLight:not(.sfTextMedium), .sf-story-wide .sf-story-tags, .sf-market-browse-offer .sfTextMedLight, .forum_fp_postsignature, .sftagbrowser-browselink a {color: #777777 !important;}\n .sfTextMedDark .sfTextMedLight, .sf-comment-date.sfTextMedium, .sf-story abbr, .sf-story .sfTextMedium, #sf-accounts a {color: #806275 !important;}\n .sfTextMedDark span span p, div.sfCommentBody p, .sf-story:hover .sf-story-tags a, .sf-content-invisible p, .row label, .view legend, .section-title, #sfContentBody.sfTextMedDark p, .sflabel.biglabel, .sf-chat-roomlist-room a, .sf-chat-header-text, #sf-chat-users a, #sf-userinfo-outer .sfTextMedium, .sf-story-wide:hover .sf-story-tags, #sfCommentBody.sfTextMedDark p, .sf-market-browse-offer .sfTextMedium {color: #333333 !important;}\n span.sfTextMedDark span span a, a.wide-inactive, div.sfCommentBody a, .sfTextAttention, .sf-story-headline a, .sf-story-big-headline a, .sidebarfilter-active, .sidebarfilter:not(.sidebarfilter-inactive) a, a.display-button:hover, a.display-button-active:hover, .section-content a, td.link-column a, .sf-chat-username a, .watchlist_tabs a, .js_select_none, .js_select_all, .watchlist_meta a, table.items tr.active a, table.items tr.inactive a, .sf-sidebar .section a, .forumtitle a, .verysmalllabel, #sfContentTitle, .sf-browse-simpleitem:hover a, .sf-browse-shortlist a, .sf-browse-shortlist-zebra a, .sf-profile-avatarcontainer span, .watchlist_item a, .details a, .section-title-highlight, #sf-socialize input, .forum_threads a, .sf-market-browse-offer a, .forum_fp_header a, #sfContentBody a, .bigsubmit, .smallsubmit, .smalllabel a, .sf-avatar-provided a {color: #502040 !important;}\n .forumtitle-background tbody a {color: #885577 !important;}\n .sf-tabbar-inner a {color: white !important; text-shadow: 0px 1px black !important;}\n span.sfTextMedDark span span span span span:not(.sfTextMedLight), .sf-watermark span {color: black !important;}\n .sticky {position: fixed !important; width: 100% !important; left: 0; top: 0; z-index: 100; border-top: 0 !important;}\n .script {width: 90px !important;}\n .topbar ul.dropdown {background: rgba(70,40,40,0.9) !important;}\n .popbox {display: block; position: fixed; top: 50%; left: 50%; z-index: 99999; width: 100px; height: 100px; padding: 10px; background: rgba(255,100,162,0.8); color: white; border: 1px solid #CE0053; margin: 0px; -webkit-box-shadow: -50px 50px 50px -50px rgba(164, 164, 164, 1); box-shadow: 0px 0px 5px 0px rgba(100, 100, 100, 1); border-radius:25px;}";
else if (color == "silver")
css = ".topbar-cont, .sftc-title, .sftc-title a, .sf-footer-breadcrumb, .topbar-cont a:not(.drop):link, .topbar-cont button, #sf-chat-inputarea, .button.buttonsmall, .sf-tabbar a.button:hover, ul.tabs, ul.tabs a, .button-bar, #nuke_everything, #nuke_current_tab, #nuke_selected:active, #sfCommentReplyContainer input, .pager input, .sf-content a.button, #yt29, #yt31, .topbar-cont #yt0, .sf-tabbar-inner a.current, .button-bar input, .sf-sidebar input:not(#suggestedtags):not(#sidebarsearch), .row.submit input, .thread_actions input, #nuke_selected {background: -moz-linear-gradient(top, #FFFFFF 0%, #888888 50%, #000000 100%) !important; background: -webkit-linear-gradient(top, #FFFFFF 0%, #888888 50%, #000000 100%); color: white; text-shadow: 0px 1px black !important; border-color: #888888 !important; color: white !important;}\n #yt1, #yt29:hover, #yt31:hover, .sf-tabbar, .sf-tabbar a.button, ul.tabs a.active, .sffile span, .button-bar input:hover, .pager input:hover, #sfCommentReplyContainer input:hover, .sf-sidebar input:hover:not(#sidebarsearch):not(#suggestedtags), #nuke_everything:hover, #nuke_current_tab:hover, .sf-content a.button:hover, .row.submit input:hover, .thread_actions input:hover {background: -moz-linear-gradient(top, #FFFFFF 0%, #AAAAAA 50%, #444444 100%) !important; background: -webkit-linear-gradient(top, #FFFFFF 0%, #AAAAAA 50%, #444444 100%); color: white; text-shadow: 0px 1px black; border-color: #888888 !important;}\n .topbar-cont button:hover, #headersearch, .sftc-title a:hover, .button.buttonsmall:hover, ul.tabs a:hover:not(.active), #LoginForm_sfLoginUsername, #LoginForm_sfLoginPassword, .topbar-cont #yt0:hover, .button-bar a.button:hover, .bbcode_quote_head {background: -moz-linear-gradient(top, #BBBBBB 0%, #666666 50%, #000000 100%) !important; background: -webkit-linear-gradient(top, #BBBBBB 0%, #666666 50%, #000000 100%); border-color: #888888 !important;}\n .sf-tag, li.page.selected a, .pager a:hover, .totalItems, .sf-comment-options, .sf-chat-roomlist-active, .sf-browse-shortlist, .meterorange, .wide-active, .sf-story:hover, .forum_forumpost.even, tr.item.even, .watchlist_item.type0.selected, .watchlist_item.type1.selected, .watchlist_item.type2.selected, .watchlist_item.type3.selected, .watchlist_item.type4.selected, .sf-item-h-info-content, .display-button-active, .items .even {background: -moz-linear-gradient(top left, #888888 0%, #DDDDDD 50%, #888888 100%) !important; background: -webkit-linear-gradient(top left, #888888 0%, #DDDDDD 50%, #888888 100%);}\n a#sf-userinfo-outer:hover, .sf-story-big, .title.sfTextMedDark, .wide-inactive-sub:hover, #sf-textcontent-controls, .context-menu-root, table.items tr.active, .sf-market-browse-offer {background: -moz-linear-gradient(top, #BBBBBB 0%, #FFFFFF 100%) !important; background: -webkit-linear-gradient(top, #BBBBBB 0%, #FFFFFF 100%);}\n #sf-textcontent-controls li:hover, #sf-chat-submit, input#addtagsform_submit, #sf-socialize input:hover {background: -moz-linear-gradient(top, #DDDDDD 0%, #DDDDDD 50%, #AAAAAA 50%, #AAAAAA 100%) !important; background: -webkit-linear-gradient(top, #DDDDDD 0%, #DDDDDD 50%, #AAAAAA 50%, #AAAAAA 100%); color: #666666; text-shadow: 0px 1px white; border-color: #666666;}\n div.sf-content, .sfCommentBody, .sf-sidebar, .sf-main, .sf-chat-dynamic td, .sf-content h2:not(.forumtitle), .sf-external-title, fieldset#general, fieldset#notifications, div.banner, div.watchlist, .watchlist-nuke, .date-tile, .watchlist-wrapper form, #sffp-intro, .sf-browse-shortlist-zebra, h4, fieldset, div.grey, .popover-content, .bigsubmit, .smallsubmit {background: #EEEEEE !important;}\n .wide-inactive:hover, .sfArtworkSmallWrapper_fit:hover, .sf-carousel-container, .sfArtworkSmallWrapper:hover, .sf-browse-displaymodes .display-button:hover, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story-wide:hover, .bbcode_quote_body, .sfpreviewbox, .sfpreviewboxsmall {background: #DDDDDD !important;}\n .sf-watermark, .sf-chat-header-text, ul.watchlist_tabs a:visited, .wide-active-sub {background: #BBBBBB !important;}\n .sf-draggable a, .topbar-cont a.avatar, .forumtitle, .forumtitle-background, .sf-content p:not(.user-stats) {background: transparent !important;}\n span.user-info, div.user-info {background: -moz-linear-gradient(top left, rgba(80,80,80,0.6) 0%, rgba(210,210,210,0.6) 50%, rgba(80,80,80,0.6) 100%) !important; background: -webkit-linear-gradient(top left, #8C8C8C 0%, #D4D4D4 50%, #8C8C8C 100%);}\n .watchlist_item, textarea#sfCommentReplyTextarea, #sf-profile-wide-nav, #sf-accounts, .sf-carousel-container, .sf-watermark, .sfCommentBody, .wide-active-sub, .wide-inactive-sub:hover, .dropdown.wide, .dropdown.wide li, .sf-profile-avatarcontainer, .sf-browse-displaymodes a, .sf-tabbar-inner a, #sf-socialize, .sfArtworkSmallInner.submissiononhold, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story-wide:hover, .sfTextMedDark span span, li.current a, tbody tr, .vertical .row.submit, .topbar-cont ul.dropdown, .bbcode_quote_body, .topbar-cont a.button {border-color: #888888 !important;}\n .sf-browse-displaymodes, .sf-content form td, .sf-content form th, .watchlist_header, #sf-textcontent-controls li, table.items thead th, .sf-chat-users-levelheader, h4, .sf-story-wide, .even td, .odd td, .forum_forumpost {border-bottom-color: #888888 !important;}\n .sf-content form th, .watchlist-nuke, li.current a, #sf-textcontent-controls li, fieldset p.row, .forum_fp_postsignature {border-top-color: #888888 !important;}\n .title.sfTextMedDark, #sf-textcontent-controls, .sfCommentChildrenOuter, .sf-story, .wide-active {border-color: transparent !important;}\n .tag.sfTextDark {border-color: #AAAAAA !important;}\n li.current a {border-bottom-color: #DDDDDD !important;}\n .sf-story .sf-story-tags a, #sfContentDescription p, #section-favors-footer.section-footer a, .sf-story-big-tags a, .sidebarfilter-inactive a, .sf-chat-rating, .sf-chat-users-levelheader, .sfArtworkSmallWrapper a.sfTextMedLight, #sf-userinfo-outer .sfTextMedLight:not(.sfTextMedium), .sf-story-wide .sf-story-tags, .sf-market-browse-offer .sfTextMedLight, .forum_fp_postsignature, .sftagbrowser-browselink a {color: #777777 !important;}\n .sfTextMedDark .sfTextMedLight, .sf-comment-date.sfTextMedium, .sf-story abbr, .sf-story .sfTextMedium, #sf-accounts a {color: #666666 !important;}\n .sfTextMedDark span span p, div.sfCommentBody p, .sf-story:hover .sf-story-tags a, .sf-content-invisible p, .row label, .view legend, .section-title, #sfContentBody.sfTextMedDark p, .sflabel.biglabel, .sf-chat-roomlist-room a, .sf-chat-header-text, #sf-chat-users a, #sf-userinfo-outer .sfTextMedium, .sf-story-wide:hover .sf-story-tags, #sfCommentBody.sfTextMedDark p, .sf-market-browse-offer .sfTextMedium {color: #333333 !important;}\n span.sfTextMedDark span span a, a.wide-inactive, div.sfCommentBody a, .sfTextAttention, .sf-story-headline a, .sf-story-big-headline a, .sidebarfilter-active, .sidebarfilter:not(.sidebarfilter-inactive) a, a.display-button:hover, a.display-button-active:hover, .section-content a, td.link-column a, .sf-chat-username a, .watchlist_tabs a, .js_select_none, .js_select_all, .watchlist_meta a, table.items tr.active a, table.items tr.inactive a, .sf-sidebar .section a, .forumtitle a, .verysmalllabel, #sfContentTitle, .sf-browse-simpleitem:hover a, .sf-browse-shortlist a, .sf-browse-shortlist-zebra a, .sf-profile-avatarcontainer span, .watchlist_item a, .details a, .section-title-highlight, #sf-socialize input, .forum_threads a, .sf-market-browse-offer a, .forum_fp_header a, #sfContentBody a, .bigsubmit, .smallsubmit, .smalllabel a, .sf-avatar-provided a {color: #151515 !important;}\n .forumtitle-background tbody a {color: #555555 !important;}\n .sf-tabbar-inner a {color: white !important; text-shadow: 0px 1px black !important;}\n span.sfTextMedDark span span span span span:not(.sfTextMedLight), .sf-watermark span {color: black !important;}\n .sfCommentBody, .sf-story:hover, .watchlist_item.type1.selected, .sf-carousel-container, .watchlist .type0:hover, .watchlist .type1:hover, .watchlist .type2:hover .watchlist.type3:hover, .watchlist .type4:hover {box-shadow: 4px 4px 2px #333333 !important;}\n .wide-active, .sf-chat-roomlist-active, #sf-profile-wide-nav, #sf-accounts, .display-button-active, #sf-socialize {box-shadow: 2px 2px 1px #333333 !important;}\n .sticky {position: fixed !important; width: 100% !important; left: 0; top: 0; z-index: 100; border-top: 0 !important;}\n .script {width: 90px !important;}\n .topbar ul.dropdown {background: rgba(50,50,50,0.9) !important;}\n .popbox {display: block; position: fixed; top: 50%; left: 50%; z-index: 99999; width: 100px; height: 100px; padding: 10px; background: rgba(160,160,160,0.8); color: white; border: 1px solid #646464; margin: 0px; -webkit-box-shadow: -50px 50px 50px -50px rgba(164, 164, 164, 1); box-shadow: 0px 0px 5px 0px rgba(100, 100, 100, 1); border-radius:25px;}";
else if (color == "dark")
css = "a#sf-userinfo-outer:hover, .sf-story-big, .title.sfTextMedDark, .wide-inactive-sub:hover, #sf-textcontent-controls, .context-menu-root, .sf-market-browse-offer, .bigsubmit:hover, .smallsubmit:hover, .display-button, body, .note.sfTextMedDark, #sfContentBody p span, .popover-content, .popover-arrow {background: #111111 !important;}\n .topbar-cont, .sftc-title, .sftc-title a, .sf-footer-breadcrumb, .topbar-cont a:not(.drop):link, .topbar-cont button, #sf-chat-inputarea, .button.buttonsmall, .sf-tabbar a.button:hover, ul.tabs, ul.tabs a, .button-bar, #nuke_everything, #nuke_current_tab, #nuke_selected:active, #sfCommentReplyContainer input, .pager input, .sf-content a.button, #yt29, #yt31, .topbar-cont #yt0, .sf-tabbar-inner a.current, .button-bar input, .sf-sidebar input:not(#suggestedtags):not(#sidebarsearch), .row.submit input, .thread_actions input, #nuke_selected, #sidebarsearch, .sfBrowseList input, .section-footer .button, #site-updates #yt0 {background: -moz-linear-gradient(top, #333333 0%, #222222 100%) !important; background: -webkit-gradient(linear, center top, center bottom, from(#333333), to(#222222)) !important; color: white; text-shadow: 0px 1px black !important; border-color: #222222 !important; color: white !important;}\n #yt1, #yt29:hover, #yt31:hover, #site-updates #yt0:hover, .sf-tabbar, .sf-tabbar a.button, ul.tabs a.active, .sffile span, .button-bar input:hover, #sfCommentReplyContainer input:hover, .sf-sidebar input:hover:not(#sidebarsearch):not(#suggestedtags), #nuke_everything:hover, #nuke_current_tab:hover, .sf-content a.button:hover, .row.submit input:hover, .thread_actions input:hover, #suggestedtags, .sfBrowseList input:hover, .section-footer .button:hover {background: -moz-linear-gradient(top, #555555 0%, #222222 100%) !important; background: -webkit-linear-gradient(top, #555555 0%, #222222 100%); color: white; text-shadow: 0px 1px black; border-color: #333333 !important; border-top-color: #333333 !important;}\n .topbar-cont button:hover, #headersearch, .sftc-title a:hover, .button.buttonsmall:hover, ul.tabs a:hover:not(.active), #LoginForm_sfLoginUsername, #LoginForm_sfLoginPassword, .topbar-cont #yt0:hover, .button-bar a.button:hover, .bbcode_quote_head {background: -moz-linear-gradient(top, #333333 0%, #111111 100%) !important; background: -webkit-linear-gradient(top, #333333 0%, #111111 100%); border-color: #333333 !important;}\n #sf-textcontent-controls li:hover {background: -moz-linear-gradient(left, #202020 0%, #333333 100%) !important; background: -webkit-linear-gradient(left, #202020 0%, #333333 100%); border-style: none !important;}\n .sf-footer {background-color: #111111;}\n table.items tr.active, .sfGeneralInfoMessage, .meterorange, .sf-comment-options, span.note, #adult-profile, #profile, #signature, #sfCommentReplyTextarea, #Post_message, #PrivateMessage_message, #PrivateMessage_toUserName, #PrivateMessage_subject, #UploadForm_description, #UploadForm_P_title, #sf-upload-tags, #UploadForm_newFolderName, #sf-chat-input, .redactor_, .redactor_:focus, .bbcode_quote_body {background: #222222 !important;}\n .meterorange span {background: #AA5500 !important;}\n .sfGeneralInfoMessage, .topbar img, #adult-profile, #profile, #signature {border-color: #222222 !important;}\n #sf-chat-submit, input#addtagsform_submit, #sf-socialize div:hover {color: #666666; text-shadow: 0px 1px white; border-color: #333333;}\n div.sf-content, .sfCommentBody, .sf-sidebar, .sf-main, .sf-chat-dynamic td, .sf-content h2:not(.forumtitle), .sf-external-title, fieldset#general, fieldset#notifications, div.banner, div.watchlist, .watchlist-nuke, .date-tile, .watchlist-wrapper form, #sffp-intro, .sf-browse-shortlist-zebra, h4, fieldset, div.grey, .bigsubmit, .smallsubmit {background: #111111 !important;}\n #sffp-events {background:#222222 !important; border-color:#222222 !important;}\n #sffp-stories, #sffp-art, #sffp-photos, #sffp-music, .totalItems {background:#333333 !important; border-color:#222222 !important}\n .wide-inactive:hover, .sfArtworkSmallWrapper_fit:hover, .sf-carousel-container, .watchlist_item.selected, .sf-browse-displaymodes .display-button:hover, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover {background: #111111 !important;}\n .sf-watermark, .sf-chat-roomlist-active, .sf-chat-header-text, ul.watchlist_tabs a, .sf-item-h-info-content, .wide-active, .wide-active-sub, .sf-browse-shortlist, .item.even.unread, .display-button-active, .even, .sfpreviewbox, .sfpreviewboxsmall {background: #111111 !important;}\n .sf-draggable a, .topbar-cont a.avatar, .forumtitle, .forumtitle-background, .sf-content p:not(.user-stats) {background: transparent !important;}\n span.user-info, div.user-info {background: rgba(0,0,0,0.6) !important;}\n .sf-tag, li.page.selected a, .pager a:hover {background: #111111 !important; box-shadow: 1px 1px #333333 !important;}\n .watchlist_item, textarea#sfCommentReplyTextarea, #sf-profile-wide-nav, #sf-accounts, .sf-carousel-container, .sf-watermark, .sfCommentBody, .wide-active-sub, .wide-inactive-sub:hover, .dropdown.wide, .dropdown.wide li, .sf-profile-avatarcontainer, .sf-browse-displaymodes a, .sf-tabbar-inner a, #sf-socialize, .sfArtworkSmallInner.submissiononhold, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .sfTextMedDark span span, li.current a, tbody tr, .vertical .row.submit, .topbar-cont ul.dropdown, .bbcode_quote_body, .topbar, #sf-textcontent-controls li, .topbar-cont .button, #Post_message, #PrivateMessage_message, #PrivateMessage_toUserName, #PrivateMessage_subject, #UploadForm_description, #UploadForm_P_title, #sf-upload-tags, #UploadForm_newFolderName, #sf-chat-input, .redactor_box, .popover-content {border-color: #333333 !important;}\n .sf-story-big, .sf-market-browse-offer, .wide-active {border-color: #666666 !important;}\n #sf-textcontent-controls li {border-style: solid !important; border-width: 1px !important; text-shadow: none !important;}\n .sf-browse-displaymodes, .sf-content form td, .sf-content form th, .watchlist_header, #sf-textcontent-controls li, table.items thead th, .sf-chat-users-levelheader, h4, .sf-story-wide, .even td, .odd td, .forum_forumpost {border-bottom-color: #333333 !important;}\n .sf-content form th, .watchlist-nuke, li.current a, #sf-textcontent-controls li, fieldset p.row, .forum_fp_postsignature, .topbar-cont ul.dropdown a {border-top-color: #333333 !important;}\n .title.sfTextMedDark, #sf-textcontent-controls, .sfCommentChildrenOuter {border-style: none !important;}\n .sf-story .sf-story-tags a, #sfContentDescription p, #section-favors-footer.section-footer a, .sf-story-big-tags a, .sidebarfilter-inactive a, .sf-chat-rating, .sf-chat-users-levelheader, .sfArtworkSmallWrapper a.sfTextMedLight, #sf-userinfo-outer .sfTextMedLight:not(.sfTextMedium), .sf-story-wide .sf-story-tags, .sf-market-browse-offer .sfTextMedLight, .forum_fp_postsignature, .sftagbrowser-browselink a, .sfTextDark, table.items td, .forumtitle-background tbody tr {color: #666666 !important; text-shadow: none !important;}\n .sfTextMedDark .sfTextMedLight, .sf-comment-date.sfTextMedium, .sf-story abbr, .sf-story .sfTextMedium, #sf-accounts a, .forum_fp_postbody, table.items td, .sf-profile-content p, h3 a:hover, #site-updates p, .dated-list-item p:not(.date-tile), .sf-content p, .sf-browse-shortlist, .sf-browse-shortlist-main, .sf-browse-shortlist-zebra {color: #777777 !important; text-shadow: none !important;}\n .sfTextMedDark span span p, div.sfCommentBody p, .sfCommentBody, .sf-story:hover .sf-story-tags a, .sf-content-invisible p, .row label, .view legend, .section-title, #sfContentBody.sfTextMedDark p, .sflabel.biglabel, .sf-chat-roomlist-room a, .sf-chat-header-text, #sf-chat-users a, #sf-userinfo-outer .sfTextMedium, .sf-story-wide:hover .sf-story-tags, #sfCommentBody.sfTextMedDark p, .sf-market-browse-offer .sfTextMedium, .section-content, .sf-chat-message, tr.active td, tr.inactive, form, span:not(.sfTextMedLight):not(.sfTextMedDark):not(.number), .sfGeneralInfoMessage, #adult-profile, #profile, #signature, #sfCommentReplyTextarea, #Post_message, #PrivateMessage_toUserName, #PrivateMessage_message, #PrivateMessage_subject, #UploadForm_P_title, #UploadForm_description, #sf-upload-tags, #UploadForm_newFolderName, #sf-chat-input, .watchlist_item .tags a, .bbcode_quote_body {color: #AAAAAA !important; text-shadow: none !important;}\n span.sfTextMedDark span span a, a.wide-inactive, div.sfCommentBody a, .sfTextAttention, .sf-story-headline a, .sf-story-big-headline a, .sidebarfilter-active, .sidebarfilter:not(.sidebarfilter-inactive) a, a.display-button:hover, a.display-button-active:hover, .section-content a, td.link-column a, .sf-chat-username a, .watchlist_tabs a, .js_select_none, .js_select_all, .watchlist_meta a, table.items tr.active a, table.items tr.inactive a, .sf-sidebar .section a, .forumtitle a, .verysmalllabel, #sfContentTitle, .sf-browse-simpleitem:hover a, .sf-browse-shortlist a, .sf-browse-shortlist-zebra a, .sf-profile-avatarcontainer span, .watchlist_item h3 a, .details a, .section-title-highlight, #sf-socialize input, .forum_threads a, .sf-market-browse-offer a, .forum_fp_header a, #sfContentBody a, .bigsubmit, .smallsubmit, .smalllabel a, .sf-avatar-provided a, .sf-content a, .forumtitle-background tbody a, .wide-active, .forum_fp_header input {color: #C0C0C0 !important; text-shadow: none !important;}\n table.items th, .sidebarfilter-label {color:#778595 !important;}\n .sf-tabbar-inner a {color: white !important; text-shadow: 0px 1px black !important;}\n .sfCommentBody, span.sfTextMedDark span span span span span:not(.sfTextMedLight) {color:#AAAAAA !important; text-shadow: none !important;}\n .inner, h1 {text-shadow: none !important;}\n .sfwlabel {background:rgba(33,33,33,0.7) !important;} .sticky {position: fixed !important; width: 100% !important; left: 0; top: 0; z-index: 100; border-top: 0 !important;}\n .script {width: 90px !important;}\n .topbar ul.dropdown {background: rgba(33,33,33,0.8) !important;}\n .popbox {display: block; position: fixed; top: 50%; left: 50%; z-index: 99999; width: 100px; height: 100px; padding: 10px; background: rgba(34,34,34,0.8); color: white; border: 1px solid #4D4F53; margin: 0px; -webkit-box-shadow: -50px 50px 50px -50px rgba(164, 164, 164, 1); box-shadow: 0px 0px 5px 0px rgba(100, 100, 100, 1); border-radius:25px;}\n .sf-story:hover, .wide-inactive:hover, #sf-socialize form:hover, .sfArtworkSmallWrapper_fit:hover, .sfArtworkSmallInner:hover, .sfArtworkSmallWrapper:hover {background: none !important;}";
else if (color == "FA")
css = "#headersearch, ul.tabs a.active {background: white !important; color: #333 !important; text-shadow: none !important;}\n #sf-chat-submit, #sf-chat-downloadbutton, #sf-chat-linkrow a.button, .sf-tabbar-inner a.button, #sf-roomlist a.button, #replyarea a, .row.submit input, #sf-viewcontent-content a.button {background: white !important; color: #2E3A41 !important; text-shadow: none !important;} .sf-sidebar input:not(#suggestedtags):not(#sidebarsearch) {background: white !important; color: #333 !important; text-shadow: none !important; padding: 4px !important;} #nuke_everything, #nuke_current_tab, #nuke_selected {background: #FFAAAA !important; color: #333 !important; text-shadow: none !important; padding-top: 0px; padding-bottom: 0px; padding-left: 6px; padding-right: 6px; border-radius: 0px !important;}\n .sf-comment-options, .wide-active, .pager a:visited, .pager a:hover, #sf-textcontent-controls li:hover, .even, .display-button-active, ul.watchlist_tabs li.current a, .sf-watermark, .sf-chat-roomlist-active, #sf-chat-inputarea, .sfpreviewbox, .sfpreviewboxsmall, .item.even.unread, .sfGeneralInfoMessage, .watchlist_item.selected, .meterorange, .selected > a, .selected, .note, .sf-browse-shortlist, .totalItems {background: #6A7283 !important; border-color: #3A4253 !important;}\n .topbar, .topbar li a:not(.drop), .topbar-cont button, #LoginForm_sfLoginUsername, #LoginForm_sfLoginPassword, .topbar-user a.button {background: #202224 !important; border-color: transparent !important;}\n .topbar-cont a:not(.drop):hover, .topbar-cont button:hover {background: #2E2E2E !important; border-color: transparent !important;}\n .sftc-title, .sftc-title li:not(.current) a, .sf-footer-breadcrumb, .button.buttonsmall, .sf-tabbar-inner a.current, ul.tabs, ul.tabs a, .button-bar, .sf-content a.button, .topbar-cont #yt0, #site-updates #yt0, .button-bar input:not(#yt0), .thread_actions input, .sfBrowseList input, .section-footer .button, .sf-item-h-info-content, .sf-tabbar {background: #6A7283 !important; color: white; text-shadow: 0px 1px black !important; border-style: none !important; color: white !important;}\n #sfCommentReplyContainer input, .pager input, #yt29, #yt30, #yt31, #yt32, .sf-list-search #yt1, .thread_actions_inline #yt1, .watch_action.last input {background: white !important; color: #2E3A41 !important; text-shadow: none !important; border-style: solid !important; border-width: 1px !important; border-color: #CACBCC !important; border-radius: 0px !important; padding: 2px !important;}\n .sf-story-big, .title.sfTextMedDark, #sf-textcontent-controls, .context-menu-root, .sf-market-browse-offer, .bigsubmit:hover, .smallsubmit:hover, .display-button, body, span.note.sfTextMedDark, #sfContentBody p span {background: #2E3A41 !important;} .sf-footer {background-color: #2E3A41;}\n .meterorange span.note {background: #222222 !important;}\n .meterorange span {background: #AA5500 !important;}\n .sfGeneralInfoMessage, .topbar img, #replyarea a {border-color: #222222 !important;}\n div.sf-content, .sfCommentBody, .sf-sidebar, .sf-main, .sf-chat-dynamic td, .sf-content h2:not(.forumtitle), .sf-external-title, fieldset#general, fieldset#notifications, div.banner, div.watchlist, .watchlist-nuke, .date-tile, .watchlist-wrapper form, #sffp-intro, .sf-browse-shortlist-zebra, h4, fieldset, div.grey, .bigsubmit, .smallsubmit {background: #2E3A41 !important;}\n .carousel-wrapper, #sffp-events {background:#2E3A41 !important; border-color:#2E3A41 !important;}\n #sffp-stories, #sffp-art, #sffp-photos, #sffp-music {background:#2E3A41 !important; border-width: 2px !important; border-color:#6A7283 !important}\n .sf-draggable a, .topbar-cont a.avatar, .forumtitle, .forumtitle-background, .sf-content p:not(.user-stats), .drop, .drop:hover, .sf-tag {background: transparent !important;}\n span.user-info, div.user-info {background: rgba(0,0,0,0.6) !important;}\n #sf-profile-wide-nav, #sf-accounts, .sf-carousel-container, .sfCommentBody, .wide-active-sub, .dropdown.wide, .dropdown.wide li, .sf-profile-avatarcontainer, .sf-browse-displaymodes a, .sf-tabbar-inner a, #sf-socialize, .sfArtworkSmallInner.submissiononhold, .sfTextMedDark span span, li.current a, tbody tr, .vertical .row.submit, .bbcode_quote_body, .topbar, #sf-textcontent-controls li, .topbar-cont .button, .forums th, ul.watchlist_tabs li.current a, #sf-chat-submit {border-color: #6A7283 !important;}\n .sf-story-big, .sf-market-browse-offer, .wide-active {border-color: #6A7283 !important; border-width: 2px !important; border-radius: 0px !important;}\n #sf-textcontent-controls li, #replyarea a {border-style: solid !important; border-width: 1px !important; text-shadow: none !important;}\n .sf-browse-displaymodes, .sf-content form td, .sf-content form th, .watchlist_header, #sf-textcontent-controls li, table.items thead th, .sf-chat-users-levelheader, h4, .sf-story-wide, .even td, .odd td, .forum_forumpost {border-bottom-color: #6A7283 !important;}\n .sf-content form th, .watchlist-nuke, li.current a, #sf-textcontent-controls li, fieldset p.row, .forum_fp_postsignature {border-top-color: #6A7283 !important;}\n .title.sfTextMedDark, #sf-textcontent-controls, .sfCommentChildrenOuter, .topbar {border-style: none !important;}\n .sf-story .sf-story-tags a, #sfContentDescription p, #section-favors-footer.section-footer a, .sf-story-big-tags a, .sidebarfilter-inactive a, .sf-chat-rating, .sf-chat-users-levelheader, .sfArtworkSmallWrapper a.sfTextMedLight, #sf-userinfo-outer .sfTextMedLight:not(.sfTextMedium), .sf-story-wide .sf-story-tags, .sf-market-browse-offer .sfTextMedLight, .forum_fp_postsignature, .sftagbrowser-browselink a, .sfTextDark, .forumtitle-background tbody tr {color: #666666 !important; text-shadow: none !important;}\n .sf-comment-date.sfTextMedium, .sf-story abbr, .sf-story .sfTextMedium, .forum_fp_postbody, table.items td, .sf-profile-content p, h3 a:hover, #site-updates p, .dated-list-item p:not(.date-tile), .sf-content p, .sf-browse-simpleitem span {color: #777777 !important; text-shadow: none !important;}\n .sfTextMedDark span span p, div.sfCommentBody p, .sfCommentBody, .sf-story:hover .sf-story-tags a, .sf-content-invisible p, .row label, .view legend, .section-title, #sfContentBody.sfTextMedDark p, .sflabel.biglabel, .sf-chat-roomlist-room a, .sf-chat-header-text, #sf-chat-users a, .sf-story-wide:hover .sf-story-tags, #sfCommentBody.sfTextMedDark p, .sf-market-browse-offer .sfTextMedium, .section-content, .sf-chat-message, tr.active td, tr.inactive, form, span:not(.sfTextMedLight):not(.sfTextMedDark):not(.number), .sfGeneralInfoMessage, table.items td, .forums td, .sftc-content span.sfTextMedDark, .sf-content, .watchlist_item .tags a, .pager li:not(.selected) a, .sf-sidebar a, .forum_threads tr, .forum_threads th, .forum_forumpost.odd div:not(.bbcode_quote_body):not(.bbcode_quote_head) {color: #AAAAAA !important; text-shadow: none !important;}\n span.sfTextMedDark span span a, .sfTextAttention, .sf-story-headline a, .sf-story-big-headline a, .sidebarfilter-active, .sidebarfilter:not(.sidebarfilter-inactive) a, a.display-button:hover, a.display-button-active:hover, td.link-column a, .sf-chat-username a, .watchlist_tabs a, .js_select_none, .js_select_all, .watchlist_meta a, table.items tr.inactive a, .forumtitle a, .verysmalllabel, #sfContentTitle, .sf-browse-simpleitem:hover a, .sf-browse-shortlist a, .sf-browse-shortlist-zebra a, .sf-profile-avatarcontainer span, .watchlist_item h3 a, .details a, .section-title-highlight, #sf-socialize input, .forum_threads a, .sf-market-browse-offer a, .forum_fp_header a, #sfContentBody a, .bigsubmit, .smallsubmit, .smalllabel a, .sf-avatar-provided a, .sf-content a, .forumtitle-background tbody a, .wide-active, .forum_fp_header input, .sf-watermark span, #submission_tags a:hover, .sfGeneralInfoMessage, .forum_forumpost.even div:not(.bbcode_quote_body):not(.bbcode_quote_head) {color: #CCCCCC !important; text-shadow: none !important;}\n table.items th, .sidebarfilter-label {color:#778595 !important;}\n .sf-tabbar-inner a {color: white !important; text-shadow: 0px 1px black !important;}\n .sfCommentBody, span.sfTextMedDark span span span span span:not(.sfTextMedLight) {color:#AAAAAA !important; text-shadow: none !important;}\n .inner, h1 {text-shadow: none !important;}\n .sfwlabel {background:rgba(33,33,33,0.7) !important;} .sticky {position: fixed !important; width: 100% !important; left: 0; top: 0; z-index: 100; border-top: 0 !important;}\n .script {width: 90px !important;}\n a.wide-inactive, #sf-userinfo-outer, .items tr td, .items, .watchlist_item, .sfGeneralInfoMessage {border-color: transparent !important;}\n .items .active, .watchlist_item.selected {background: #415054 !important;}\n .items .inactive:hover {background: #314044 !important;}\n .sfCommentBody, .sf-comment-options, #sf-accounts, #sf-profile-wide-nav, .sf-carousel-container, .sf-watermark {border-radius: 0px !important;}\n .wide-inactive:hover, .sfCommentBody a:hover, .link-column a:hover, .sfArtworkSmallWrapper a.sfTextMedLight, .sf-story .sfTextAttention, .sf-story-big .sfTextAttention, span.data span:not(.sfTextAttention) a, #sf-accounts a, .topbar button:hover, .drop:hover, .forum_subject a:hover, .forums th, .items .active a, .watchlist_meta a, #submission_tags a, .section-content a, #sf-userinfo-outer .sfTextMedium, .sf-tabbar-inner a:not(.current):not(.button):hover, .forum_fp_username a, .forum_last_reply a {color: #ADADFF !important;}\n .sf-story:hover, .sf-story-wide:hover {border-color: transparent !important;}\n ul.dropdown {background: rgba(32,34,36,0.9) !important;}\n .dropdown li, .dropdown a, .dropdown {border-color: rgba(32,34,36,0.9) !important;}\n .sftc-title a:hover {color: white !important;}\n .sftc-title li.current a {background: #4A505B !important;}\n .popbox {display: block; position: fixed; top: 50%; left: 50%; z-index: 99999; width: 100px; height: 100px; padding: 10px; background: rgba(24,31,35,0.8); color: white; border: 1px solid #384750; margin: 0px; -webkit-box-shadow: -50px 50px 50px -50px rgba(164, 164, 164, 1); box-shadow: 0px 0px 5px 0px rgba(100, 100, 100, 1); border-radius:25px;}\n .sf-story:hover, .wide-inactive:hover, #sf-socialize form:hover, .sfArtworkSmallWrapper_fit:hover {background: none !important;}";
else if (color == "darkred")
css = "#headersearch, ul.tabs a.active {background: white !important; color: #333 !important; text-shadow: none !important;}\n #sf-chat-submit, #sf-chat-downloadbutton, #sf-chat-linkrow a.button, .sf-tabbar-inner a.button, #sf-roomlist a.button, #replyarea a, .row.submit input, #sf-viewcontent-content a.button {background: white !important; color: #7F0000 !important; text-shadow: none !important;} .sf-sidebar input:not(#suggestedtags):not(#sidebarsearch) {background: white !important; color: #333 !important; text-shadow: none !important; padding: 4px !important;} #nuke_everything, #nuke_current_tab, #nuke_selected {background: #FFAAAA !important; color: #333 !important; text-shadow: none !important; padding-top: 0px; padding-bottom: 0px; padding-left: 6px; padding-right: 6px; border-radius: 0px !important;}\n .sf-comment-options, .wide-active, .pager a:visited, .pager a:hover, #sf-textcontent-controls li:hover, .even, .display-button-active, ul.watchlist_tabs li.current a, .sf-watermark, .sf-chat-roomlist-active, #sf-chat-inputarea, .sfpreviewbox, .sfpreviewboxsmall, .item.even.unread, .sfGeneralInfoMessage, .watchlist_item.selected, .meterorange, .selected > a, .selected, .note, .sf-browse-shortlist, .totalItems {background-color: #7F0000 !important; border-color: #EF2010 !important;}\n .topbar, .topbar li a:not(.drop), .topbar-cont button, #LoginForm_sfLoginUsername, #LoginForm_sfLoginPassword, .topbar-user a.button {background: #202224 !important; border-color: transparent !important;}\n .topbar-cont a:not(.drop):hover, .topbar-cont button:hover {background: #2E2E2E !important; border-color: transparent !important;}\n .sftc-title, .sftc-title li:not(.current) a, .sf-footer-breadcrumb, .button.buttonsmall, .sf-tabbar-inner a.current, ul.tabs, ul.tabs a, .button-bar, .sf-content a.button, .topbar-cont #yt0, #site-updates #yt0, .button-bar input:not(#yt0), .thread_actions input, .sfBrowseList input, .section-footer .button, .sf-item-h-info-content, .sf-tabbar {background: #6A7283 !important; color: white; text-shadow: 0px 1px black !important; border-style: none !important; color: white !important;}\n #sfCommentReplyContainer input, .pager input, #yt29, #yt30, #yt31, #yt32, .sf-list-search #yt1, .thread_actions_inline #yt1, .watch_action.last input {background: white !important; color: #2E3A41 !important; text-shadow: none !important; border-style: solid !important; border-width: 1px !important; border-color: #CACBCC !important; border-radius: 0px !important; padding: 2px !important;}\n .sf-story-big, .title.sfTextMedDark, #sf-textcontent-controls, .context-menu-root, .sf-market-browse-offer, .bigsubmit:hover, .smallsubmit:hover, .display-button, body, span.note.sfTextMedDark, #sfContentBody p span {background: #2E3A41 !important;} .sf-footer {background-color: #2E3A41;}\n .meterorange span.note {background: #222222 !important;}\n .meterorange span {background: #AA5500 !important;}\n .sfGeneralInfoMessage, .topbar img, #replyarea a {border-color: #222222 !important;}\n div.sf-content, .sfCommentBody, .sf-sidebar, .sf-main, .sf-chat-dynamic td, .sf-content h2:not(.forumtitle), .sf-external-title, fieldset#general, fieldset#notifications, div.banner, div.watchlist, .watchlist-nuke, .date-tile, .watchlist-wrapper form, #sffp-intro, .sf-browse-shortlist-zebra, h4, fieldset, div.grey, .bigsubmit, .smallsubmit {background: #0F3030 !important;}\n .carousel-wrapper, #sffp-events {background:#2E3A41 !important; border-color:#2E3A41 !important;}\n #sffp-stories, #sffp-art, #sffp-photos, #sffp-music {background:#2E3A41 !important; border-width: 2px !important; border-color:#6A7283 !important}\n .sf-draggable a, .topbar-cont a.avatar, .forumtitle, .forumtitle-background, .sf-content p:not(.user-stats), .drop, .drop:hover, .sf-tag {background: transparent !important;}\n span.user-info, div.user-info {background: rgba(0,0,0,0.6) !important;}\n #sf-profile-wide-nav, #sf-accounts, .sf-carousel-container, .sfCommentBody, .wide-active-sub, .dropdown.wide, .dropdown.wide li, .sf-profile-avatarcontainer, .sf-browse-displaymodes a, .sf-tabbar-inner a, #sf-socialize, .sfArtworkSmallInner.submissiononhold, .sfTextMedDark span span, li.current a, tbody tr, .vertical .row.submit, .bbcode_quote_body, .topbar, #sf-textcontent-controls li, .topbar-cont .button, .forums th, ul.watchlist_tabs li.current a, #sf-chat-submit {border-color: #6A7283 !important;}\n .sf-story-big, .sf-market-browse-offer, .wide-active {border-color: #6A7283 !important; border-width: 2px !important; border-radius: 0px !important;}\n #sf-textcontent-controls li, #replyarea a {border-style: solid !important; border-width: 1px !important; text-shadow: none !important;}\n .sf-browse-displaymodes, .sf-content form td, .sf-content form th, .watchlist_header, #sf-textcontent-controls li, table.items thead th, .sf-chat-users-levelheader, h4, .sf-story-wide, .even td, .odd td, .forum_forumpost {border-bottom-color: #6A7283 !important;}\n .sf-content form th, .watchlist-nuke, li.current a, #sf-textcontent-controls li, fieldset p.row, .forum_fp_postsignature {border-top-color: #6A7283 !important;}\n .title.sfTextMedDark, #sf-textcontent-controls, .sfCommentChildrenOuter, .topbar {border-style: none !important;}\n .sf-story .sf-story-tags a, #sfContentDescription p, #section-favors-footer.section-footer a, .sf-story-big-tags a, .sidebarfilter-inactive a, .sf-chat-rating, .sf-chat-users-levelheader, .sfArtworkSmallWrapper a.sfTextMedLight, #sf-userinfo-outer .sfTextMedLight:not(.sfTextMedium), .sf-story-wide .sf-story-tags, .sf-market-browse-offer .sfTextMedLight, .forum_fp_postsignature, .sftagbrowser-browselink a, .sfTextDark, .forumtitle-background tbody tr {color: #666666 !important; text-shadow: none !important;}\n .sf-comment-date.sfTextMedium, .sf-story abbr, .sf-story .sfTextMedium, .forum_fp_postbody, table.items td, .sf-profile-content p, h3 a:hover, #site-updates p, .dated-list-item p:not(.date-tile), .sf-content p, .sf-browse-simpleitem span {color: #777777 !important; text-shadow: none !important;}\n .sfTextMedDark span span p, div.sfCommentBody p, .sfCommentBody, .sf-story:hover .sf-story-tags a, .sf-content-invisible p, .row label, .view legend, .section-title, #sfContentBody.sfTextMedDark p, .sflabel.biglabel, .sf-chat-roomlist-room a, .sf-chat-header-text, #sf-chat-users a, .sf-story-wide:hover .sf-story-tags, #sfCommentBody.sfTextMedDark p, .sf-market-browse-offer .sfTextMedium, .section-content, .sf-chat-message, tr.active td, tr.inactive, form, span:not(.sfTextMedLight):not(.sfTextMedDark):not(.number), .sfGeneralInfoMessage, table.items td, .forums td, .sftc-content span.sfTextMedDark, .sf-content, .watchlist_item .tags a, .pager li:not(.selected) a, .sf-sidebar a, .forum_threads tr, .forum_threads th, .forum_forumpost.odd div:not(.bbcode_quote_body):not(.bbcode_quote_head) {color: #AAAAAA !important; text-shadow: none !important;}\n span.sfTextMedDark span span a, .sfTextAttention, .sf-story-headline a, .sf-story-big-headline a, .sidebarfilter-active, .sidebarfilter:not(.sidebarfilter-inactive) a, a.display-button:hover, a.display-button-active:hover, td.link-column a, .sf-chat-username a, .watchlist_tabs a, .js_select_none, .js_select_all, .watchlist_meta a, table.items tr.inactive a, .forumtitle a, .verysmalllabel, #sfContentTitle, .sf-browse-simpleitem:hover a, .sf-browse-shortlist a, .sf-browse-shortlist-zebra a, .sf-profile-avatarcontainer span, .watchlist_item h3 a, .details a, .section-title-highlight, #sf-socialize input, .forum_threads a, .sf-market-browse-offer a, .forum_fp_header a, #sfContentBody a, .bigsubmit, .smallsubmit, .smalllabel a, .sf-avatar-provided a, .sf-content a, .forumtitle-background tbody a, .wide-active, .forum_fp_header input, .sf-watermark span, #submission_tags a:hover, .sfGeneralInfoMessage, .forum_forumpost.even div:not(.bbcode_quote_body):not(.bbcode_quote_head) {color: #CCCCCC !important; text-shadow: none !important;}\n table.items th, .sidebarfilter-label {color:#778595 !important;}\n .sf-tabbar-inner a {color: white !important; text-shadow: 0px 1px black !important;}\n .sfCommentBody, span.sfTextMedDark span span span span span:not(.sfTextMedLight) {color:#AAAAAA !important; text-shadow: none !important;}\n .inner, h1 {text-shadow: none !important;}\n .sfwlabel {background:rgba(33,33,33,0.7) !important;} .sticky {position: fixed !important; width: 100% !important; left: 0; top: 0; z-index: 100; border-top: 0 !important;}\n .script {width: 90px !important;}\n a.wide-inactive, #sf-userinfo-outer, .items tr td, .items, .watchlist_item, .sfGeneralInfoMessage {border-color: transparent !important;}\n .items .active, .watchlist_item.selected {background: #415054 !important;}\n .items .inactive:hover {background: #314044 !important;}\n .sfCommentBody, .sf-comment-options, #sf-accounts, #sf-profile-wide-nav, .sf-carousel-container, .sf-watermark {border-radius: 0px !important;}\n .wide-inactive:hover, .sfCommentBody a:hover, .link-column a:hover, .sfArtworkSmallWrapper a.sfTextMedLight, .sf-story .sfTextAttention, .sf-story-big .sfTextAttention, span.data span:not(.sfTextAttention) a, #sf-accounts a, .topbar button:hover, .drop:hover, .forum_subject a:hover, .forums th, .items .active a, .watchlist_meta a, #submission_tags a, .section-content a, #sf-userinfo-outer .sfTextMedium, .sf-tabbar-inner a:not(.current):not(.button):hover, .forum_fp_username a, .forum_last_reply a {color: #ADADFF !important;}\n .sf-story:hover, .sf-story-wide:hover {border-color: transparent !important;}\n ul.dropdown {background: rgba(32,34,36,0.9) !important;}\n .dropdown li, .dropdown a, .dropdown {border-color: rgba(32,34,36,0.9) !important;}\n .sftc-title a:hover {color: white !important;}\n .sftc-title li.current a {background: #4A505B !important;}\n .popbox {display: block; position: fixed; top: 50%; left: 50%; z-index: 99999; width: 100px; height: 100px; padding: 10px; background: rgba(24,31,35,0.8); color: white; border: 1px solid #384750; margin: 0px; -webkit-box-shadow: -50px 50px 50px -50px rgba(164, 164, 164, 1); box-shadow: 0px 0px 5px 0px rgba(100, 100, 100, 1); border-radius:25px;}\n .sf-story:hover, .wide-inactive:hover, #sf-socialize form:hover, .sfArtworkSmallWrapper_fit:hover {background: none !important;}";
if (typeof GM_addStyle != "undefined") {
GM_addStyle(css);}
else if (typeof PRO_addStyle != "undefined") {
PRO_addStyle(css);}
else if (typeof addStyle != "undefined") {
addStyle(css);}
else {
var node = document.createElement("style");
node.type = "text/css";
node.appendChild(document.createTextNode(css));
var heads = document.getElementsByTagName("head");
if (heads.length > 0) {
heads[0].appendChild(node); }
else {
document.documentElement.appendChild(node);}
}
})();
//Launch the function pageFullyLoaded only when all the DOM elements are loaded
window.addEventListener ("load", pageFullyLoaded);
function pageFullyLoaded () {
//Set cozymode function
var O_li = document.getElementById('cozymode'); //Get cozymode element into var O_li
if (O_li != null) {
//O_li.setAttribute('onclick',""); //Remove SoFurry cozymode function
O_li.onclick = function(){setCozymode(); return false;} //Bind a new cozymode function called setCozymode
}
//Ul dropdown element from div.topbar-cont
var userUl = document.getElementsByTagName('ul')[0];
//Li theme dropdown-trigger
var theme = document.createElement('a');
theme.setAttribute('href', '.');
theme.setAttribute('id', 'themeList');
theme.appendChild(document.createTextNode('Theme'));
//linkDefault
var linkDefault = document.createElement('a');
linkDefault.setAttribute('href', '.');
linkDefault.setAttribute('class', 'theme');
linkDefault.onclick=function(){GM_setValue('color', 'default'); location.reload(true); return false;}
linkDefault.appendChild(document.createTextNode('Default'));
//linkRed
var linkRed = document.createElement('a');
linkRed.setAttribute('href', '.');
linkRed.setAttribute('class', 'theme');
linkRed.onclick=function(){GM_setValue('color', 'red'); location.reload(true); return false;}
linkRed.appendChild(document.createTextNode('Red'));
//linkOrange
var linkOrange = document.createElement('a');
linkOrange.setAttribute('href', '.');
linkOrange.setAttribute('class', 'theme');
linkOrange.onclick=function(){GM_setValue('color', 'orange'); location.reload(true); return false;}
linkOrange.appendChild(document.createTextNode('Orange'));
//linkYellow
var linkYellow = document.createElement('a');
linkYellow.setAttribute('href', '.');
linkYellow.setAttribute('class', 'theme');
linkYellow.onclick=function(){GM_setValue('color', 'yellow'); location.reload(true); return false;}
linkYellow.appendChild(document.createTextNode('Yellow'));
//linkGreen
var linkGreen = document.createElement('a');
linkGreen.setAttribute('href', '.');
linkGreen.setAttribute('class', 'theme');
linkGreen.onclick=function(){GM_setValue('color', 'green'); location.reload(true); return false;}
linkGreen.appendChild(document.createTextNode('Green'));
//linkBlue
var linkBlue = document.createElement('a');
linkBlue.setAttribute('href', '.');
linkBlue.setAttribute('class', 'theme');
linkBlue.onclick=function(){GM_setValue('color', 'blue'); location.reload(true); return false;}
linkBlue.appendChild(document.createTextNode('Blue'));
//linkViolet
var linkViolet = document.createElement('a');
linkViolet.setAttribute('href', '.');
linkViolet.setAttribute('class', 'theme');
linkViolet.onclick=function(){GM_setValue('color', 'violet'); location.reload(true); return false;}
linkViolet.appendChild(document.createTextNode('Violet'));
//linkPink
var linkPink = document.createElement('a');
linkPink.setAttribute('href', '.');
linkPink.setAttribute('class', 'theme');
linkPink.onclick=function(){GM_setValue('color', 'pink'); location.reload(true); return false;}
linkPink.appendChild(document.createTextNode('Pink'));
//linkSilver
var linkSilver = document.createElement('a');
linkSilver.setAttribute('href', '.');
linkSilver.setAttribute('class', 'theme');
linkSilver.onclick=function(){GM_setValue('color', 'silver'); location.reload(true); return false;}
linkSilver.appendChild(document.createTextNode('Silver'));
//linkDark
var linkDark = document.createElement('a');
linkDark.setAttribute('href', '.');
linkDark.setAttribute('class', 'theme');
linkDark.onclick=function(){GM_setValue('color', 'dark'); location.reload(true); return false;}
linkDark.appendChild(document.createTextNode('Dark'));
//linkFA
var linkFA = document.createElement('a');
linkFA.setAttribute('href', '.');
linkFA.setAttribute('class', 'theme');
linkFA.onclick=function(){GM_setValue('color', 'FA'); location.reload(true); return false;}
linkFA.appendChild(document.createTextNode('FA'));
//linkDarkRed
var linkDarkRed = document.createElement('a');
linkDarkRed.setAttribute('href', '.');
linkDarkRed.setAttribute('class', 'theme');
linkDarkRed.onclick=function(){GM_setValue('color', 'darkred'); location.reload(true); return false;}
linkDarkRed.appendChild(document.createTextNode('Dark Red'));
//linkSticky
var linkSticky = document.createElement('a');
linkSticky.setAttribute('href', '.');
linkSticky.setAttribute('class', 'options');
linkSticky.onclick=function(){GM_setValue('sticky', !sticky); location.reload(true); return false;}
if (sticky)
linkSticky.appendChild(document.createTextNode('Sticky ON'));
else
linkSticky.appendChild(document.createTextNode('Sticky OFF'));
//Create dropdown li
var liDrop = document.createElement('li');
liDrop.setAttribute('class', 'dropdown-trigger');
//Create lists element
var liDefault = document.createElement('li');
var liRed = document.createElement('li');
var liOrange = document.createElement('li');
var liYellow = document.createElement('li');
var liGreen = document.createElement('li');
var liBlue = document.createElement('li');
var liViolet = document.createElement('li');
var liPink = document.createElement('li');
var liSilver = document.createElement('li');
var liDark = document.createElement('li');
var liFA = document.createElement('li');
var liDarkRed = document.createElement('li');
var liSticky = document.createElement('li');
//Create the ul element
var ul = document.createElement('ul');
ul.setAttribute('class', 'dropdown script');
//Add list to topbar-nav
liDefault.appendChild(linkDefault);
liRed.appendChild(linkRed);
liOrange.appendChild(linkOrange);
liYellow.appendChild(linkYellow);
liGreen.appendChild(linkGreen);
liBlue.appendChild(linkBlue);
liViolet.appendChild(linkViolet);
liPink.appendChild(linkPink);
liSilver.appendChild(linkSilver);
liDark.appendChild(linkDark);
liFA.appendChild(linkFA);
liDarkRed.appendChild(linkDarkRed);
liSticky.appendChild(linkSticky);
ul.appendChild(liDefault);
ul.appendChild(liRed);
ul.appendChild(liOrange);
ul.appendChild(liYellow);
ul.appendChild(liGreen);
ul.appendChild(liBlue);
ul.appendChild(liViolet);
ul.appendChild(liPink);
ul.appendChild(liSilver);
ul.appendChild(liDark);
ul.appendChild(liFA);
ul.appendChild(liDarkRed);
ul.appendChild(liSticky);
liDrop.appendChild(theme);
liDrop.appendChild(ul);
userUl.appendChild(liDrop);
//Cozymode in chat
$(".inactive").first().attr("id","cozymode");
var cozy = document.getElementById('cozymode');
if (cozy != null)
cozy.onclick = function(){setCozymode(); return false;}
//Resize image if image goes out of hscreen
$("img").each(function() {
if ($(this).offset().left + $(this).width() > screen.width - 17)
$(this).width(screen.width - $(this).offset().left - 17);
});
//Sticky top bar
if (sticky) {
var stickyNavTop = $('.topbar').offset().top;
var stickyNav = function(){
var scrollTop = $(window).scrollTop();
if (scrollTop > stickyNavTop) {
$('.topbar').addClass('sticky');
} else {
$('.topbar').removeClass('sticky');
}
};
stickyNav();
$(window).scroll(function() {
stickyNav();
});
}
else
$('.topbar').removeClass('sticky');
//Affect nextPage class for shortcut CTRL+LEFT
$(".next a").addClass("nextPage");
nextPage = document.getElementsByClassName('nextPage')[0];
//Create the initial popup box for scrollbar and hide it
var box = document.createElement('div');
box.setAttribute('class', 'popbox');
box.setAttribute('id', 'scrollbox');
box.appendChild(document.createTextNode('Auto Scroll : OFF'));
document.getElementsByTagName("body")[0].appendChild(box);
$(".popbox").hide();
//Separates links in topbar from links dropped down
if ($(".dropdown-trigger .dropdown a").length)
$(".dropdown-trigger .dropdown a").addClass("drop");
//Count words of a a story submission and displays them in the stats container
$(".section-content:contains('Posted')").attr('id','stats');
var text = $('#sfContentBody').text();
var charsLength = text.length; //35
var wordsCount = wordCount(text);
//Will count words seperated by space and by - but will not count extra words if - if used as syntax ex. He -this guy- is not...
$("#stats").append("<br />"+wordsCount+" words<br />"+charsLength+" characters");
//Change line-height in-between paragraphs in stories
if ($("#sf-viewcontent-content").length) {
//Create link element and associate function
var linkChangeLineHeight = document.createElement('span');
var ulChangeLineHeight = document.getElementById("sf-textcontent-controls");
var liChangeLineHeight = document.createElement('li');
linkChangeLineHeight.appendChild(document.createTextNode('Change Line Height'));
liChangeLineHeight.appendChild(linkChangeLineHeight);
ulChangeLineHeight.appendChild(liChangeLineHeight);
linkChangeLineHeight.onclick=function(){changeLineHeight()};
}
//Add ul option to remove text indent in story content
if ($("#sfContentBody").length) {
var linkChangeIndent = document.createElement('span');
//var ulChangeIndent = document.getElementById("sf-textcontent-controls");
var liChangeIndent = document.createElement('li');
linkChangeIndent.appendChild(document.createTextNode('Remove Indent'));
liChangeIndent.appendChild(linkChangeIndent);
ulChangeLineHeight.appendChild(liChangeIndent);
linkChangeIndent.onclick=function(){$("#sfContentBody p").css("text-indent","0");}
}
}
//Counts the number of words in 'text'
function wordCount(text) {
var words = text.split(" ").length;
//Add seperated words ex. time-consuming
if (text.indexOf("-") != -1 && text.indexOf("-") != 0) //if on '-' is present, count them as words
words += text.split("-").length;
//Removes extra syntaxic - counted as words
if (text.indexOf(" - ") != -1 && text.indexOf(" - ") != 0)
words -= text.split(" - ").length-1;
return words;
};
function changeLineHeight() {
if (lineHeight == 3)
lineHeight = 1;
else
lineHeight += 0.5;
$("#sf-viewcontent-content p").css("line-height", lineHeight);
}
function setCozymode() {
cozyToogle = !cozyToogle;
cozy_color = GM_getValue("color","default");
if (cozyToogle==true) {
css = ".topbar, .topbar-cont, .sftc-title, .sftc-title a, .sf-footer-breadcrumb, .topbar-cont a:not(.drop):link, .topbar-cont button, #sf-chat-inputarea, .button.buttonsmall, .sf-tabbar a.button:hover, ul.tabs, ul.tabs a, .button-bar, #nuke_everything, #nuke_current_tab, #nuke_selected:active, #sfCommentReplyContainer input, .sf-content a.button, #yt29, #yt31, .topbar-cont #yt0, .sf-tabbar-inner a.current, .button-bar input, .sf-sidebar input:not(#suggestedtags):not(#sidebarsearch), .row.submit input, .thread_actions input, #nuke_selected {background: -moz-linear-gradient(top, #333333 0%, #222222 100%) !important; color: white; text-shadow: 0px 1px black !important; border-color: #222222 !important; color: white !important;}\n #yt1, #yt29:hover, #yt31:hover, .sf-tabbar, .sf-tabbar a.button, ul.tabs a.active, .sffile span, .button-bar input:hover, #sfCommentReplyContainer input:hover, .sf-sidebar input:hover:not(#sidebarsearch):not(#suggestedtags), #nuke_everything:hover, #nuke_current_tab:hover, .sf-content a.button:hover, .row.submit input:hover, .thread_actions input:hover, #suggestedtags {background: -moz-linear-gradient(top, #555555 0%, #222222 100%) !important; color: white; text-shadow: 0px 1px black; border-color: #333333 !important;}\n .topbar-cont button:hover, #headersearch, .sftc-title a:hover, .button.buttonsmall:hover, ul.tabs a:hover:not(.active), #LoginForm_sfLoginUsername, #LoginForm_sfLoginPassword, .topbar-cont #yt0:hover, .button-bar a.button:hover, .bbcode_quote_head {background: -moz-linear-gradient(top, #333333 0%, #111111 100%) !important; border-color: #333333 !important;}\n #sf-textcontent-controls li:hover {background: -moz-linear-gradient(left, #202020 0%, #333333 100%) !important; border-style: none !important;} a#sf-userinfo-outer:hover, .sf-story-big, .title.sfTextMedDark, .wide-inactive-sub:hover, #sf-textcontent-controls, .context-menu-root, table.items tr.active, .sf-market-browse-offer, .bigsubmit:hover, .smallsubmit:hover {background: #111111 !important;}\n #sf-chat-submit, input#addtagsform_submit, .section-footer .button, #sf-socialize input:hover {background: -moz-linear-gradient(top, #DDDDDD 0%, #DDDDDD 50%, #AAAAAA 50%, #AAAAAA 100%) !important; color: #666666; text-shadow: 0px 1px white; border-color: #333333;}\n div.sf-content, .sfCommentBody, .sf-sidebar, .sf-main, .sf-chat-dynamic td, .sf-content h2:not(.forumtitle), .sf-external-title, fieldset#general, fieldset#notifications, div.banner, div.watchlist, .watchlist-nuke, .date-tile, .watchlist-wrapper form, #sffp-intro, .sf-browse-shortlist-zebra, h4, fieldset, div.grey, .bigsubmit, .smallsubmit {background: #111111 !important;}\n .wide-inactive:hover, .sfArtworkSmallWrapper_fit:hover, .sf-carousel-container, .sfArtworkSmallWrapper:hover, .watchlist_item.selected, .sf-browse-displaymodes .display-button:hover, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .bbcode_quote_body {background: #111111 !important;}\n .sf-watermark, .sf-comment-options, .sf-chat-roomlist-active, .sf-chat-header-text, ul.watchlist_tabs a:visited, .sf-item-h-info-content, .wide-active, .wide-active-sub, .sf-browse-shortlist, .item.even.unread, .display-button-active, .even, .sfpreviewbox, .sfpreviewboxsmall {background: #111111 !important;}\n .sf-draggable a, .topbar-cont a.avatar, .forumtitle, .forumtitle-background, .sf-content p:not(.user-stats) {background: transparent !important;}\n span.user-info, div.user-info {background: rgba(136,136,255,0.6) !important;}\n .meterorange {background: #3355AA !important; border-color: #3355AA;}\n .sf-tag, .pager a:visited, .pager a:hover {background: #111111 !important; box-shadow: 1px 1px #333333 !important;}\n .watchlist_item, textarea#sfCommentReplyTextarea, #sf-profile-wide-nav, #sf-accounts, .sf-carousel-container, .sf-watermark, .sfCommentBody, .wide-active, .wide-active-sub, .wide-inactive-sub:hover, .dropdown.wide, .dropdown.wide li, .sf-profile-avatarcontainer, .sf-browse-displaymodes a, .sf-tabbar-inner a, #sf-socialize, .sfArtworkSmallInner.submissiononhold, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .sfTextMedDark span span, li.current a, tbody tr, .vertical .row.submit, .topbar-cont ul.dropdown, .bbcode_quote_body, .topbar, #sf-textcontent-controls li {border-color: #333333 !important;}\n #sf-textcontent-controls li {border-style: solid !important; border-width: 1px !important; text-shadow: none !important;}\n .sf-browse-displaymodes, .sf-content form td, .sf-content form th, .watchlist_header, #sf-textcontent-controls li, table.items thead th, .sf-chat-users-levelheader, h4, .sf-story-wide, .even td, .odd td, .forum_forumpost {border-bottom-color: #333333 !important;}\n .sf-content form th, .watchlist-nuke, li.current a, #sf-textcontent-controls li, fieldset p.row, .forum_fp_postsignature, .topbar-cont ul.dropdown a {border-top-color: #333333 !important;}\n .title.sfTextMedDark, #sf-textcontent-controls, .sfCommentChildrenOuter {border-style: none !important;}\n .sf-story .sf-story-tags a, #sfContentDescription p, #section-favors-footer.section-footer a, .sf-story-big-tags a, .sidebarfilter-inactive a, .sf-chat-rating, .sf-chat-users-levelheader, .sfArtworkSmallWrapper a.sfTextMedLight, #sf-userinfo-outer .sfTextMedLight:not(.sfTextMedium), .sf-story-wide .sf-story-tags, .sf-market-browse-offer .sfTextMedLight, .forum_fp_postsignature, .sftagbrowser-browselink a {color: #666666 !important;}\n .sfTextMedDark .sfTextMedLight, .sf-comment-date.sfTextMedium, .sf-story abbr, .sf-story .sfTextMedium, #sf-accounts a {color: #777785 !important;}\n .sfTextMedDark span span p, div.sfCommentBody p, .sf-story:hover .sf-story-tags a, .sf-content-invisible p, .row label, .view legend, .section-title, #sfContentBody.sfTextMedDark p, .sflabel.biglabel, .sf-chat-roomlist-room a, .sf-chat-header-text, #sf-chat-users a, #sf-userinfo-outer .sfTextMedium, .sf-story-wide:hover .sf-story-tags, #sfCommentBody.sfTextMedDark p, .sf-market-browse-offer .sfTextMedium, .section-content, .sf-chat-message {color: #AAAAAA !important;}\n span.sfTextMedDark span span a, a.wide-inactive, div.sfCommentBody a, .sfTextAttention, .sf-story-headline a, .sf-story-big-headline a, .sidebarfilter-active, .sidebarfilter:not(.sidebarfilter-inactive) a, a.display-button:hover, a.display-button-active:hover, .section-content a, td.link-column a, .sf-chat-username a, .watchlist_tabs a, .js_select_none, .js_select_all, .watchlist_meta a, table.items tr.active a, table.items tr.inactive a, .sf-sidebar .section a, .forumtitle a, .verysmalllabel, #sfContentTitle, .sf-browse-simpleitem:hover a, .sf-browse-shortlist a, .sf-browse-shortlist-zebra a, .sf-profile-avatarcontainer span, .watchlist_item a, .details a, .section-title-highlight, #sf-socialize input, .forum_threads a, .sf-market-browse-offer a, .forum_fp_header a, #sfContentBody a, .bigsubmit, .smallsubmit, .smalllabel a, .sf-avatar-provided a {color: #BBBBBB !important;}\n .forumtitle-background tbody a {color: #555577 !important;}\n .sf-tabbar-inner a {color: white !important; text-shadow: 0px 1px black !important;}\n span.sfTextMedDark span span span span span:not(.sfTextMedLight), .sf-watermark span {color: black !important;}";
if (cozy_color != "default") {
GM_addStyle(css);
unsafeWindow.sfcToggleSidebar();
$("#sf-viewcontent-aux").hide();
}
else
unsafeWindow.sfcToggleCozyMode(document.getElementById("cozymode"));
}
else {
if (cozy_color != "default") {
if (cozy_color == "red")
css = ".topbar-cont, .sftc-title, .sftc-title a, .sf-footer-breadcrumb, .topbar-cont a:not(.drop):link, .topbar-cont button, #sf-chat-inputarea, .button.buttonsmall, .sf-tabbar a.button:hover, ul.tabs, ul.tabs a, .button-bar, #nuke_everything, #nuke_current_tab, #nuke_selected:active, #sfCommentReplyContainer input, .pager input, .sf-content a.button, #yt29, #yt31, .topbar-cont #yt0, .sf-tabbar-inner a.current, .button-bar input, .sf-sidebar input:not(#suggestedtags):not(#sidebarsearch), .row.submit input, .thread_actions input, #nuke_selected {background: -moz-linear-gradient(top, #FF2211 0%, #660505 100%) !important; color: white; text-shadow: 0px 1px black !important; border-color: #992222 !important; color: white !important;}\n #yt1, #yt29:hover, #yt31:hover, .sf-tabbar, .sf-tabbar a.button, ul.tabs a.active, .sffile span, .button-bar input:hover, .pager input:hover, #sfCommentReplyContainer input:hover, .sf-sidebar input:hover:not(#sidebarsearch):not(#suggestedtags), #nuke_everything:hover, #nuke_current_tab:hover, .sf-content a.button:hover, .row.submit input:hover, .thread_actions input:hover {background: -moz-linear-gradient(top, #FF7777 0%, #FF2222 50%, #992222 100%) !important; color: white; text-shadow: 0px 1px black; border-color: #992222 !important;}\n .topbar-cont button:hover, #headersearch, .sftc-title a:hover, .button.buttonsmall:hover, ul.tabs a:hover:not(.active), #LoginForm_sfLoginUsername, #LoginForm_sfLoginPassword, .topbar-cont #yt0:hover, .button-bar a.button:hover, .bbcode_quote_head {background: -moz-linear-gradient(top, #CC1105 0%, #220000 100%) !important; border-color: #992222 !important;}\n a#sf-userinfo-outer:hover, .sf-story-big, .title.sfTextMedDark, .wide-inactive-sub:hover, #sf-textcontent-controls, .context-menu-root, table.items tr.active, .sf-market-browse-offer, .bigsubmit:hover, .smallsubmit:hover {background: -moz-linear-gradient(top, #FFBBAA 0%, #FFFFFF 100%) !important;}\n #sf-textcontent-controls li:hover, #sf-chat-submit, input#addtagsform_submit, #sf-socialize input:hover {background: -moz-linear-gradient(top, #FFDDDD 0%, #FFDDDD 50%, #FFBBBB 50%, #FFBBBB 100%) !important; color: #666666; text-shadow: 0px 1px white; border-color: #FF6666;}\n div.sf-content, .sfCommentBody, .sf-sidebar, .sf-main, .sf-chat-dynamic td, .sf-content h2:not(.forumtitle), .sf-external-title, fieldset#general, fieldset#notifications, div.banner, div.watchlist, .watchlist-nuke, .date-tile, .watchlist-wrapper form, #sffp-intro, .sf-browse-shortlist-zebra, h4, fieldset, div.grey, .bigsubmit, .smallsubmit {background: #FFDDD0 !important;}\n .wide-inactive:hover, .sfArtworkSmallWrapper_fit:hover, .sf-carousel-container, .sfArtworkSmallWrapper:hover, .watchlist_item.selected, .sf-browse-displaymodes .display-button:hover, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .bbcode_quote_body {background: #FFCCC0 !important;}\n .sf-watermark, .sf-comment-options, .sf-chat-roomlist-active, .sf-chat-header-text, ul.watchlist_tabs a:visited, .sf-item-h-info-content, .wide-active, .wide-active-sub, .sf-browse-shortlist, .item.even.unread, .display-button-active, .even, .sfpreviewbox, .sfpreviewboxsmall {background: #FFBBA0 !important;}\n .sf-draggable a, .topbar-cont a.avatar, .forumtitle, .forumtitle-background, .sf-content p:not(.user-stats) {background: transparent !important;}\n span.user-info, div.user-info {background: rgba(255,0,0,0.5) !important;}\n .meterorange {background: #AA3333 !important; border-color: #AA3333;}\n .sf-tag, .pager a:visited, .pager a:hover {background: #EE5544 !important;}\n .watchlist_item, textarea#sfCommentReplyTextarea, #sf-profile-wide-nav, #sf-accounts, .sf-carousel-container, .sf-watermark, .sfCommentBody, .wide-active, .wide-active-sub, .wide-inactive-sub:hover, .dropdown.wide, .dropdown.wide li, .sf-profile-avatarcontainer, .sf-browse-displaymodes a, .sf-tabbar-inner a, #sf-socialize, .sfArtworkSmallInner.submissiononhold, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .sfTextMedDark span span, li.current a, tbody tr, .vertical .row.submit, .topbar-cont ul.dropdown, .bbcode_quote_body, .topbar {border-color: #CC6666 !important;}\n .sf-browse-displaymodes, .sf-content form td, .sf-content form th, .watchlist_header, #sf-textcontent-controls li, table.items thead th, .sf-chat-users-levelheader, h4, .sf-story-wide, .even td, .odd td, .forum_forumpost {border-bottom-color: #CC6666 !important;}\n .sf-content form th, .watchlist-nuke, li.current a, #sf-textcontent-controls li, fieldset p.row, .forum_fp_postsignature {border-top-color: #CC6666 !important;}\n .title.sfTextMedDark, #sf-textcontent-controls, .sfCommentChildrenOuter {border-style: none !important;}\n .tag.sfTextDark {border-color: #AAB0A0 !important;}\n li.current a {border-bottom-color: #FFD0CC !important;}\n .sf-story .sf-story-tags a, #sfContentDescription p, #section-favors-footer.section-footer a, .sf-story-big-tags a, .sidebarfilter-inactive a, .sf-chat-rating, .sf-chat-users-levelheader, .sfArtworkSmallWrapper a.sfTextMedLight, #sf-userinfo-outer .sfTextMedLight:not(.sfTextMedium), .sf-story-wide .sf-story-tags, .sf-market-browse-offer .sfTextMedLight, .forum_fp_postsignature, .sftagbrowser-browselink a {color: #777777 !important;}\n .sfTextMedDark .sfTextMedLight, .sf-comment-date.sfTextMedium, .sf-story abbr, .sf-story .sfTextMedium, #sf-accounts a {color: #806666 !important;}\n .sfTextMedDark span span p, div.sfCommentBody p, .sf-story:hover .sf-story-tags a, .sf-content-invisible p, .row label, .view legend, .section-title, #sfContentBody.sfTextMedDark p, .sflabel.biglabel, .sf-chat-roomlist-room a, .sf-chat-header-text, #sf-chat-users a, #sf-userinfo-outer .sfTextMedium, .sf-story-wide:hover .sf-story-tags, #sfCommentBody.sfTextMedDark p, .sf-market-browse-offer .sfTextMedium {color: #333333 !important;}\n span.sfTextMedDark span span a, a.wide-inactive, div.sfCommentBody a, .sfTextAttention, .sf-story-headline a, .sf-story-big-headline a, .sidebarfilter-active, .sidebarfilter:not(.sidebarfilter-inactive) a, a.display-button:hover, a.display-button-active:hover, .section-content a, td.link-column a, .sf-chat-username a, .watchlist_tabs a, .js_select_none, .js_select_all, .watchlist_meta a, table.items tr.active a, table.items tr.inactive a, .sf-sidebar .section a, .forumtitle a, .verysmalllabel, #sfContentTitle, .sf-browse-simpleitem:hover a, .sf-browse-shortlist a, .sf-browse-shortlist-zebra a, .sf-profile-avatarcontainer span, .watchlist_item a, .details a, .section-title-highlight, #sf-socialize input, .forum_threads a, .sf-market-browse-offer a, .forum_fp_header a, #sfContentBody a, .bigsubmit, .smallsubmit, .smalllabel a, .sf-avatar-provided a {color: #331111 !important;}\n .forumtitle-background tbody a {color: #994433 !important;}\n .sf-tabbar-inner a {color: white !important; text-shadow: 0px 1px black !important;}\n span.sfTextMedDark span span span span span:not(.sfTextMedLight), .sf-watermark span {color: black !important;}\n .sticky {position: fixed !important; width: 100% !important; left: 0; top: 0; z-index: 100; border-top: 0 !important;}\n .script {width: 90px !important;}\n .topbar ul.dropdown {background: rgba(50,0,0,0.9) !important;}";
else if (cozy_color == "orange")
css = ".topbar-cont, .sftc-title, .sftc-title a, .sf-footer-breadcrumb, .topbar-cont a:not(.drop):link, .topbar-cont button, #sf-chat-inputarea, .button.buttonsmall, .sf-tabbar a.button:hover, ul.tabs, ul.tabs a, .button-bar, #nuke_everything, #nuke_current_tab, #nuke_selected:active, #sfCommentReplyContainer input, .pager input, .sf-content a.button, #yt29, #yt31, .topbar-cont #yt0, .sf-tabbar-inner a.current, .button-bar input, .sf-sidebar input:not(#suggestedtags):not(#sidebarsearch), .row.submit input, .thread_actions input, #nuke_selected {background: -moz-linear-gradient(top, #FFBB33 0%, #CC8800 50%, #AA5500 100%) !important; color: white; text-shadow: 0px 1px black !important; border-color: #BB5500 !important; color: white !important;}\n #yt1, #yt29:hover, #yt31:hover, .sf-tabbar, .sf-tabbar a.button, ul.tabs a.active, .sffile span, .button-bar input:hover, .pager input:hover, #sfCommentReplyContainer input:hover, .sf-sidebar input:hover:not(#sidebarsearch):not(#suggestedtags), #nuke_everything:hover, #nuke_current_tab:hover, .sf-content a.button:hover, .row.submit input:hover, .thread_actions input:hover {background: -moz-linear-gradient(top, #FFDD66 0%, #FFBB33 50%, #CC8800 100%) !important; color: white; text-shadow: 0px 1px black; border-color: #BB5500 !important;}\n .topbar-cont button:hover, #headersearch, .sftc-title a:hover, .button.buttonsmall:hover, ul.tabs a:hover:not(.active), #LoginForm_sfLoginUsername, #LoginForm_sfLoginPassword, .topbar-cont #yt0:hover, .button-bar a.button:hover, .bbcode_quote_head {background: -moz-linear-gradient(top, #DDAA00 0%, #AA6600 50%, #773300 100%) !important; border-color: #BB5500 !important;}\n a#sf-userinfo-outer:hover, .sf-story-big, .title.sfTextMedDark, .wide-inactive-sub:hover, #sf-textcontent-controls, .context-menu-root, table.items tr.active, .sf-market-browse-offer, .bigsubmit:hover, .smallsubmit:hover {background: -moz-linear-gradient(top, #FFCC77 0%, #FFFFFF 100%) !important;}\n #sf-textcontent-controls li:hover, #sf-chat-submit, input#addtagsform_submit, #sf-socialize input:hover {background: -moz-linear-gradient(top, #FFF0AA 0%, #FFF0AA 50%, #FFDD66 50%, #FFDD66 100%) !important; color: #666666; text-shadow: 0px 1px white; border-color: #BB5500;}\n div.sf-content, .sfCommentBody, .sf-sidebar, .sf-main, .sf-chat-dynamic td, .sf-content h2:not(.forumtitle), .sf-external-title, fieldset#general, fieldset#notifications, div.banner, div.watchlist, .watchlist-nuke, .date-tile, .watchlist-wrapper form, #sffp-intro, .sf-browse-shortlist-zebra, h4, fieldset, div.grey, .bigsubmit, .smallsubmit {background: #FFEEBB !important;}\n .wide-inactive:hover, .sfArtworkSmallWrapper_fit:hover, .sf-carousel-container, .sfArtworkSmallWrapper:hover, .watchlist_item.selected, .sf-browse-displaymodes .display-button:hover, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .bbcode_quote_body {background: #FFDD99 !important;}\n .sf-watermark, .sf-comment-options, .sf-chat-roomlist-active, .sf-chat-header-text, ul.watchlist_tabs a:visited, .sf-item-h-info-content, .wide-active, .wide-active-sub, .sf-browse-shortlist, .item.even.unread, .display-button-active, .even, .sfpreviewbox, .sfpreviewboxsmall {background: #FFBB66 !important;}\n .sf-draggable a, .topbar-cont a.avatar, .forumtitle, .forumtitle-background, .sf-content p:not(.user-stats) {background: transparent !important;}\n span.user-info, div.user-info {background: rgba(235,130,0,0.6) !important;}\n .meterorange {background: #996622 !important; border-color: #996622;}\n .sf-tag, .pager a:visited, .pager a:hover {background: #CC8822 !important;}\n .watchlist_item, textarea#sfCommentReplyTextarea, #sf-profile-wide-nav, #sf-accounts, .sf-carousel-container, .sf-watermark, .sfCommentBody, .wide-active, .wide-active-sub, .wide-inactive-sub:hover, .dropdown.wide, .dropdown.wide li, .sf-profile-avatarcontainer, .sf-browse-displaymodes a, .sf-tabbar-inner a, #sf-socialize, .sfArtworkSmallInner.submissiononhold, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .sfTextMedDark span span, li.current a, tbody tr, .vertical .row.submit, .topbar-cont ul.dropdown, .bbcode_quote_body, .topbar {border-color: #DD7722 !important;}\n .sf-browse-displaymodes, .sf-content form td, .sf-content form th, .watchlist_header, #sf-textcontent-controls li, table.items thead th, .sf-chat-users-levelheader, h4, .sf-story-wide, .even td, .odd td, .forum_forumpost {border-bottom-color: #DD7722 !important;}\n .sf-content form th, .watchlist-nuke, li.current a, #sf-textcontent-controls li, fieldset p.row, .forum_fp_postsignature {border-top-color: #DD7722 !important;}\n .title.sfTextMedDark, #sf-textcontent-controls, .sfCommentChildrenOuter {border-style: none !important;}\n .tag.sfTextDark {border-color: #FFBB77 !important;}\n li.current a {border-bottom-color: #FFE0BB !important;}\n .sf-story .sf-story-tags a, #sfContentDescription p, #section-favors-footer.section-footer a, .sf-story-big-tags a, .sidebarfilter-inactive a, .sf-chat-rating, .sf-chat-users-levelheader, .sfArtworkSmallWrapper a.sfTextMedLight, #sf-userinfo-outer .sfTextMedLight:not(.sfTextMedium), .sf-story-wide .sf-story-tags, .sf-market-browse-offer .sfTextMedLight, .forum_fp_postsignature, .sftagbrowser-browselink a {color: #777777 !important;}\n .sfTextMedDark .sfTextMedLight, .sf-comment-date.sfTextMedium, .sf-story abbr, .sf-story .sfTextMedium, #sf-accounts a {color: #907566 !important;}\n .sfTextMedDark span span p, div.sfCommentBody p, .sf-story:hover .sf-story-tags a, .sf-content-invisible p, .row label, .view legend, .section-title, #sfContentBody.sfTextMedDark p, .sflabel.biglabel, .sf-chat-roomlist-room a, .sf-chat-header-text, #sf-chat-users a, #sf-userinfo-outer .sfTextMedium, .sf-story-wide:hover .sf-story-tags, #sfCommentBody.sfTextMedDark p, .sf-market-browse-offer .sfTextMedium {color: #333333 !important;}\n span.sfTextMedDark span span a, a.wide-inactive, div.sfCommentBody a, .sfTextAttention, .sf-story-headline a, .sf-story-big-headline a, .sidebarfilter-active, .sidebarfilter:not(.sidebarfilter-inactive) a, a.display-button:hover, a.display-button-active:hover, .section-content a, td.link-column a, .sf-chat-username a, .watchlist_tabs a, .js_select_none, .js_select_all, .watchlist_meta a, table.items tr.active a, table.items tr.inactive a, .sf-sidebar .section a, .forumtitle a, .verysmalllabel, #sfContentTitle, .sf-browse-simpleitem:hover a, .sf-browse-shortlist a, .sf-browse-shortlist-zebra a, .sf-profile-avatarcontainer span, .watchlist_item a, .details a, .section-title-highlight, #sf-socialize input, .forum_threads a, .sf-market-browse-offer a, .forum_fp_header a, #sfContentBody a, .bigsubmit, .smallsubmit, .smalllabel a, .sf-avatar-provided a {color: #552200 !important;}\n .forumtitle-background tbody a {color: #885511 !important;}\n .sf-tabbar-inner a {color: white !important; text-shadow: 0px 1px black !important;}\n span.sfTextMedDark span span span span span:not(.sfTextMedLight), .sf-watermark span {color: black !important;}\n .sticky {position: fixed !important; width: 100% !important; left: 0; top: 0; z-index: 100; border-top: 0 !important;}\n .script {width: 90px !important;}\n .topbar ul.dropdown {background: rgba(50,20,0,0.9) !important;}";
else if (cozy_color == "yellow")
css = ".topbar-cont, .sftc-title, .sftc-title a, .sf-footer-breadcrumb, .topbar-cont a:not(.drop):link, .topbar-cont button, #sf-chat-inputarea, .button.buttonsmall, .sf-tabbar a.button:hover, ul.tabs, ul.tabs a, .button-bar, #nuke_everything, #nuke_current_tab, #nuke_selected:active, #sfCommentReplyContainer input, .pager input, .sf-content a.button, #yt29, #yt31, .topbar-cont #yt0, .sf-tabbar-inner a.current, .button-bar input, .sf-sidebar input:not(#suggestedtags):not(#sidebarsearch), .row.submit input, .thread_actions input, #nuke_selected {background: -moz-linear-gradient(top, #FFFF00 0%, #AAAA00 50%, #666622 100%) !important; color: white; text-shadow: 0px 1px black !important; border-color: #999922 !important; color: white !important;}\n #yt1, #yt29:hover, #yt31:hover, .sf-tabbar, .sf-tabbar a.button, ul.tabs a.active, .sffile span, .button-bar input:hover, .pager input:hover, #sfCommentReplyContainer input:hover, .sf-sidebar input:hover:not(#sidebarsearch):not(#suggestedtags), #nuke_everything:hover, #nuke_current_tab:hover, .sf-content a.button:hover, .row.submit input:hover, .thread_actions input:hover {background: -moz-linear-gradient(top, #FFFF99 0%, #FFFF22 50%, #999922 100%) !important; color: white; text-shadow: 0px 1px black; border-color: #AAAA33 !important;}\n .topbar-cont button:hover, #headersearch, .sftc-title a:hover, .button.buttonsmall:hover, ul.tabs a:hover:not(.active), #LoginForm_sfLoginUsername, #LoginForm_sfLoginPassword, .topbar-cont #yt0:hover, .button-bar a.button:hover, .bbcode_quote_head {background: -moz-linear-gradient(top, #CCCC00 0%, #888822 50%, #333300 100%) !important; border-color: #999922 !important;}\n a#sf-userinfo-outer:hover, .sf-story-big, .title.sfTextMedDark, .wide-inactive-sub:hover, #sf-textcontent-controls, .context-menu-root, table.items tr.active, .sf-market-browse-offer, .bigsubmit:hover, .smallsubmit:hover {background: -moz-linear-gradient(top, #FFFFBB 0%, #FFFFFF 100%) !important;}\n #sf-textcontent-controls li:hover, #sf-chat-submit, input#addtagsform_submit, #sf-socialize input:hover {background: -moz-linear-gradient(top, #FFFFDD 0%, #FFFFDD 50%, #FFFFBB 50%, #FFFFBB 100%) !important; color: #666666; text-shadow: 0px 1px white; border-color: #FFFF66;}\n div.sf-content, .sfCommentBody, .sf-sidebar, .sf-main, .sf-chat-dynamic td, .sf-content h2:not(.forumtitle), .sf-external-title, fieldset#general, fieldset#notifications, div.banner, div.watchlist, .watchlist-nuke, .date-tile, .watchlist-wrapper form, #sffp-intro, .sf-browse-shortlist-zebra, h4, fieldset, div.grey, .bigsubmit, .smallsubmit {background: #FFFFDD !important;}\n .wide-inactive:hover, .sfArtworkSmallWrapper_fit:hover, .sf-carousel-container, .sfArtworkSmallWrapper:hover, .watchlist_item.selected, .sf-browse-displaymodes .display-button:hover, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .bbcode_quote_body {background: #FFFFD0 !important;}\n .sf-watermark, .sf-comment-options, .sf-chat-roomlist-active, .sf-chat-header-text, ul.watchlist_tabs a:visited, .sf-item-h-info-content, .wide-active, .wide-active-sub, .sf-browse-shortlist, .item.even.unread, .display-button-active, .even, .sfpreviewbox, .sfpreviewboxsmall {background: #FFFFAA !important;}\n .sf-draggable a, .topbar-cont a.avatar, .forumtitle, .forumtitle-background, .sf-content p:not(.user-stats) {background: transparent !important;}\n span.user-info, div.user-info {background: rgba(255,255,136,0.6) !important;}\n .meterorange {background: #AAAA33 !important; border-color: #AAAA33;}\n .sf-tag, .pager a:visited, .pager a:hover {background: #CCCC88 !important;}\n .watchlist_item, textarea#sfCommentReplyTextarea, #sf-profile-wide-nav, #sf-accounts, .sf-carousel-container, .sf-watermark, .sfCommentBody, .wide-active, .wide-active-sub, .wide-inactive-sub:hover, .dropdown.wide, .dropdown.wide li, .sf-profile-avatarcontainer, .sf-browse-displaymodes a, .sf-tabbar-inner a, #sf-socialize, .sfArtworkSmallInner.submissiononhold, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .sfTextMedDark span span, li.current a, tbody tr, .vertical .row.submit, .topbar-cont ul.dropdown, .bbcode_quote_body, .topbar {border-color: #CCCC66 !important;}\n .sf-browse-displaymodes, .sf-content form td, .sf-content form th, .watchlist_header, #sf-textcontent-controls li, table.items thead th, .sf-chat-users-levelheader, h4, .sf-story-wide, .even td, .odd td, .forum_forumpost {border-bottom-color: #CCCC66 !important;}\n .sf-content form th, .watchlist-nuke, li.current a, #sf-textcontent-controls li, fieldset p.row, .forum_fp_postsignature {border-top-color: #CCCC66 !important;}\n .title.sfTextMedDark, #sf-textcontent-controls, .sfCommentChildrenOuter {border-style: none !important;}\n .tag.sfTextDark {border-color: #FFFFAA !important;}\n li.current a {border-bottom-color: #FFFFDD !important;}\n .sf-story .sf-story-tags a, #sfContentDescription p, #section-favors-footer.section-footer a, .sf-story-big-tags a, .sidebarfilter-inactive a, .sf-chat-rating, .sf-chat-users-levelheader, .sfArtworkSmallWrapper a.sfTextMedLight, #sf-userinfo-outer .sfTextMedLight:not(.sfTextMedium), .sf-story-wide .sf-story-tags, .sf-market-browse-offer .sfTextMedLight, .forum_fp_postsignature, .sftagbrowser-browselink a {color: #777777 !important;}\n .sfTextMedDark .sfTextMedLight, .sf-comment-date.sfTextMedium, .sf-story abbr, .sf-story .sfTextMedium, #sf-accounts a {color: #808066 !important;}\n .sfTextMedDark span span p, div.sfCommentBody p, .sf-story:hover .sf-story-tags a, .sf-content-invisible p, .row label, .view legend, .section-title, #sfContentBody.sfTextMedDark p, .sflabel.biglabel, .sf-chat-roomlist-room a, .sf-chat-header-text, #sf-chat-users a, #sf-userinfo-outer .sfTextMedium, .sf-story-wide:hover .sf-story-tags, #sfCommentBody.sfTextMedDark p, .sf-market-browse-offer .sfTextMedium {color: #333333 !important;}\n span.sfTextMedDark span span a, a.wide-inactive, div.sfCommentBody a, .sfTextAttention, .sf-story-headline a, .sf-story-big-headline a, .sidebarfilter-active, .sidebarfilter:not(.sidebarfilter-inactive) a, a.display-button:hover, a.display-button-active:hover, .section-content a, td.link-column a, .sf-chat-username a, .watchlist_tabs a, .js_select_none, .js_select_all, .watchlist_meta a, table.items tr.active a, table.items tr.inactive a, .sf-sidebar .section a, .forumtitle a, .verysmalllabel, #sfContentTitle, .sf-browse-simpleitem:hover a, .sf-browse-shortlist a, .sf-browse-shortlist-zebra a, .sf-profile-avatarcontainer span, .watchlist_item a, .details a, .section-title-highlight, #sf-socialize input, .forum_threads a, .sf-market-browse-offer a, .forum_fp_header a, #sfContentBody a, .bigsubmit, .smallsubmit, .smalllabel a, .sf-avatar-provided a {color: #444411 !important;}\n .forumtitle-background tbody a {color: #666644 !important;}\n .sf-tabbar-inner a {color: white !important; text-shadow: 0px 1px black !important;}\n span.sfTextMedDark span span span span span:not(.sfTextMedLight), .sf-watermark span {color: black !important;}\n .sticky {position: fixed !important; width: 100% !important; left: 0; top: 0; z-index: 100; border-top: 0 !important;}\n .script {width: 90px !important;}\n .topbar ul.dropdown {background: rgba(50,50,0,0.9) !important;}";
else if (cozy_color == "green")
css = ".topbar-cont, .sftc-title, .sftc-title a, .sf-footer-breadcrumb, .topbar-cont a:not(.drop):link, .topbar-cont button, #sf-chat-inputarea, .button.buttonsmall, .sf-tabbar a.button:hover, ul.tabs, ul.tabs a, .button-bar, #nuke_everything, #nuke_current_tab, #nuke_selected:active, #sfCommentReplyContainer input, .pager input, .sf-content a.button, #yt29, #yt31, .topbar-cont #yt0, .sf-tabbar-inner a.current, .button-bar input, .sf-sidebar input:not(#suggestedtags):not(#sidebarsearch), .row.submit input, .thread_actions input, #nuke_selected {background: -moz-linear-gradient(top, #00FF00 0%, #33AA33 50%, #004400 100%) !important; color: white; text-shadow: 0px 1px black !important; border-color: #229922 !important; color: white !important;}\n #yt1, #yt29:hover, #yt31:hover, .sf-tabbar, .sf-tabbar a.button, ul.tabs a.active, .sffile span, .button-bar input:hover, .pager input:hover, #sfCommentReplyContainer input:hover, .sf-sidebar input:hover:not(#sidebarsearch):not(#suggestedtags), #nuke_everything:hover, #nuke_current_tab:hover, .sf-content a.button:hover, .row.submit input:hover, .thread_actions input:hover {background: -moz-linear-gradient(top, #99FF99 0%, #22FF22 50%, #229922 100%) !important; color: white; text-shadow: 0px 1px black; border-color: #229922 !important;}\n .topbar-cont button:hover, #headersearch, .sftc-title a:hover, .button.buttonsmall:hover, ul.tabs a:hover:not(.active), #LoginForm_sfLoginUsername, #LoginForm_sfLoginPassword, .topbar-cont #yt0:hover, .button-bar a.button:hover, .bbcode_quote_head {background: -moz-linear-gradient(top, #00CC00 0%, #228822 50%, #001100 100%) !important; border-color: #229922 !important;}\n a#sf-userinfo-outer:hover, .sf-story-big, .title.sfTextMedDark, .wide-inactive-sub:hover, #sf-textcontent-controls, .context-menu-root, table.items tr.active, .sf-market-browse-offer, .bigsubmit:hover, .smallsubmit:hover {background: -moz-linear-gradient(top, #BBFFBB 0%, #FFFFFF 100%) !important;}\n #sf-textcontent-controls li:hover, #sf-chat-submit, input#addtagsform_submit, #sf-socialize input:hover {background: -moz-linear-gradient(top, #DDFFDD 0%, #DDFFDD 50%, #AAFFBB 50%, #AAFFBB 100%) !important; color: #666666; text-shadow: 0px 1px white; border-color: #66FF66;}\n div.sf-content, .sfCommentBody, .sf-sidebar, .sf-main, .sf-chat-dynamic td, .sf-content h2:not(.forumtitle), .sf-external-title, fieldset#general, fieldset#notifications, div.banner, div.watchlist, .watchlist-nuke, .date-tile, .watchlist-wrapper form, #sffp-intro, .sf-browse-shortlist-zebra, h4, fieldset, div.grey, .bigsubmit, .smallsubmit {background: #DDFFDD !important;}\n .wide-inactive:hover, .sfArtworkSmallWrapper_fit:hover, .sf-carousel-container, .sfArtworkSmallWrapper:hover, .watchlist_item.selected, .sf-browse-displaymodes .display-button:hover, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .bbcode_quote_body {background: #CCFFD0 !important;}\n .sf-watermark, .sf-comment-options, .sf-chat-roomlist-active, .sf-chat-header-text, ul.watchlist_tabs a:visited, .sf-item-h-info-content, .wide-active, .wide-active-sub, .sf-browse-shortlist, .item.even.unread, .display-button-active, .even, .sfpreviewbox, .sfpreviewboxsmall {background: #AAFFAA !important;}\n .sf-draggable a, .topbar-cont a.avatar, .forumtitle, .forumtitle-background, .sf-content p:not(.user-stats) {background: transparent !important;}\n span.user-info, div.user-info {background: rgba(100,240,110,0.6) !important;}\n .meterorange {background: #33AA33 !important; border-color: #33AA33;}\n .sf-tag, .pager a:visited, .pager a:hover {background: #33AA22 !important;}\n .watchlist_item, textarea#sfCommentReplyTextarea, #sf-profile-wide-nav, #sf-accounts, .sf-carousel-container, .sf-watermark, .sfCommentBody, .wide-active, .wide-active-sub, .wide-inactive-sub:hover, .dropdown.wide, .dropdown.wide li, .sf-profile-avatarcontainer, .sf-browse-displaymodes a, .sf-tabbar-inner a, #sf-socialize, .sfArtworkSmallInner.submissiononhold, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .sfTextMedDark span span, li.current a, tbody tr, .vertical .row.submit, .topbar-cont ul.dropdown, .bbcode_quote_body, .topbar {border-color: #66CC66 !important;}\n .sf-browse-displaymodes, .sf-content form td, .sf-content form th, .watchlist_header, #sf-textcontent-controls li, table.items thead th, .sf-chat-users-levelheader, h4, .sf-story-wide, .even td, .odd td, .forum_forumpost {border-bottom-color: #66CC66 !important;}\n .sf-content form th, .watchlist-nuke, li.current a, #sf-textcontent-controls li, fieldset p.row, .forum_fp_postsignature {border-top-color: #66CC66 !important;}\n .title.sfTextMedDark, #sf-textcontent-controls, .sfCommentChildrenOuter {border-style: none !important;}\n .tag.sfTextDark {border-color: #AAFFAA !important;}\n li.current a {border-bottom-color: #DDFFDD !important;}\n .sf-story .sf-story-tags a, #sfContentDescription p, #section-favors-footer.section-footer a, .sf-story-big-tags a, .sidebarfilter-inactive a, .sf-chat-rating, .sf-chat-users-levelheader, .sfArtworkSmallWrapper a.sfTextMedLight, #sf-userinfo-outer .sfTextMedLight:not(.sfTextMedium), .sf-story-wide .sf-story-tags, .sf-market-browse-offer .sfTextMedLight, .forum_fp_postsignature, .sftagbrowser-browselink a {color: #777777 !important;}\n .sfTextMedDark .sfTextMedLight, .sf-comment-date.sfTextMedium, .sf-story abbr, .sf-story .sfTextMedium, #sf-accounts a {color: #668066 !important;}\n .sfTextMedDark span span p, div.sfCommentBody p, .sf-story:hover .sf-story-tags a, .sf-content-invisible p, .row label, .view legend, .section-title, #sfContentBody.sfTextMedDark p, .sflabel.biglabel, .sf-chat-roomlist-room a, .sf-chat-header-text, #sf-chat-users a, #sf-userinfo-outer .sfTextMedium, .sf-story-wide:hover .sf-story-tags, #sfCommentBody.sfTextMedDark p, .sf-market-browse-offer .sfTextMedium {color: #333333 !important;}\n span.sfTextMedDark span span a, a.wide-inactive, div.sfCommentBody a, .sfTextAttention, .sf-story-headline a, .sf-story-big-headline a, .sidebarfilter-active, .sidebarfilter:not(.sidebarfilter-inactive) a, a.display-button:hover, a.display-button-active:hover, .section-content a, td.link-column a, .sf-chat-username a, .watchlist_tabs a, .js_select_none, .js_select_all, .watchlist_meta a, table.items tr.active a, table.items tr.inactive a, .sf-sidebar .section a, .forumtitle a, .verysmalllabel, #sfContentTitle, .sf-browse-simpleitem:hover a, .sf-browse-shortlist a, .sf-browse-shortlist-zebra a, .sf-profile-avatarcontainer span, .watchlist_item a, .details a, .section-title-highlight, #sf-socialize input, .forum_threads a, .sf-market-browse-offer a, .forum_fp_header a, #sfContentBody a, .bigsubmit, .smallsubmit, .smalllabel a, .sf-avatar-provided a {color: #113311 !important;}\n .forumtitle-background tbody a {color: #557755 !important;}\n .sf-tabbar-inner a {color: white !important; text-shadow: 0px 1px black !important;}\n span.sfTextMedDark span span span span span:not(.sfTextMedLight), .sf-watermark span {color: black !important;}\n .sticky {position: fixed !important; width: 100% !important; left: 0; top: 0; z-index: 100; border-top: 0 !important;}\n .script {width: 90px !important;}\n .topbar ul.dropdown {background: rgba(0,50,5,0.9) !important;}";
else if (cozy_color == "blue")
css= ".topbar-cont, .sftc-title, .sftc-title a, .sf-footer-breadcrumb, .topbar-cont a:not(.drop):link, .topbar-cont button, #sf-chat-inputarea, .button.buttonsmall, .sf-tabbar a.button:hover, ul.tabs, ul.tabs a, .button-bar, #nuke_everything, #nuke_current_tab, #nuke_selected:active, #sfCommentReplyContainer input, .pager input, .sf-content a.button, #yt29, #yt31, .topbar-cont #yt0, .sf-tabbar-inner a.current, .button-bar input, .sf-sidebar input:not(#suggestedtags):not(#sidebarsearch), .row.submit input, .thread_actions input, #nuke_selected {background: -moz-linear-gradient(top, #7db9e8 0%, #2989d8 50%, #1e5799 100%) !important; color: white; text-shadow: 0px 1px black !important; border-color: #3333FF !important; color: white !important;}\n #yt1, #yt29:hover, #yt31:hover, .sf-tabbar, .sf-tabbar a.button, ul.tabs a.active, .sffile span, .button-bar input:hover, .pager input:hover, #sfCommentReplyContainer input:hover, .sf-sidebar input:hover:not(#sidebarsearch):not(#suggestedtags), #nuke_everything:hover, #nuke_current_tab:hover, .sf-content a.button:hover, .row.submit input:hover, .thread_actions input:hover {background: -moz-linear-gradient(top, #d2e4f7 0%, #7db9e8 50%, #2989d8 100%) !important; color: white; text-shadow: 0px 1px black; border-color: #6666FF !important;}\n .topbar-cont button:hover, #headersearch, .sftc-title a:hover, .button.buttonsmall:hover, ul.tabs a:hover:not(.active), #LoginForm_sfLoginUsername, #LoginForm_sfLoginPassword, .topbar-cont #yt0:hover, .button-bar a.button:hover, .bbcode_quote_head {background: -moz-linear-gradient(top, #428fed 0%, #226db7 50%, #0f2e77 100%) !important; border-color: #3333FF !important;}\n a#sf-userinfo-outer:hover, .sf-story-big, .title.sfTextMedDark, .wide-inactive-sub:hover, #sf-textcontent-controls, .context-menu-root, table.items tr.active, .sf-market-browse-offer, .bigsubmit:hover, .smallsubmit:hover {background: -moz-linear-gradient(top, #BBBBFF 0%, #FFFFFF 100%) !important;}\n #sf-textcontent-controls li:hover, #sf-chat-submit, input#addtagsform_submit, #sf-socialize input:hover {background: -moz-linear-gradient(top, #DDDDFF 0%, #DDDDFF 50%, #AABBFF 50%, #AABBFF 100%) !important; color: #666666; text-shadow: 0px 1px white; border-color: #6666FF;}\n div.sf-content, .sfCommentBody, .sf-sidebar, .sf-main, .sf-chat-dynamic td, .sf-content h2:not(.forumtitle), .sf-external-title, fieldset#general, fieldset#notifications, div.banner, div.watchlist, .watchlist-nuke, .date-tile, .watchlist-wrapper form, #sffp-intro, .sf-browse-shortlist-zebra, h4, fieldset, div.grey, .bigsubmit, .smallsubmit {background: #DDDDFF !important;}\n .wide-inactive:hover, .sfArtworkSmallWrapper_fit:hover, .sf-carousel-container, .sfArtworkSmallWrapper:hover, .watchlist_item.selected, .sf-browse-displaymodes .display-button:hover, #sf-profile-wide-nav a.wide-inactive:hover, .sf-story:hover, .sf-story-wide:hover, .bbcode_quote_body {background: #CCD0FF !important;}\n .sf-watermark, .sf-comment-options, .sf-chat-roomlist-active, .sf-chat-header-text, ul.watchlist_tabs a:visited, .sf-item-h-info-content, .wide-active, .wide-active-sub, .sf-browse-shortlist, .item.even.unread, .display-button-active, .even, .sfpreviewbox, .sfpreviewboxsmall {background: #AABBFF !important;}\n .sf-draggable a, .topbar-cont a.avatar, .forumtitle, .forumtitle-background, .sf-content p:not(.user-stats) {background: transparent !important;}\n span.user-info, div.user-info {background: rgba(136,136,255,0."
}
}
}
document.addEventListener('keyup', doc_keyUp, false);
function doc_keyUp(e) {
//Scroll up and down the page
if (e.ctrlKey && e.keyCode==38) { //CTRL+UP
window.scrollTo(0, 0);}
if (e.ctrlKey && e.keyCode==40) { //CTRL+DOWN
window.scrollTo(0, document.body.scrollHeight);}
//Emulate previous button or goto next page in Browse or Search or Watchlist tabs, if possible
if (e.ctrlKey && e.keyCode==37) { //CTRL+LEFT
history.back();}
if (e.ctrlKey && e.keyCode==39 && nextPage != "null" && typeof nextPage != "undefined") { //CTRL+RIGHT
window.location.href = nextPage;}
//Disable/Enable vertical scrollbar
if (e.ctrlKey && e.keyCode==32) { //CTRL+SPACE
scrollBar = !scrollBar;
if (scrollBar) {
$("body").css("overflow", "auto");
$('body').css({cursor: 'default'});}
else {
$("body").css("overflow", "hidden");
$('body').css({cursor: 'none'});}
}
/*==========Scroll feature===========*/
//Enable/Disable pageScroll feature
if (e.altKey && e.keyCode==90) { //ALT+z
if (scrollSave == 0) {
scrollSave = GM_getValue('scrollSave', 1); // Load scrollSpeed value previously saved and calls. 1 is default
autoScroll = "ON";
$(".popbox").empty();
$("#scrollbox").append ( ' \
<center><p>Auto Scroll : <span id="autoSpan"><\span></p><center> \
<p>Speed : <span id="speedSpan"><\span></p> \
' );
$("#autoSpan").text(autoScroll);
$("#speedSpan").text(scrollSave);
}
else {
scrollSave = 0; //Null scrollSpeed, stops pageScroll()
autoScroll = "OFF"
$(".popbox").empty();
$("#scrollbox").append ( ' \
<center><p>Auto Scroll : <span id="autoSpan"><\span></p><center> \
' );
$("#autoSpan").text(autoScroll);
}
pageScroll();
//Animation popup box
$(".popbox").show();
clearTimeout(fadeTimeout); //Reset timer
fadeScroll(); //Calls fadeout function for pop-up
}
//Scroll down, increase speed
if (e.altKey && e.keyCode==40) {
if (scrollSave < scrollSpeed.length-1 && scrollSave != 0) {
scrollSave++;
GM_setValue('scrollSave', scrollSave); //Save scrollSpeed
}
if (scrollSave == 0)
scrollSave = 1;
//Animation popup box
$("#speedSpan").text(scrollSave);
$(".popbox").show();
clearTimeout(fadeTimeout); //Reset timer
fadeScroll(); //Calls fadeout function for pop-up
}
//Scroll down or stop, decrease speed
if (e.altKey && e.keyCode==38) {
if (scrollSave > 1) {
scrollSave--;
GM_setValue('scrollSave', scrollSave); //Save scrollSpeed
}
//Animation popup box
$("#speedSpan").text(scrollSave);
$(".popbox").show();
clearTimeout(fadeTimeout); //Reset timer
fadeScroll(); //Calls fadeout function for pop-up
}
}
//Auto-scroll feature
function pageScroll() {
window.scrollBy(0,1);
if (scrollSave != 0)
setTimeout(function(){pageScroll();},scrollSpeed[scrollSave]);
}
function fadeScroll() {
fadeTimeout = setTimeout(function(){stopFade();},1000);
}
function stopFade() {
$(".popbox").fadeOut(500, function() {
$(".popbox").fadeIn(1, function () {
$(".popbox").hide();
});
});
}