As of my last knowledge update in September 2023, the behavior you're experiencing on Discord or any website where video elements change their attributes (like from preload="none" to preload="metadata") upon mouse hover, is typically managed by the website's JavaScript and not directly by the browser's standard settings. This means, directly there's no built-in Firefox setting that allows you to prevent websites from changing the preload attribute of video elements.
However, there are several approaches you might consider to try and achieve the effect of disabling this or at least minimizing unwanted data usage or distractions:
1. Disable JavaScript for Discord
Disabling JavaScript might stop the behavior, but it will also very likely break a lot of Discord's functionality, making this solution quite impractical. If you still want to try, you can use an extension like NoScript (available for Firefox) that allows selective JavaScript blocking, but be prepared for significant loss of functionality.
2. Use a Custom Extension or Script
You might use (or develop) a Firefox extension that listens for changes to the video elements' attributes and prevents or reverses changes to the preload attribute. However, this requires programming knowledge and understanding of both web technologies and Firefox's extension development environment.
3. Modify Network Settings (A workaround)
Since the core of the concern might be about data usage or automatic loading of content, Firefox allows you to tweak how it deals with preloading. This isn't directly stopping the discord behavior but could limit data usage:
- Open
about:config in the Firefox address bar.
- Search for
media.preload.default, which controls how Firefox preloads video and audio content. The default setting is 1 (preload metadata).
- Changing this value to
2 disables preloading entirely, which might indirectly address your concern. However, this affects all websites, not only Discord.
4. Use a Privacy-focused or Ad Blocking Extension
Some ad blockers or privacy-focused extensions can block certain scripts or functionalities and might be configured to block specific behaviors like automatic video preload changes, though this is more of a collateral benefit than their intended use. Extensions such as uBlock Origin have advanced settings that can block specific requests or scripts but require detailed configuration.
Conclusion
The exact solution you're looking for – directly stopping the preload attribute from being changed by Discord upon hovering – would likely require a custom-made solution or intervention from Discord's end to introduce a user preference for this behavior. Since these changes can impact the user experience significantly, it's always good to weigh the benefits against potential downsides like reduced functionality or the need for ongoing maintenance of custom scripts/extensions.