Torn.com Background Theme Editor

Change Torn's background with predefined themes and custom colors

这些是代码更新过的版本。 显示所有版本

  • v1.5 2025-03-20

    Torn Background Theme Editor - Changelog

    v1.5 - Performance Issues

    This update removed several features due to performance problems and conflicts with Torn's native functionality.

    Removed Features

    • Custom dark mode toggle (caused significant slowdowns)
    • Dark mode synchronization that conflicted with Torn's native settings
    • Complex observer patterns that impacted page loading times

    Changes

    • Script renamed to "Torn.com Background Theme Editor"
    • Simplified theme selection process
    • More informative reset notification
    • Reduced unnecessary DOM operations

    This version focuses on the core theme changing functionality while improving overall performance by removing features that were causing conflicts with Torn's interface.

    How to Toggle Dark Mode

    Since the custom dark mode toggle has been removed, you will need to use Torn's native dark mode setting:

    1. Click your profile picture in the top-right corner
    2. Find the dark mode and toggle it on

    The background theme will automatically adjust based on your dark/light mode selection.

  • v2.0 2025-03-20

    Torn.com Background Theme Editor Changelog

    Torn.com Background Theme Editor Changelog

    Version 1.0Version 2.0

    Theme Configuration Changes

    Changed default background color from #000000 to #191919
    Added darkModeBgColor with value #242424 for dark mode
    Removed darkGray theme (#121212)

    Dark Mode Improvements

    Changed "Force Dark Mode" to simply "Dark Mode" in the UI
    Added new dark mode icon with moon and stars SVG
    Added two-way synchronization with Torn's native dark mode settings
    Added function syncWithTornDarkMode() to sync with Torn's dark mode settings
    Improved dark mode detection using body class methods

    Performance Optimizations

    Added DOM caching through domCache object to reduce DOM queries
    Added throttle() function to limit rate of color updates
    Improved mutation observer efficiency with more specific attribute filters

    UI Enhancements

    Added "Reset to Default" button that fully resets all settings
    UI now shows on both preferences page and user profile pages
    Changed CSS to use minified format instead of expanded format

    Bug Fixes

    Fixed issue with color picker not always updating hex input
    Fixed inconsistency between Torn's dark mode and plugin's dark mode toggle
    Improved event handling for dark mode toggle on preferences page

    Other Improvements

    Expanded UI access to both preferences and profile pages
    Added getAutoDetectedColor() function for better theme detection
    State management is now more robust with additional checks

  • v2.1 2025-03-19

    Torn Background Theme Editor - Changelog

    Torn Background Theme Editor - Changelog


    Version 2.1
    March 2025
    • New Feature: Added Dark Mode toggle functionality - now you can enable or disable dark mode directly from the script interface without needing to use Torn's settings
    • UI Improvement: Added a dedicated "Force Dark Mode" toggle switch in the settings panel
    • Enhanced Functionality: Updated reset button to also reset dark mode settings
    • Modified: Updated credit section display style

    Version 1.0
    Initial Release
    • Initial release of Torn Background Theme Editor
    • Predefined themes: Pure Black, Dark Gray, Midnight Blue, and Princess
    • Custom color selection with color picker and hex input
    • Settings are saved between sessions
    • Mobile-responsive design
    • Easy-to-use toggle button with moon icon

    Created by TR0LL [2561502]

  • v1 2025-03-19