// ==UserScript== // @name Czarndemka // @namespace https://eu07.pl/forum/index.php/topic,36217.0.html // @version 12.08.25.3 // @updateURL https://raw.githubusercontent.com/Hirek193/eu07-forum-darkmode/refs/heads/main/main.user.js // @downloadURL https://raw.githubusercontent.com/Hirek193/eu07-forum-darkmode/refs/heads/main/main.user.js // @description Czarny motyw dla forum eu07.pl // @author Hirek // @match https://eu07.pl/forum/* // @exclude https://eu07.pl/forum/upload.php* // @icon https://eu07.pl/favicon.ico // @grant GM_addStyle // ==/UserScript== (function() { 'use strict'; GM_addStyle(` body { background: #222222 !important; color: #FFFFFF; } #header div.frame { background: #333333 !important; } a:link, a:visited { color: #ffffff; !important; } #content_section div.frame { background: #333333 !important; } .windowbg, #preview_body { background-color: #222222 !important; color: #cccccc !important; } tbody { background: #222222 !important; } td, th, tr, .windowbg2, .description { color: #dddddd !important; background: #222222 !important; } .table_list tbody.content td.info a.subject { color: #ffffff !important; } h4.catbg, h4.catbg2, h3.catbg, h3.catbg2, .table_list tbody.header td.catbg, .title_barIC { background: #111111 !important; padding: 2px 4px 2px 12px; } div.cat_bar, .titlebg { background: #00AA00 !important; } .bbc_color:not([style*="color"]), .titlebg:not([style*="color"]), .ie6_header:not([style*="color"]) { color: #dddddd !important; } .button_submit, .button_reset { border: none !important; background: #222222 !important; color: #ffffff !important; padding: 6px !important; } .button_submit:hover, .button_reset:hover { background: #2a2a2a !important; } input, button, select, textarea, .button_strip_markread { border: 0px solid #ffffff; padding: 6px !important; background: #222222 !important; color: #ffffff !important; } input:focus { border: none !important; outline: none !important; background: #2a2a2a !important; } .upshrinkHeaderIC { background: #222222 !important; } .buttonlist ul li a { color: #ffffff !important; background: #222222 !important; } .bbc_code, .bbc_standard_quote { background: #353535 !important; color: #ffffff !important; } .quoteheader, .codeheader { color: #aaaaaa !important; } .bbc_code, .bbc_alternate_quote { background: #555555 !important; color: #ffffff !important; } .poster h4, .poster h4 a{ color: #aaaaaa; } .botslice, .plainbox { background: #333333 !important; } .flow_hidden, .roundframe { background: #1a1a1a !important; } .flow_hidden { padding: 8px; } .dropmenu li ul { background: #1a1a1a !important; } .firstlevel:hover, .dropmenu li a.active { background: #222222 !important; } .additional_items { background: #1a1a1a !important; } .username h4 { color: #ffffff !important; } #upshrink { color: #777777 !important; } .buttonlist ul li a.active span { background: #2A2A2A !important; border: 2px solid #ffffff !important; } div#logo_maszyna { background: transparent url(https://eu07.pl/userfiles/24886/logo_new.png); } table.table_grid td { border-bottom: 1px solid #666666 !important; border-right: 1px solid #666666 !important; } .stickybg2, .stickybg { background: #403322 !important; } .locked_sticky2, .locked_sticky { background: #402222 !important; } .signature { padding-top: 8px !important; padding-bottom: 8px !important; } .signature h5 { color: #dddddd !important; } #pollquestion { color: #ffffff !important; } `); function replaceImages() { const images = document.querySelectorAll('img.new_posts, img[alt="Nowy"]'); images.forEach(img => { const span = document.createElement('span'); span.textContent = 'Nowe!'; span.className = 'tampermonkey-new-post'; img.parentNode.replaceChild(span, img); }); } // Run once after DOM is ready window.addEventListener('load', replaceImages); // Optionally, run again for dynamically loaded content const observer = new MutationObserver(replaceImages); observer.observe(document.body, { childList: true, subtree: true }); // Inject custom style const style = document.createElement('style'); style.textContent = ` .tampermonkey-new-post { color: #ffffff; font-weight: bold; font-size: 10px; background-color: #334433; padding: 2px 4px; border-radius: 2px; } `; document.head.appendChild(style); })();