BskyB / Install Userstyles.org as Userscripts

// ==UserScript==
// @name          Install Userstyles.org as Userscripts
// @namespace     http://userstyles.org
// @description	  Dark Userstyles style with enabled option to install styles as userscripts
// @homepage      https://userstyles.org/styles/94669
// @run-at        document-start
// @version       0.20150913191146
// @author        BskyB
// @icon        http://i.imgur.com/uJg3uFK.png
// @include       https://userstyles.org/*
// @include      https://forum.userstyles.org/*
// ==/UserScript==
(function() {var css = "";
if (false || (document.domain == "userstyles.org" || document.domain.substring(document.domain.indexOf(".userstyles.org") + 1) == "userstyles.org") || (document.domain == "forum.userstyles.org" || document.domain.substring(document.domain.indexOf(".forum.userstyles.org") + 1) == "forum.userstyles.org") || (document.domain == "doubleclick.net" || document.domain.substring(document.domain.indexOf(".doubleclick.net") + 1) == "doubleclick.net"))
	css += [
		"#style-install-chrome {",
		"display:block !important;",
		"}",
		"#style-install-chrome .alternate-install {",
		"    float: left !important;",
		"    margin-top: -44px !important;",
		"    font-size: 20px !important;",
		"    position: relative !important;",
		"    width: 100% !important;",
		"}",
		"#style-install-chrome > p:first-of-type {",
		"display:none !important;",
		"}",
		"#style-install-chrome .install-note {",
		"color:transparent !important;",
		"height: 0px !important;",
		"}",
		"body * {",
		"    color: rgba(72%,72%,72%,1.0)!important;",
		"    background-color: transparent!important;",
		"    border-color: rgba(100%,100%,100%,0.07)!important;",
		"}",
		".author-styles img.style-warning-icon, a[href*=\"/styles/delete/\"], #social, #discussions-area > h3, a[href*=\"vanillaforums.org\"], .ProfilePhotoMedium {",
		"display:none!important;",
		"}",
		"  .ShowDiscussionAuthor {",
		"    visibility: hidden!important;",
		"    /*position: relative!important;*/",
		"    font-size: 0px!important;",
		"  }",
		"  .ShowDiscussionAuthor a {",
		"    visibility: visible!important;",
		"    /*position: absolute!important;",
		"    left: 0px!important;*/",
		"    font-size: 11px!important;",
		"  }",
		"  body, /*#main-header,*/#Head .Menu, /*#left-sidebar,*/#left-sidebar nav, #left-sidebar #related, #Frame, #content-wrapper, #main-article, #Foot, #Foot *, footer {",
		"  background-color: transparent!important;",
		"  }",
		"  input#search-terms, select, .ToggleFlyout, .OptionsMenu, .MenuTitle {",
		"  background-image: none!important;",
		"  }",
		"  html, #overlay, /* from lightbox */#main-header, #left-sidebar {",
		"    background-color: rgba(6%,6%,6%,1.0)!important;",
		"  }",
		"  #main-article {",
		"    background-color: rgba(13%,13%,13%,1.0)!important;",
		"/*      box-shadow: 0px 0px 2px 2px rgba(13%,13%,13%,1.0)!important;*/",
		"  }",
		"  iframe#add-review, #Frame #Head, .Tabs.HeadingTabs, .TextBoxWrapper *, .Box.BoxCategories, #MessageForm, .Conversation [id*=\"Message\"].Mine, .Tabs.DiscussionsTabs, #Frame #Form_Discussion, #outerImageContainer, #imageDataContainer, zerp {",
		"    background-color: rgba(16%,16%,16%,1.0)!important;",
		"  }",
		"  .Item.Comment.Alt, #Popup .Body {",
		"    background-color: rgba(19%,19%,19%,1.0)!important;  ",
		"  }",
		"  input#search-terms, select, .Item.Comment, .MessageForm.CommentForm, .Box.BoxCategories > ul.PanelInfo.PanelCategories, .Box.BoxCategories > ul.PanelInfo.PanelCategories > li, .Comment code, .Comment pre, .Message code, .Message pre, blockquote, #show-code #view-code, .Conversation [id*=\"Message\"]:not(.Mine), .FileHover, textarea, textarea *, input[type=\"text\"], input[type=\"text\"] *, #Frame #Form_Discussion input#Form_Name.InputBox.BigInput, #Frame #Form_Discussion input#Form_Name.InputBox.BigInput *, #Frame #Form_Discussion textarea#Form_Body.TextBox, #Frame #Form_Discussion textarea#Form_Body.TextBox *, .Flyout.MenuItems, .ToggleFlyout, .OptionsMenu, .MenuTitle, zerp {",
		"    background-color: rgba(24%,24%,24%,1.0)!important; /* old: 26% */",
		"  }",
		"  a.TabLink, #Head input#Form_Search * {",
		"    background-color: rgba(30%,30%,30%,1.0)!important; /* old: 36% */",
		"  }",
		"  input#search-terms, select {",
		"    opacity: 0.7!important;",
		"  }",
		"  .Item.New .Discussion strong {",
		"    /*background-color: rgba(100%,100%,100%,0.07)!important;*/",
		"  }",
		"  .Item.Comment {",
		"    box-shadow: inset 0px 0px 20px 20px rgba(6%,6%,6%,0.2)!important;",
		"    -webkit-box-shadow: inset 0px 0px 30px 30px rgba(6%,6%,6%,0.2)!important;",
		"  }",
		"    /*#Head {",
		"      background-image: -moz-linear-gradient(top, rgb(14%,14%,14%) 0%, rgb(20%,20%,20%) 100%)!important;",
		"      background-image: linear-gradient(top, rgb(14%,14%,14%) 0%, rgb(20%,20%,20%) 100%)!important;",
		"      background-image: -webkit-linear-gradient(top, rgb(14%,14%,14%) 0%, rgb(20%,20%,20%) 100%)!important;",
		"      background-image: -o-linear-gradient(top, rgb(14%,14%,14%) 0%, rgb(20%,20%,20%) 100%)!important;",
		"    }*/",
		"    .Discussions > .Item {",
		"      background-image: -moz-linear-gradient(top, rgb(10%,10%,10%) 0%, rgb(6%,6%,6%) 100%)!important;",
		"      background-image: linear-gradient(top, rgb(10%,10%,10%) 0%, rgb(6%,6%,6%) 100%)!important;",
		"      background-image: -webkit-linear-gradient(top, rgb(10%,10%,10%) 0%, rgb(6%,6%,6%) 100%)!important;",
		"      background-image: -o-linear-gradient(top, rgb(10%,10%,10%) 0%, rgb(6%,6%,6%) 100%)!important;",
		"    }",
		"    .Discussions > .Item:hover {",
		"      background-image: -moz-linear-gradient(top, rgb(12%,12%,12%) 0%, rgb(6%,6%,6%) 100%)!important;",
		"      background-image: linear-gradient(top, rgb(12%,12%,12%) 0%, rgb(6%,6%,6%) 100%)!important;",
		"      background-image: -webkit-linear-gradient(top, rgb(12%,12%,12%) 0%, rgb(6%,6%,6%) 100%)!important;",
		"      background-image: -o-linear-gradient(top, rgb(12%,12%,12%) 0%, rgb(6%,6%,6%) 100%)!important;",
		"    }",
		"#screenshots, #left-sidebar .more, iframe#add-review, a.TabLink, .MessageForm.CommentForm, .TextBoxWrapper *, .Box.BoxCategories > ul.PanelInfo.PanelCategories, .Box.BoxCategories > ul.PanelInfo.PanelCategories > li, .Comment code, .Comment pre, .Message code, .Message pre, .Conversation [id*=\"Message\"].Mine, .Conversation [id*=\"Message\"]:not(.Mine), .Tabs.DiscussionsTabs, .FileHover, #Form_Discussion, .Category, #Popup .Body, #Popup .Border {",
		"    border-color: rgba(100%,100%,100%,0.07)!important;",
		"  }",
		"    .Tabs.HeadingTabs, .Item.Comment, .Message code, textarea, textarea *, input[type=\"text\"], input[type=\"text\"] *, #Frame #Form_Discussion input#Form_Name.InputBox.BigInput, #Frame #Form_Discussion textarea#Form_Body.TextBox, .PanelCategories, .PanelCategories *, zerp {",
		"    border-color: transparent!important;",
		"    border-width: 0px!important;",
		"    border-image: none!important;",
		"  }",
		"  #main-header, #left-sidebar, #Popup .Border, #Popup .Body {",
		"    border: 1px dashed rgba(100%,100%,100%,0.11)!important;",
		"  }",
		"  .QuoteText {",
		"    border-color: rgba(133,191,37,1.0)!important; /* imgur green */",
		"  }",
		"  .Comment .Meta {",
		"    /*border-bottom: 1px dashed rgba(50%,50%,50%,0.14)!important;*/",
		"  }",
		" #main-header, #left-sidebar {",
		"      border-radius: 5px!important;",
		"    }",
		"        #main-article, #Content, #Popup .Border, #Popup .Body {",
		"      border-radius: 9px!important;",
		"    }",
		"    #Content .Tabs:first-of-type {",
		"      border-radius: 9px 9px 0px 0px!important;",
		"    }",
		"    .MessageForm, .CommentForm {",
		"      border-radius: 0px 0px 9px 9px!important;",
		"    }",
		"      #Head input#Form_Search *, .Category {",
		"      border-radius: 3px!important;",
		"    }",
		"      .Category {",
		"      border-style: solid!important;",
		"      border-width: 1px!important;",
		"    }",
		"    a, a > *, span[onclick], a[href*=\"/users/\"] {",
		"      color: rgba(58,115,201,1.0)!important; /* old, light: 34,67,117 */",
		"    }",
		"    a:hover, a:hover > *, a[href*=\"/users/\"]:hover {",
		"      color: rgba(108,167,231,1.0)!important; /* guesswork */ /* old, light: 82,115,165 */",
		"    }",
		"    a:focus {",
		"      color: rgba(6%,6%,6%,1.0)!important;",
		"      background-color: rgba(58,115,201,1.0)!important;",
		"      /* border: 2px solid rgba(58,115,201,1.0)!important; /* pseudo padding */",
		"      border-radius: 3px!important;",
		"      /*padding: 2px!important;*/",
		"      /*margin: -2px!important;*/",
		"      /*font-weight: bold!important;*/",
		"    }",
		"        a:visited, a:visited > * {",
		"      color: rgba(145,81,194,1.0)!important; /* old, light: 144,67,204 */",
		"    }",
		"    a:visited:hover, a:visited:hover > * {",
		"      color: rgba(160,113,226,1.0)!important; /* guesswork */ /* old, light: 160,99,236 */",
		"    }",
		"    a:visited:focus {",
		"      color: rgba(6%,6%,6%,1.0)!important;",
		"      background-color: rgba(145,81,194,1.0)!important;",
		"      /* border: 2px solid rgba(145,81,194,1.0)!important; /* pseudo padding */",
		"      border-radius: 3px!important;",
		"      /*padding: 2px!important;*/",
		"      /*margin: -2px!important;*/",
		"      /*font-weight: bold!important;*/",
		"    }",
		"      #Head .Menu a, .QuoteAuthor a {",
		"        color: rgba(72%,72%,72%,1.0)!important;",
		"      }",
		"      .BoxCategories a, a.TabLink {",
		"        color: rgba(78%,78%,78%,1.0)!important;",
		"      }",
		"      #Head .Menu a:hover, .BoxCategories a:hover, .QuoteAuthor a:hover, a.TabLink:hover {",
		"        color: rgba(82,115,165,1.0)!important;",
		"        text-shadow: black 1px 1px 2px!important;",
		"      }",
		"    a.Category, #discussions a[href*=\"/users/\"], .ShowDiscussionAuthor a {",
		"      color: inherit!important;",
		"    }",
		"    a.Category:hover, #discussions a[href*=\"/users/\"]:hover, .ShowDiscussionAuthor a:hover {",
		"      color: rgba(108,167,231,1.0)!important;",
		"    }",
		"    a, #show-advanced-search {",
		"      text-decoration: none!important;",
		"    }",
		"  html, body, iframe#add-review, .TextBoxWrapper *, .Count, .Meta * {",
		"    color: rgba(72%,72%,72%,1.0)!important;",
		"  }",
		"      zerp {",
		"        color: rgba(30,121,167,1.0)!important; /* normal userstyles.org link color */",
		"      }",
		"  .Tabs.HeadingTabs, .Tabs.HeadingTabs .SubTab, a.TabLink, .Comment code, #Head input#Form_Search * {",
		"    color: rgba(78%,78%,78%,1.0)!important;",
		"  }",
		"  .Comment .Meta span:not(.Author) a {",
		"    color: rgba(41%,41%,41%,1.0)!important;",
		"  }",
		"  .Item.New .Discussion strong {",
		"    color: rgba(220,205,80,0.8)!important;",
		"  }",
		"  .Item.New .Discussion strong:before {",
		"    content: \"( \"!important;",
		"    color: rgba(72%,72%,72%,0.3)!important;",
		"  }",
		"  .Item.New .Discussion strong:after {",
		"    content: \" )\"!important;",
		"    color: rgba(72%,72%,72%,0.3)!important;",
		"  }",
		"  .Item.New .CommentCount {",
		"    margin-right: 0px!important;",
		"  }",
		"    .install-status, .install-status * {",
		"    color: black!important;",
		"  }",
		"  .install-status a {",
		"    color: rgba(255,200,0,1.0)!important; /* imgur green: 133,191,37 */",
		"  }",
		"  #main-article {",
		"    padding: 1em!important;",
		"  }",
		"  #main-style-info {",
		"    padding-left: 25px!important;",
		"  }",
		"  #additional-info-text {",
		"    max-width: 50em!important;",
		"  }",
		"  body > footer {",
		"    padding-top: 100px!important;",
		"  }",
		"  .edit-link, a[href$=\"/edit\"]:not([href*=\"/users/\"]) {",
		"    font-size: 2.3em!important;",
		"    padding: 0.4em!important;",
		"  }",
		"  .edit-link {",
		"    position: absolute!important; ",
		"    }",
		"    .author-styles a[href$=\"/edit\"] {",
		"      padding: 0.2em!important;",
		"    }",
		"    .author-styles a[href*=\"/stats/\"] {",
		"      font-size: 1.4em!important;",
		"      padding: 0.2em!important;",
		"    }",
		"  a.EditComment {",
		"    font-size: 2.3em!important;",
		"    position: absolute!important;",
		"    left: -1.5em!important;",
		"    top: 1.2em!important;",
		"  }",
		"  #miscellaneous-info {",
		"    float: none!important;",
		"  }",
		"  #additional-info-text {",
		"    max-height: none!important;",
		"    overflow-y: visible!important;",
		"  }",
		"    .PanelCategories > li {",
		"      position: relative!important;",
		"      min-height: 1em!important;",
		"    }",
		"    .PanelCategories > li a {",
		"      position: absolute!important;",
		"      width: 97%!important; /* Compensating for padding */",
		"      height: 100%!important;",
		"      left: 0px!important;",
		"      padding-left: 0.5em!important;",
		"      top: 1px!important;",
		"      z-index: 5!important;",
		"    }",
		"    .Discussions > .Item a.Title {",
		"      /*        background-color: rgba(155,70,70,0.2)!important;*/",
		"      position: absolute!important;",
		"      top: 0px!important;",
		"      left: 0px!important;",
		"      padding-left: 9px!important;",
		"      width: 95%!important; ",
		"      max-width: none!important; ",
		"      height: 100%!important;",
		"    }",
		"    .Discussions > .Item a:not(.Title),",
		"    .Discussions > .Item .OptionsMenu {",
		"      position: relative!important;",
		"      z-index: 5!important;",
		"    }",
		"    .Discussions > .Item {",
		"      padding-top: 1.5em!important;",
		"    }",
		".Item.Comment .Comment {",
		"    margin: 1em 1.5em!important;",
		"  }",
		"    .Item.Comment {",
		"      position: relative!important; /* to set up for .Meta\'s position: absolute */",
		"    }",
		"    .Comment .Meta {",
		"      position: absolute!important;",
		"      top: 10px!important;",
		"      right: 696px!important;",
		"      margin: 0px!important;",
		"      min-width: 70px!important;",
		"      /*      width: 70%!important;",
		"      margin: auto!important;      */",
		"    }",
		"    .Comment .Meta > * {",
		"      display: block!important;",
		"      text-align: right!important;",
		"    }",
		"    .Comment .Meta > * {",
		"      line-height: 1.3em!important;",
		"    }",
		"    .Comment .Meta > .Author {",
		"      margin-bottom: 1em!important;",
		"    }",
		"    .Comment .Meta * {",
		"      max-height: 3em!important;",
		"    }",
		".UserQuote .QuoteAuthor {",
		"      visibility: hidden!important;",
		"    }",
		"    .UserQuote .QuoteAuthor a {",
		"      visibility: visible!important;",
		"    }",
		"    .UserQuote .QuoteAuthor a:after {",
		"      content: \":\"!important;",
		"    }",
		"    .UserQuote .QuoteAuthor {",
		"      position: absolute!important;",
		"      top: -0.8em!important;",
		"      left: 2.7em!important;",
		"    }",
		"    .UserQuote {",
		"      position: relative!important; /* just to make .QuoteAuthor absolute align off of this */",
		"      margin: 2em 3em 0em 3em!important;",
		"      border-radius: 3px!important;",
		"      padding: 0px 0px 1em 0px!important;",
		"      background-color: transparent!important;",
		"      font-size: 0.9em!important;",
		"    }",
		"    .UserQuote .QuoteAuthor a {",
		"      background-image: -moz-linear-gradient(top, rgb(26%,26%,26%) 0%, rgb(22%,22%,22%) 85%)!important;",
		"      background-image: linear-gradient(top, rgb(26%,26%,26%) 0%, rgb(22%,22%,22%) 85%)!important;",
		"      background-image: -webkit-linear-gradient(top, rgb(26%,26%,26%) 0%, rgb(22%,22%,22%) 85%)!important;",
		"      background-image: -o-linear-gradient(top, rgb(26%,26%,26%) 0%, rgb(22%,22%,22%) 85%)!important;",
		"      padding: 5px 5px 2px 5px!important;",
		"      border-radius: 9px!important; /* 3px */",
		"      /*border-top: 1px dashed rgba(133,191,37,1.0)!important;",
		"      border-left: 1px dashed rgba(133,191,37,1.0)!important;",
		"      border-right: 1px dashed rgba(133,191,37,1.0)!important;*/",
		"    }",
		"    .Comment.Alt .UserQuote .QuoteAuthor a {",
		"      background-image: -moz-linear-gradient(top, rgb(19%,19%,19%) 0%, rgb(25%,25%,25%) 85%)!important;",
		"      background-image: linear-gradient(top, rgb(19%,19%,19%) 0%, rgb(25%,25%,25%) 85%)!important;",
		"      background-image: -webkit-linear-gradient(top, rgb(19%,19%,19%) 0%, rgb(25%,25%,25%) 85%)!important;",
		"      background-image: -o-linear-gradient(top, rgb(19%,19%,19%) 0%, rgb(25%,25%,25%) 85%)!important;",
		"    }",
		"    .UserQuote .QuoteText {",
		"      color: rgba(55%,55%,55%,1.0)!important;",
		"      background-color: rgba(100%,100%,100%,0.07)!important;",
		"      font-style: normal!important;",
		"      border: 1px dashed rgba(133,191,37,1.0)!important;",
		"      padding-left: 11px!important;",
		"      padding-right: 11px!important;",
		"    }",
		"    #Content .P,",
		"    #main-article .pagination {",
		"      margin-top: 28px!important;",
		"    }",
		"    .Pager .Next:before {",
		"      content: \"Next\"!important;",
		"    }",
		"    .Pager .Previous:after {",
		"      content: \"Previous\"!important;",
		"    }",
		"    .pagination .next_page,",
		"    .pagination .prev_page,",
		"    .Pager .Next,",
		"    .Pager .Previous {",
		"      font-size: 2em!important;",
		"      background-color: rgba(100%,100%,100%,0.07)!important;",
		"      padding: 3px 6px!important;",
		"      border-radius: 6px!important;",
		"      transition: 0.2s 0s!important;",
		"    }",
		"    .pagination .next_page:hover,",
		"    .pagination .prev_page:hover,",
		"    .Pager .Next:hover,",
		"    .Pager .Previous:hover {",
		"      border-radius: 9px!important;",
		"    }",
		"    .pagination .next_page:focus,",
		"    .pagination .prev_page:focus,",
		"    .Pager .Next:focus,",
		"    .Pager .Previous:focus {",
		"      background-color: rgba(100%,100%,100%,0.14)!important;",
		"      outline: none!important;",
		"      /* restoration from inversion effect; not applicable due to background-image */",
		"        color: rgba(72%,72%,72%,1.0)!important;",
		"    }",
		"    .Button, .BigButton, .WriteButton, .PreviewButton, .DraftButton, a[class$=\"Button\"], a.next_page, a.prev_page, a.Next, a.Previous {",
		"      background-image: -moz-linear-gradient(top, rgb(26%,26%,26%) 0%, rgb(13%,13%,13%) 100%)!important;",
		"      background-image: linear-gradient(top, rgb(26%,26%,26%) 0%, rgb(13%,13%,13%) 100%)!important;",
		"      background-image: -webkit-linear-gradient(top, rgb(26%,26%,26%) 0%, rgb(13%,13%,13%) 100%)!important;",
		"      background-image: -o-linear-gradient(top, rgb(26%,26%,26%) 0%, rgb(13%,13%,13%) 100%)!important;",
		"      border-color: transparent!important;",
		"      border-width: 0px!important;",
		"      text-shadow: rgba(6%,6%,6%,1.0) 0px 1px 0px!important;",
		"      box-shadow: rgba(6%,6%,6%,1.0) 0px 0px 1px 0px!important;",
		"      -webkit-box-shadow: rgba(6%,6%,6%,1.0) 0px 0px 1.5px 0px!important;",
		"      color: rgba(72%,72%,72%,1.0)!important;",
		"    }",
		"    .Button:hover, .BigButton:hover, .WriteButton:hover, .PreviewButton:hover, .DraftButton:hover, a[class$=\"Button\"]:hover, a.next_page:hover, a.prev_page:hover, a.Next:hover, a.Previous:hover {",
		"      background-image: -moz-linear-gradient(top, rgb(26%,26%,26%) 20%, rgb(13%,13%,13%) 100%)!important;",
		"      background-image: linear-gradient(top, rgb(26%,26%,26%) 20%, rgb(13%,13%,13%) 100%)!important;",
		"      background-image: -webkit-linear-gradient(top, rgb(26%,26%,26%) 20%, rgb(13%,13%,13%) 100%)!important;",
		"      background-image: -o-linear-gradient(top, rgb(26%,26%,26%) 20%, rgb(13%,13%,13%) 100%)!important;",
		"      box-shadow: rgba(100%,100%,100%,0.35) 1px 1px 2px 0px!important;",
		"      -webkit-box-shadow: rgba(100%,100%,100%,0.35) 1px 1px 3px 0px!important;",
		"    }",
		"    .Button:focus, .BigButton:focus, .WriteButton:focus, .PreviewButton:focus, .DraftButton:focus, a[class$=\"Button\"]:focus, a.next_page:focus, a.prev_page:focus, a.Next:focus, a.Previous:focus {",
		"      box-shadow: inset rgba(6%,6%,6%,1.0) 3px 2px 3px 0px!important;",
		"      outline: none!important;",
		"      position:relative!important;",
		"      top: 2px!important;",
		"      left: 2px!important;",
		"    }",
		"  img {",
		"    opacity: 0.7!important;",
		"  }",
		"    #lightbox img {",
		"      opacity: 1.0!important;",
		"    }",
		"  #main-header, #left-sidebar, body > footer a {",
		"    opacity: 0.4!important;",
		"  }",
		"  #main-header {",
		"    transition: 0.4s 0.35s!important;    ",
		"  }",
		"  #left-sidebar, body > footer a {",
		"    transition: 0.4s 0.25s!important;  ",
		"  }",
		"  #main-header:hover, #left-sidebar:hover, body > footer a:hover {",
		"    opacity: 1.0!important;",
		"  }",
		"  #Head, .BoxCategories, .Comment .Meta,  /*.Comment .Meta span:not(.Author) a, .Comment .Meta .Author a:last-of-type /* usernames * / */ zerp {",
		"    opacity: 0.25!important;",
		"    opacity: 0.45!important;",
		"    transition: 0.4s 0.25s!important;",
		"  }",
		"  #Head:hover, .BoxCategories:hover, .Comment .Meta:hover, /*.Comment .Meta span:not(.Author) a:hover, .Comment .Meta .Author a:last-of-type:hover /* usernames * / */ zerp {",
		"    opacity: 1.0!important;",
		"  }",
		"  a.Bookmark:hover {",
		"    opacity: 0.7!important;",
		"  }",
		"  .Emoticon {",
		"    opacity: 0.3!important;",
		"  }",
		"  a.Bookmark {",
		"    background-image: url(\'http://i.imgur.com/R66x1CS.png\')!important;",
		"  }",
		"    .style-brief-stats span:last-of-type {",
		"      width: 120px!important;",
		"      overflow-x: hidden!important;",
		"    }",
		"    #main-article {",
		"      overflow-x: hidden!important;",
		"      position: relative!important;",
		"      z-index: 3!important;",
		"    }",
		"  img.good-average-rating {",
		"    /* troubleshooting  background-color: rgba(100%,100%,100%,0.07)!important; */",
		"    padding-left: 9999px!important;",
		"    background-image: url(\'http://i.imgur.com/pI3MrL6.png\')!important;",
		"    background-repeat: no-repeat!important;",
		"    background-position: 0% 100%!important;",
		"    margin-right: -9999px!important;",
		"    position: relative!important;",
		"    z-index: -3!important;",
		"  }",
		"  img.bad-average-rating {",
		"    /* troubleshooting  background-color: rgba(100%,100%,100%,0.07)!important; */",
		"    padding-left: 9999px!important;",
		"    background-image: url(\'http://i.imgur.com/KELeq5F.png\')!important;",
		"    background-repeat: no-repeat!important;",
		"    background-position: 0% 100%!important;",
		"    margin-right: -9999px!important;",
		"    position: relative!important;",
		"    z-index: -3!important;",
		"  }",
		"  #discussions .good-rating {",
		"    list-style-image: url(\"http://i.imgur.com/pI3MrL6.png\")!important;",
		"  }",
		"  #discussions .bad-rating {",
		"    list-style-image: url(\"http://i.imgur.com/KELeq5F.png\")!important;",
		"  }  ",
		"  /* other method(s) * /",
		"  img.bad-rating {",
		"    visibility: hidden!important;",
		"  }",
		"  .bad-rating:before",
		"  {",
		"    content: \"##\"!important;",
		"    color: transparent!important;",
		"    width: 11px!important;",
		"    height: 11px!important;",
		"    background-image: url(\'http://i.imgur.com/KELeq5F.png\')!important;",
		"    background-repeat: no-repeat!important;",
		"    list-style-image: url(\"http://i.imgur.com/KELeq5F.png\")!important;",
		"  }*/",
		"      input#Form_Rating1 + img,",
		"    input#Form_Rating3 + img {",
		"      visibility: hidden!important;",
		"    }",
		"    .RadioLabel:nth-of-type(2) {",
		"      background-image: url(\"http://i.imgur.com/KELeq5F.png\")!important;",
		"      background-repeat: no-repeat!important;",
		"      background-position: 25px 4px!important;",
		"    }",
		"    .RadioLabel:nth-of-type(4) {",
		"      background-image: url(\"http://i.imgur.com/pI3MrL6.png\")!important;",
		"      background-repeat: no-repeat!important;",
		"      background-position: 25px 4px!important;",
		"      /* list-style: circle outside url(\"http://i.imgur.com/pI3MrL6.png\")!important; */",
		"    }  ",
		"  a#bottomNavClose img {",
		"    visibility: hidden!important;",
		"  }",
		"  a#bottomNavClose {",
		"    background-image: url(\'http://i.imgur.com/VWuJvEI.png\')!important;",
		"    background-repeat: no-repeat!important;",
		"    background-position: center center!important;",
		"  }",
		"img.ProfilePhotoMedium, img {",
		"    border-radius: 5px!important;",
		"  }",
		"  /* #prevLink, #nextLink {",
		"    border: 1px dashed pink!important;",
		"  }*/",
		"  #prevLink:after {",
		"    content: \"← Previous\"!important;",
		"    position: absolute!important;",
		"    bottom: -2px!important;",
		"    font-size: 14px!important;",
		"    left: 24%!important;",
		"  }",
		"  #nextLink:after {",
		"    content: \"Next →\"!important;",
		"    position: absolute!important;",
		"    bottom: -2px!important;",
		"    font-size: 14px!important;",
		"    left: 70%!important;",
		"  }",
		"    html {",
		"      background-image: url(\'http://i.imgur.com/S48Fs.jpg\')!important;",
		"      background-attachment: fixed!important;",
		"      background-size: cover!important;",
		"      background-position: center center!important;",
		"      background-repeat: no-repeat!important;",
		"    }",
		"    /* Option 3: text-only ads * / /* not working, can\'t predict iframe domain and can\'t affect content * /",
		"      [id$=\"-ad\"] img, [id$=\"-ad\"] iframe, .ad img, .ad iframe {",
		"      display: none!important;",
		"        }*/",
		"    .Comment img[src$=\".gif\"], .Message img[src$=\".gif\"] {",
		"      opacity: 0.15!important;",
		"      visibility: hidden!important;",
		"    }",
		"    .Comment img[src$=\".gif\"]:after, .Message img[src$=\".gif\"]:after {",
		"      visibility: visible!important;",
		"      opacity: 1.0!important;",
		"      content: \"[emotion]\"!important;",
		"    }"
	].join("\n");
if (false || (new RegExp("^https?://userstyles.org/.+/edit$")).test(document.location.href))
	css += [
		"#left-sidebar, article#main-article > ul:first-of-type {",
		"  display:none!important;",
		"  }",
		"  article#main-article {",
		"    margin: 0px!important;",
		"    overflow-x: visible!important;",
		"  }",
		"    th {",
		"    background-color: rgba(13%,13%,13%,1.0)!important;",
		"  }  ",
		"  .form-controls a img, td img {",
		"    width: 120px!important;",
		"    margin-top: 10px!important;",
		"    border: 1px dashed grey!important;",
		"  }",
		"  textarea, input[id][type=\"text\"] {",
		"    background-color: rgba(20%,20%,20%,1.0)!important;",
		"    color: rgba(72%,72%,72%,1.0)!important;",
		"    border: 1px dashed rgba(100%,100%,100%,0.07)!important; /* for chrome, which doesn\'t have forced input borders */",
		"  }  ",
		"  textarea *, input[id][type=\"text\"] * {",
		"    background-color: rgba(20%,20%,20%,1.0)!important;",
		"    color: rgba(72%,72%,72%,1.0)!important;",
		"    border: 0px solid transparent!important; ",
		"    padding: 7px 8px!important;",
		"  }",
		"  footer {",
		"    padding-top: 80px!important;",
		"  }"
	].join("\n");
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 {
		// no head yet, stick it whereever
		document.documentElement.appendChild(node);
	}
}
})();