// ==UserScript==
// @name TSR After Dark
// @author + polarity -
// @namespace http://www.thestudentroom.co.uk/
// @description Dark Theme for TSR
// @include http://www.thestudentroom.co.uk/
// @include http://*.thestudentroom.co.uk/
// @include http://www.thestudentroom.co.uk/*
// @include http://thestudentroom.co.uk/*
// @version 1.1
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {var css = [
"#page-columns, #page_member, #simple_aboutme_link, #visitor_message_tabs, #page-section-top, #wiki_content, #visitor_messaging .block_row, .editor_smiliebox fieldset, .floatcontainer, .carousel-page.current, .aboutme_singleline, .statistics_group, .submenu, .vm_blockrow, .post-attachments span.legend",
" {background-color: #333 !important;}",
"",
"html, #page_member, #page_showthread, #page_home, #header div.page-section, div.post-user, .bb-expand, .sticky, #announcements .important, .quote_block, .advert-block, div.select.plain.unverified",
" {background-color: #202020 !important;}", // tested with black and 282828
"",
"#username_box strong, #username_box h1, #username_box h2, #username_box h3, #profile_tabs h4, #collapseobj_stats li, #last_online, #datetime, #rank, #social-buttons, table#threadlist td.title, #cont_useful-resources, #cont_moderators, #cont_latest-content p, sub, sup, label, dd, legend, .profile_body_wrapper p, .section-header p, .column-content h1, .thread-list .last-post, .meta-info, #cont_poll .title, #cont_discussions li, #wiki_content, #quick-reply label span, .tagpost-target, li.current, li.date, .reputation-points, .post_title, .info, .followers, .origin, .description, .posted, .shade, .count, .date_text, .replies, .online-status, div.post-user, .post-tags span, .newpost .ordered-form span, .visitor_message_date, .thead.block_row, .profile_tab_header, .aboutme_single_title, .aboutme_single_value, .submenu .heading, .widget-action, .text.standard, .vm_blockrow .restore, .byline, .by, .voters, .poll_result_container, .post-edited, .post-reputation .score.zero, .post-content, .post-footer .label, .reg_home_intro, .signature, .museo, .review-username, .review-title, .review-message",
" {color: white !important;}",
"",
".vm_wrapper, .info_bar .noborder",
" {background-color: #909090 !important;}",
"",
"div.post-user",
" {border-bottom: 1px dotted #3AA6D0 !important;}", // #CCC
"",
".submenu a, .post-tags a, input",
" {color: #3BB5E0 !important;}",
"",
".sgicon p, #wysiwyg_block label, div.ed-toolbar span.ed-button, .panel legend",
" {color: #666 !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);
}
}
})();