With CSS this should get what you described with a background that matches the text. Adding this to a theme component should override the plugin’s CSS… though it wouldn’t work for images in spoilers.
This would make the change in all browsers, you’d need to detect the user-agent in JS if you’d want to only target Firefox.
.spoiler-blurred {
filter: none;
background: var(--primary);
color: var(--primary);
}
.discourse-no-touch .spoiler-blurred:hover {
filter: none;
/* you could add a different hover effect here */
}
.spoiled {
background: transparent;
}
It’s a shame to hear about the bad Firefox performance. We don’t officially support Firefox on Android, but it looks like it impacts Firefox everywhere. Maybe we should consider going back to our old method of using a text-shadow to create the blue instead of filter…