import Foundation enum RedditHomeChromeStyle { /// Keeps Reddit header separators flush with the in-app sidebar divider. static let injectionScript = """ (function() { const STYLE_ID = 'reddora-home-chrome-style'; if (document.getElementById(STYLE_ID)) return; const style = document.createElement('style'); style.id = STYLE_ID; style.textContent = ` header, header > * { margin-left: 0 !important; } header faceplate-border, header [role="separator"], header hr { width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; } `; (document.head || document.documentElement).appendChild(style); })(); """ }