TSR After Dark

Dark Theme for TSR

目前為 2016-11-19 提交的版本,檢視 最新版本

// ==UserScript==
// @name        TSR After Dark
// @author      + polarity -
// @namespace   http://www.thestudentroom.co.uk/
// @description Dark Theme for TSR
// @include     https://www.thestudentroom.co.uk/*
// @include     https://*.thestudentroom.co.uk/
// @version     1.18
// @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, .blockbody.formcontrols, div.blockrow, .floatcontainer, .carousel-page.current, .aboutme_singleline, .statistics_group, .submenu, .vm_blockrow, .post-attachments span.legend, div#edit_area.blockrow, .postbit-lite, .posttext.restore, .alt1.smallfont.block_row, .panelsurround",
	"	{background-color: #333 !important;}",
	"",
	"html, #page_vbcms, #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, .subforums h4, label, dd, legend, .profile_body_wrapper p, .section-header p, .column-content h1, .thread-list .last-post, .meta-info, #cont_poll .title, #cont_discussions, #wiki_content, #quick-reply label span, #profile_tabs .block_row, .tagpost-target, li.current, li.date, .aboutme_divtitle, .aboutme_divcontent, .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, form.editpost span, .reg_home_intro, .signature, .museo, .review-username, .review-title, .review-message, div.fieldset.noborder, .article-body, .widget .expand, .poll-container .result-footer, .poll-close-date, .follow-feed .user, .follow-feed .date, .follow-feed .username, .mw-headline, #bodyContent table, .floatcontainer .smallfont, .posttext.restore, .panelsurround .smallfont, .postbit-title, #searchfaq .panel, .poll-body, .postbit-preview",
	"	{color: white !important;}",
	"",	
	".vm_wrapper, .info_bar .noborder",
	"	{background-color: #909090 !important;}",
	"",
	"blockquote img",
	"	{background-color: white !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, .panel legend, #edit_area label, .ed-dropdown.list, .group_info_left h1, .bbcode_code, span.info, .ui-autocomplete-input",
	"	{color: #666 !important;}",
	"",
	// hiding some widgets
	"#widget-study-resources, #widget-scrolling-discussions, #widget-latest-content, #widget-learn-together-search, #widget-featured-stories",
	"	{display: none !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);
	}
}
}

)();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址