You can try Requestly. You can override inline as well as dynamically injected scripts (like those in data: URLs).
Create "Modify Response Body" rule to target the HTML of the page loading the data: script and replace with your own version.
data: