// ==UserScript==// @name BitcoinTalk Dark Mode// @version 0.1// @author TryNinja// @match https://bitcointalk.org/*// @grant none// ==/UserScript==(function() { 'use strict';var style = document.createElement('style');style.type = 'text/css';style.innerHTML = `.tborder{border:none;background-color:transparent;padding:0}form#quickModForm>table.bordercolor>tbody>tr>td{padding:0}#creator table.tborder,#frmLogin table.tborder,.tborder table#smfheader+table,.tborder table#smfheader+table+table,div#helpmenu+div#helpmain{border:1px solid #373b44!important}.tborder table#smfheader+table,.tborder table#smfheader+table+table{border-top:none!important}.tborder table#smfheader+table{border-bottom:none!important}#upshrinkHeader2{padding-bottom:1px}input,input[type=text],select,textarea{outline:0;padding:4px;transition:all .2s;border-radius:3px}input:disabled{background-color:#25282f}input[type=button],input[type=submit]{cursor:pointer;padding:2px 10px!important;transition:all .2s;color:#fff}input:focus,textarea:focus{border-color:#6393bf!important}input,input[type=text],textarea{border:1px solid #aaa}select{padding:2px}#bodyarea>form>table>tbody>tr>td>table{margin-top:10px}#bodyarea>form>table>tbody>tr:first-child>td>table{margin-top:0}#bodyarea #quickModForm .bordercolor{background-color:transparent}#quickModForm #preview_body,#quickModForm .windowbg{background-color:#f7f7f7}#quickModForm .windowbg2{background-color:#fff}#quickModForm .windowbg,#quickModForm .windowbg2{padding:0;border-radius:5px}form#quickModForm>table:first-child>tbody>tr:first-child td.windowbg:first-child{border-radius:0 0 5px 5px}#quickModForm td.windowbg2>table>tbody>tr>td+td,#quickModForm td.windowbg>table>tbody>tr>td+td{padding-right:25px!important;padding-left:25px!important}#quickModForm td.windowbg2>table>tbody>tr>td.poster_info,#quickModForm td.windowbg>table>tbody>tr>td.poster_info{padding-left:10px;width:14%;overflow:auto!important;border-radius:5px 0 0 5px}#quickModForm td.windowbg>table>tbody>tr>td.poster_info{background-color:#f3f3f3}#quickModForm td.windowbg2>table>tbody>tr>td.poster_info{background-color:#f7f7f7}.post{padding-top:5px}.hrcolor,hr{color:#d2d2d2;background-color:#d2d2d2}.quote{color:inherit}.quote,.quoteheader{background-color:transparent;border:none;margin-top:0}.quoteheader{margin-right:3px}.quoteheader:before{content:url(https://i.ibb.co/W0hX5KP/qicon.png);opacity:.1;margin:0 5px}.quote,.quoteheader{border-left:4px solid #ddd}.quote:hover{border-left:4px solid #ccc}.quoteheader:hover,.quoteheader:hover+.quote{border-left:4px solid #ccc}div.post[dir=rtl] .quote,div.post[dir=rtl] .quoteheader{border-right:4px solid #ddd;border-left:0!important}div.post[dir=rtl] .quote:hover{border-right-color:#ccc}div.post[dir=rtl] .quote:hover{border-right:4px solid #ccc}div.post[dir=rtl] .quoteheader:hover,div.post[dir=rtl] .quoteheader:hover+.quote{border-right:4px solid #ccc}#bodyarea table.tborder tr.catbg3,#bodyarea table.tborder tr.catbg3 td{background-image:none;background-color:#5b7e9e}tr.catbg3 #top_subject{padding-top:5px;padding-bottom:5px}#bodyarea table.tborder tr.catbg3 td:first-child{border-radius:5px 0 0 0}#bodyarea table.tborder tr.catbg3 td:last-child{border-radius:0 5px 0 0}#bodyarea>div.tborder>table.bordercolor{border-radius:5px 5px 0 0}.catbg,.catbg2,.catbg3{border-bottom:0}.catbg,.catbg2,.catbg3,tr.catbg td,tr.catbg2 td,tr.catbg3 td{background-image:none;background-color:#5b7e9e}tr.catbg3 #top_subject{padding-top:5px;padding-bottom:5px}table.bordercolor tr td.catbg3:first-child{border-radius:5px 0 0 0}table.bordercolor tr td.catbg3:last-child{border-radius:0 5px 0 0}.catbg2:first-child,.tborder>.catbg:first-child,table.bordercolor tr td.catbg:first-child{border-radius:5px 5px 0 0}.bordercolor{margin-top:0!important}.tborder #smfheader td.catbg:first-child{border-radius:5px 0 0 0}.tborder #smfheader td.catbg:last-child{border-radius:0 5px 0 0}#bodyarea tr.catbg3+tr td.smalltext{background-color:#fffce5;border-bottom:1px solid #ffde7b}#quickModForm td.windowbg2>table>tbody>tr>td.poster_info #quickModForm td.windowbg>table>tbody>tr>td.poster_info form[name=pmFolder] table>tbody>tr>td.windowbg #quickModForm td.windowbg2>table>tbody>tr>td.poster_info #quickModForm td.windowbg>table>tbody>tr>td.poster_info ,form[name=pmFolder] table.bordercolor>tbody>tr>td.windowbg #upshrinkHeader table>tbody>tr>td.windowbg #quickModForm td.windowbg2>table>tbody>tr>td.poster_info div[style^=overflow],#quickModForm td.windowbg>table>tbody>tr>td.poster_info div[style^=overflow]{overflow:unset!important}.tborder table#smfheader+table,.tborder table#smfheader+table+table{border:none!important}div[style="border:2px solid orange; background-color:lightyellow; padding:10px; margin-bottom:5px"]{color:#000}div[style="border:2px solid red; background-color:#FF9696; padding:10px; margin-bottom:5px"]{color:#000}div[style="border:2px solid red; background-color:#FF9696; padding:10px; margin-bottom:5px"] a{color:#666}input,textarea{border-color:#424448!important;background-color:#191c23}input:focus,textarea:focus{border-color:#567ee0!important}input[type=button],input[type=submit]{border:none;background-color:#3f51b5;border-radius:3px;padding:4px 7px!important}input[type=button]:hover,input[type=submit]:hover{background-color:#5265d9}.titlebg,.titlebg2,tr.titlebg td,tr.titlebg th,tr.titlebg2 td,tr.titlebg2 th{border:none;background-image:none;background-color:#373b44}#preview_body,.code,.codeheader,.nav,.nav:link,.nav:visited,.quoteheader,.titlebg,.titlebg a:link,.titlebg a:visited,.titlebg2,.titlebg2 a:link,.titlebg2 a:visited,.windowbg,.windowbg2,.windowbg3,a.nav:hover,body,input,td,textarea,th,tr,tr.titlebg td,tr.titlebg th,tr.titlebg2 td,tr.titlebg2 th{color:#ccc}#preview_body,.windowbg{background-color:#25282f}a:visited{color:#939dc5}a:link{color:#939dc5}a.ul[href^="https://bitcointalk.org/"]:hover{color:#89c775!important}.edited{border-bottom-color:#d6d6d6}div#bodyarea .maintab_back a:link,div#bodyarea .maintab_back a:visited,div#bodyarea .mirrortab_back a:link,div#bodyarea .mirrortab_back a:visited{color:#939dc5}#quickModForm #preview_body,#quickModForm .windowbg,#quickModForm .windowbg2{background-color:#23262f}#quickModForm td.windowbg2>table>tbody>tr>td.poster_info,#quickModForm td.windowbg>table>tbody>tr>td.poster_info{background-color:#20232b}.hrcolor,hr{color:#393c44;background-color:#393c44}.quoteheader,.quoteheader a{color:#737c9e}.quote,.quoteheader{border-left:4px solid #3d444e}.quote:hover{border-left:4px solid #62676f}.quoteheader:hover,.quoteheader:hover+.quote{border-left:4px solid #62676f}div.post[dir=rtl] .quote,div.post[dir=rtl] .quoteheader{border-right:4px solid #3d444e}div.post[dir=rtl] .quote:hover{border-right-color:#62676f}div.post[dir=rtl] .quote:hover{border-right:4px solid #62676f}div.post[dir=rtl] .quoteheader:hover,div.post[dir=rtl] .quoteheader:hover+.quote{border-right:4px solid #62676f}#quickModForm td.windowbg2>table>tbody>tr>td.poster_info #quickModForm td.windowbg>table>tbody>tr>td.poster_info form[name=pmFolder] table>tbody>tr>td.windowbg #bodyarea table.tborder tr.catbg3,#bodyarea table.tborder tr.catbg3 td{background-color:#373b44}.catbg,.catbg2,.catbg3,tr.catbg td,tr.catbg2 td,tr.catbg3 td{background-color:#3f4554}#bodyarea table.tborder tr.catbg3,#bodyarea table.tborder tr.catbg3 td{background-color:#373b44}#bodyarea tr.catbg3+tr td.smalltext{background-color:#292d38;border-bottom-color:#373b44;color:#fff}[style^="color: black"],[style^="color:black"]{color:#d6d6d6!important}[style^="color: green"],[style^="color:green"]{color:#5bb55b!important}[style^="color: red"],[style^="color:red"]{color:#ff3434!important}[style^="color: blue"],[style^="color:blue"]{color:#1f81ff!important}[style^="background-color: yellow"],[style^="background-color:yellow"]{color:#000}.titlebg2{background-image:none;border:none;background-color:#2d313a;color:#d6d6d6}img.reply_button{content:url(https://talkimg.com/images/2023/07/23/nzF0P.png)}img.modify_button{content:url(https://talkimg.com/images/2023/07/23/nzEMq.png)}img.remove_button{content:url(https://talkimg.com/images/2023/07/23/nzIJj.png)}.quoteheader:before{content:url(https://i.ibb.co/QpYLk0v/qiconw.png)!important;opacity:.22}.code{background-color:#2f323c;border-color:#444850}.windowbg2{background-color:#262931}.bordercolor{background-color:#363940}body{background-color:#191c23;color:#fff}.windowbg3{background-color:#22242b}.maintab_back{background-image:url(https://i.ibb.co/v1vrm0d/maintab-back.gif)}.maintab_first{background-image:url(https://i.ibb.co/DKK4rrX/maintab-first.gif)}.maintab_last{background-image:url(https://i.ibb.co/C9QxkDg/maintab-last.gif)}.maintab_active_first{background-image:url(https://i.ibb.co/Q96FRdx/maintab-active-first.gif)}.maintab_active_back{background-image:url(https://i.ibb.co/5Tk3s5j/maintab-active-back.gif)}.maintab_active_last{background-image:url(https://i.ibb.co/drDZN4d/maintab-active-last.gif)}::-webkit-scrollbar{width:10px;height:8px}::-webkit-scrollbar-track-piece{background-color:#23262f;-webkit-border-radius:6px}::-webkit-scrollbar-thumb:vertical{height:50px;background-color:#373b44;-webkit-border-radius:6px}::-webkit-scrollbar-thumb:horizontal{width:50px;background-color:#373b44;-webkit-border-radius:3px}.code::-webkit-scrollbar{width:7px;height:7px}.code::-webkit-scrollbar-thumb:vertical{height:50px;background-color:#13161c;-webkit-border-radius:6px}.code::-webkit-scrollbar-track-piece{background-color:#23262f;-webkit-border-radius:6px}.windowbg b a{color:#fff}`;document.getElementsByTagName('head')[0].appendChild(style);})();
/* Dark theme. Made by Cyrus @ Bitcointalk.org *//* Normal, standard links. */a:link{ color: #92A9BC; text-decoration: none;}a:visited{ color: #92A9BC; text-decoration: none;}a:hover{ text-decoration: underline;}/* Style for ignored topics in the message view */.ignored_topic td a:link{ color: #ACABAD; text-decoration: none; font-style:italic}.ignored_topic td a:visited{ color: #ACABAD; text-decoration: none; font-style:italic}.ignored_topic td{ color: #ACABAD; font-size:smaller; padding-top:0; padding-bottom:0}.ignored_topic .leftimg img{ display:none}/* Navigation links - for the link tree. */.nav, .nav:link, .nav:visited{ color: #C5C5C5; text-decoration: none;}a.nav:hover{ color: #C5C5C5; text-decoration: underline;}/* Tables should show empty cells. */table{ empty-cells: show;}/* By default (td, body..) use verdana in black. */body, td, th , tr{ color: #C5C5C5; font-size: 13px; font-family: verdana, sans-serif;}/* The main body of the entire forum. */body{ background-color: #111111; margin: 0px; padding: 12px 30px 4px 30px; font: 13px verdana, helvetica, sans-serif;}/* Input boxes - just a bit smaller than normal so they align well. */input, textarea, button{ color: #000000; font-family: verdana, sans-serif;}input, button{ font-size: 90%;}textarea{ font-size: 100%; color: #000000; font-family: verdana, sans-serif;}/* All input elements that are checkboxes or radio buttons. */input.check{}/* Selects are a bit smaller, because it makes them look even better 8). */select{ font-size: 90%; font-weight: normal; color: #000000; font-family: verdana, sans-serif;}/* Standard horizontal rule.. ([hr], etc.) */hr, .hrcolor{ height: 1px; border: 0; color: #656565; background-color: #656565;}/* No image should have a border when linked */a img{ border: 0;}/* A quote, perhaps from another post. */.quote{ color: #C5C5C5; background-color: #494949; border: 1px solid #BCBCBC; padding: 5px; margin: 1px 3px 6px 6px; font-size: 11px; line-height: 1.4em;}/* A code block - maybe even PHP ;). */.code{ color: #000000; background-color: #fff; font-family: "courier new", "times new roman", monospace; font-size: 12px; line-height: 1.3em; /* Put a nice border around it. */ border: 1px solid #000000; padding: 5px; margin: 1px 3px 4px 6px; width: 93%; /* Don't wrap its contents, and show scrollbars. */ white-space: nowrap; overflow: auto; /* Stop after about 24 lines, and just show a scrollbar. */ max-height: 24em;}/* The "Quote:" and "Code:" header parts... */.quoteheader, .codeheader{ color: #92A9BC; text-decoration: none; font-style: normal; font-weight: bold; font-size: 10px; line-height: 1.2em; margin-left: 6px;}/* Generally, those [?] icons. This makes your cursor a help icon. */.help{ cursor: help;}/* /me uses this a lot. (emote, try typing /me in a post.) */.meaction{ color: red;}/* The main post box - this makes it as wide as possible. */.editor{ width: 96%; height: 350px;}/* Highlighted text - such as search results. */.highlight{ background-color: yellow; font-weight: bold; color: black;}/* Alternating backgrounds for posts, and several other sections of the forum. */.windowbg, #preview_body{ color: #C5C5C5; background-color: #2A2A2A;}.windowbg2{ color: #C5C5C5; background-color: #353535;}.windowbg3{ color: #C5C5C5; background-color: #3F3F3F;}/* the today container in calendar */.calendar_today{ background-color: #FFFFFF;}/* These are used primarily for titles, but also for headers (the row that says what everything in the table is.) */.titlebg, tr.titlebg th, tr.titlebg td, .titlebg2, tr.titlebg2 th, tr.titlebg2 td{ color: #C5C5C5; font-style: normal; background: #4A4A4A repeat-x; border-bottom: solid 1px #ffffff; border-top: solid 1px #FFFFFF; padding-left: 10px; padding-right: 10px;}.titlebg, .titlebg a:link, .titlebg a:visited{ font-weight: bold; color: #C5C5C5; font-style: normal;}.titlebg a:hover{ color: #C5C5C5;}/* same as titlebg, but used where bold text is not needed */.titlebg2 a:link, .titlebg2 a:visited{ color: black; font-style: normal; text-decoration: underline;}.titlebg2 a:hover{ text-decoration: underline;}/* This is used for categories, page indexes, and several other areas in the forum..catbg and .catbg2 is for boardindex, while .catbg3 is for messageindex and display headers*/.catbg , tr.catbg td , .catbg3 , tr.catbg3 td{ background: #575757 repeat-x; color: #ffffff; padding-left: 10px; padding-right: 10px;}.catbg2 , tr.catbg2 td{ background: #717171 repeat-x; color: #ffffff; padding-left: 10px; padding-right: 10px;}.catbg, .catbg2, .catbg3{ border-bottom: solid 1px #ffffff;}.catbg, .catbg2{ font-weight: bold;}.catbg3, tr.catbg3 td, .catbg3 a:link, .catbg3 a:visited{ font-size: 95%; color: white; text-decoration: none;}.catbg a:link, .catbg a:visited , .catbg2 a:link, .catbg2 a:visited{ color: white; text-decoration: none;}.catbg a:hover, .catbg2 a:hover, .catbg3 a:hover{ color: #e0e0ff;}/* This is used for tables that have a grid/border background color (such as the topic listing.) */.bordercolor{ background-color: #ADADAD; padding: 0px;}/* This is used on tables that should just have a border around them. */.tborder{ padding: 1px; background-color: #FFFFFF;}/* Default font sizes: small (8pt), normal (10pt), and large (14pt). */.smalltext{ font-size: x-small; font-family: verdana, sans-serif;}.middletext{ font-size: 90%;}.normaltext{ font-size: small;}.largetext{ font-size: large;}/* Posts and personal messages displayed throughout the forum. */.post, .personalmessage{ width: 100%; overflow: auto; line-height: 1.3em;}/* All the signatures used in the forum. If your forum users use Mozilla, Opera, or Safari, you might add max-height here ;). */.signature{ max-height: 4em; width: 100%; overflow: hidden; padding-bottom: 3px; line-height: 1.3em;}/* Sometimes there will be an error when you post */.error{ color: red;}/* The AJAX notifier */#ajax_in_progress{ background: #32CD32; color: white; text-align: center; font-weight: bold; font-size: 18pt; padding: 3px; width: 100%; position: fixed; top: 0; left: 0;}/* Standard SMF tabs *//* definitions for the main tab, active means the tab reflects which page is displayed */.maintab_first, .maintab_back, .maintab_last, .maintab_active_first, .maintab_active_back, .maintab_active_last{ color: white; text-transform: uppercase; vertical-align: top;}.maintab_back, .maintab_active_back{ color: white; text-decoration: none; font-size: 9px; vertical-align: top; padding: 2px 6px 6px 6px; font-family: tahoma, sans-serif;}.maintab_first{}.maintab_back{ border-bottom: 1px solid white; border-left: 1px solid white; border-right: 1px solid white;}.maintab_last{}.maintab_active_first{ background: white;}.maintab_active_back{ background: #4C4C4C; border-bottom: 3px solid white;}.maintab_active_last{ background: white;}/* how links behave in main tab. */.maintab_back a:link , .maintab_back a:visited, .maintab_active_back a:link , .maintab_active_back a:visited{ color: white; text-decoration: none;}.maintab_back a:hover, .maintab_active_back a:hover{ color: #C5C5C5; text-decoration: none;}/* Custom tabs for message area *//* definitions for the main and mirror tabs, active means the tab reflects which page is displayed */div#bodyarea .maintab_first, div#bodyarea .maintab_back, div#bodyarea .maintab_last, div#bodyarea .maintab_active_first, div#bodyarea .maintab_active_back, div#bodyarea .maintab_active_last,div#bodyarea .mirrortab_first, div#bodyarea .mirrortab_back, div#bodyarea .mirrortab_last, div#bodyarea .mirrortab_active_first, div#bodyarea .mirrortab_active_back, div#bodyarea .mirrortab_active_last{ color: #a1a1a1; text-transform: lowercase; vertical-align: top;}div#bodyarea .maintab_back, div#bodyarea .maintab_active_back,div#bodyarea .mirrortab_back, div#bodyarea .mirrortab_active_back{ color: #a1a1a1; text-decoration: none; font-size: 11px; vertical-align: top; padding: 6px; padding-top: 4px; font-family: verdana, sans-serif; font-weight: bold;}div#bodyarea .maintab_first,div#bodyarea .mirrortab_first{ display: none;}div#bodyarea .maintab_back,div#bodyarea .mirrortab_back{ background: none;}div#bodyarea .maintab_last,div#bodyarea .mirrortab_last{ display: none;}div#bodyarea .maintab_active_first,div#bodyarea .mirrortab_active_first{ display: none;}div#bodyarea .maintab_active_back,div#bodyarea .mirrortab_active_back{ background: #575757 repeat-x;}div#bodyarea .maintab_active_last,div#bodyarea .mirrortab_active_last{ display: none;}/* how links behave in main tab. */div#bodyarea .maintab_back a:link, div#bodyarea .maintab_back a:visited,div#bodyarea .mirrortab_back a:link, div#bodyarea .mirrortab_back a:visited{ color: #92A9BC; text-decoration: none;}div#bodyarea .maintab_active_back a:link, div#bodyarea .maintab_active_back a:visited,div#bodyarea .mirrortab_active_back a:link, div#bodyarea .mirrortab_active_back a:visited{ color: #ffffff; text-decoration: none;}div#bodyarea .maintab_back a:hover, div#bodyarea .maintab_active_back a:hover,div#bodyarea .mirrortab_back a:hover, div#bodyarea .mirrortab_active_back a:hover{ text-decoration: underline;}.nav{ font-size: 13px; font-weight: normal;}div.nav b:last-child a{ font-weight: bold; text-decoration: none; cursor: default;}.post{ font-size: 13px;}.smalltext{ font-size: 11px;}/* valign the first column icons on main page */div div.tborder table.bordercolor td.windowbg{ vertical-align: middle;}/* valign the reply, modify etc icons with their button text */table.bordercolor td.windowbg td a img,table.bordercolor td.windowbg2 td a img{ vertical-align: middle; margin-left: 4px;}/* hide the ip logged icon */table.bordercolor td.windowbg td.smalltext td.smalltext img,table.bordercolor td.windowbg2 td.smalltext td.smalltext img{ display: none;}/* prevent gap between post icon and subject */div#bodyarea table.bordercolor td td td.td_headerandpost td:first-child{ width: 26px;}/* offline indicator: hide it, only show when online */div#bodyarea table.bordercolor td td td.poster_info div.smalltext img[src*="useroff.gif"]{ vertical-align: middle; display: none;}div#bodyarea table.bordercolor td td td.poster_info div.smalltext img[src*="useroff.gif"] + span.smalltext,div#bodyarea div.smalltext > a[title*="(Offline)"] + span.smalltext{ vertical-align: middle; display: none;}/* online indicator: get icon aligned with text and bold it */div#bodyarea table.bordercolor td td td.poster_info div.smalltext img[src*="useron.gif"]{ vertical-align: middle; margin-top: 2px; margin-bottom: 2px;}div#bodyarea table.bordercolor td td td.poster_info div.smalltext img[src*="useron.gif"] + span.smalltext,div#bodyarea div.smalltext > a[title*="(Online)"] + span.smalltext{ vertical-align: middle; font-weight: bold; line-height: 28px;}/* widen the details column on the forums directory */div.tborder table.bordercolor td.windowbg[width="6%"] + td + td + td.windowbg2[width="22%"]{ min-width: 230px;}/* widen the details column on the topics list */div.tborder table.bordercolor td.windowbg[width="4%"] + td.windowbg2[width="22%"]{ min-width: 230px;}/* hide the "logged" text/image -- CSS by ryepdx */td.smalltext[id^="modified_"] + td.smalltext[align="right"][valign="bottom"]{ display: block !important;}td.smalltext[id^="modified_"] + td.smalltext[align="right"][valign="bottom"] img,td.smalltext[id^="modified_"] + td.smalltext[align="right"][valign="bottom"] .help{ display: none !important;}/* get rid of some of the spacing left over from the empty table */table[cellpadding="3"] table[cellpadding="5"] td.smalltext[valign="bottom"][width="85%"]{ padding: 0px;}/* check the checkbox to hide email address on the registration form */input#hideEmail{ checked: checked;}.hiddenlink:link {color:lightgray;}.hiddenlink:visited {color:lightgray;}.hiddenlink:hover {color:lightgray;}.hiddenlink:active {color:lightgray;}@font-face { font-family: 'ChopinScript'; src: url('/Themes/ChopinScript.ttf') format('truetype'); font-weight: normal; font-style: normal;}@font-face { font-family: 'BTC'; src: url('/Themes/BTC.ttf') format('truetype'); font-weight: normal; font-style: normal;}.BTC {font-family: "BTC";}.edited { border-bottom: 1px dotted black; cursor: help;}img.userimg {max-width: 100%}.trustscore{white-space:nowrap}.nohover:hover{text-decoration:none}