SubDL Enhanced - Dark Theme + Image Previews

Combined script: Forces dark theme, displays image previews on hover and beside titles with configuration options

這裡只顯示彼此間有代碼差異的版本。 顯示所有版本。

  • v2.0 2025-05-25

    What's New in SubDL Enhanced! Version 2.0

    Version 2.0 - 2025-05-25
    This update is a big one! We've mixed the old image previews with cool new stuff.

    🚀 Brand New Stuff!


    • Awesome Dark Mode:
      • SubDL now looks great in the dark, automatically!
      • It kicks in super fast, so no annoying white flashes.

    • Cool Hover Previews:
      • Hover your mouse over a subtitle link to see a bigger image preview.
      • Shows a little loading spinner while it fetches the image.
      • If the image doesn't load, it'll tell you why.
      • The preview box cleverly moves so it always fits on your screen.
      • You can turn this on or off in the settings!

    • Super Settings Menu:
      • The settings pop-up got a makeover! It's easier to use and even shows you a live preview of how your images will look.
      • New options:
        • Turn Hover Previews on/off.
        • Turn Beside Title Previews (the ones next to the title) on/off.
      • Now has a "Cancel" button, just in case.

    • Script Details Updated:
      • The script is now called "SubDL Enhanced - Dark Theme + Image Previews".
      • It now works better on all subdl.com pages.

    ✨ Better & Improved (from old v1.4)


    • Image Previews Next to Titles:
      • The classic feature of seeing small images next to subtitle titles is still here!
      • And yup, you can now turn this on or off in the settings too.

    • More Image Control:
      • Changing image size or making them square in settings now updates all previews everywhere.
      • See your changes live in the settings menu preview.

    • Smoother & Smarter:
      • We've tidied up the code to make things run better and be easier to update in the future.
      • Image caching is smarter, so previews load faster.
      • It's better at finding new content on the page and adding previews without slowing things down.
      • Previews won't show up on pages where they don't make sense (like your account page).

    🔧 Under The Hood (Geeky Stuff)

    • All settings are now neatly grouped together.
    • Made sure image caching is consistent.

  • v1.4 2025-01-05
  • v1.3 2024-12-09
  • v1.2 2024-12-07

    Version 1.2



    • Added:
      • Download Button Visibility Toggle: Option to hide or show download buttons in the settings modal.
      • Error Handling: Fallback to poster.jpeg if image preview fails to load.
      • Performance Optimization: Throttling mechanism for adding image previews on dynamic content changes.
      • Helper Function: Simplified element creation with createElement() utility.


    • Improved:
      • Code Structure: More modular and readable implementation.
      • Async Image Fetching: Enhanced error handling and reliability.
      • Settings Management: Extended configuration options with new settings support.


    • Enhanced:
      • Mutation Observer: More efficient handling of dynamic content loading.
      • Settings Persistence: Improved saving and applying of user preferences.

  • v1.1 2024-12-06

    Change Log

    Version 1.1


    • Added:
      • Settings Modal: A modal dialog for users to customize image preview dimensions and style.
      • Persistent Settings: User preferences for image width, height, and square images are saved and retained between sessions.
      • Dynamic Preview Update: Real-time preview of settings changes within the modal.
      • Settings Menu Command: Access configuration options directly from the browser's extension menu.

    • Improved:
      • Cache Management: Enhanced cache clearing mechanism to remove old entries more efficiently.
      • Styling: Dynamic application of styles to image previews based on user settings.
      • Error Handling: Improved error handling for JSON parsing of cached data.

    • Enhanced:
      • Observer Mechanism: Ensures that image previews are added even when new content is dynamically loaded into the page.

    Version 1.0


    • Initial Release:
      • Display image previews beside subtitles on subdl.com.
      • Caching mechanism to store image URLs for faster loading.
      • MutationObserver to handle dynamic content loading.

  • v1.0 2024-12-05