Przełącz na pełny ekran dla bloków kodu przy najechaniu kursorem
A comprehensive userscript that enhances code viewing experience on StackExchange sites by adding fullscreen and copy functionality to code blocks.
The script works across the entire StackExchange network:
// Core Functions
addStyles() // Injects CSS for buttons and layouts
addButtons() // Creates hover buttons for code blocks
openCodeInNewTab() // Generates fullscreen viewing experience
copyToClipboard() // Handles code copying functionality
The script can be customized by modifying CSS variables:
/* Button appearance */
.button {
background-color: #eee; /* Button background */
font-size: 12px; /* Button text size */
padding: 4px 8px; /* Button spacing */
}
/* Fullscreen styling */
.toolbar button {
background: #007acc; /* Toolbar button color */
color: white; /* Toolbar text color */
}
Syntax highlighting supports 190+ programming languages including:
Buttons not appearing
Popup blocked in fullscreen
Syntax highlighting not working
Copy not working
MIT License - Free for personal and commercial use.
For issues, feature requests, or contributions: