Due to data privacy concerns, the university I am working for has to prevent the loading of iframe sources (embedded in Atto text fields for example) on initial page load and instead offering the user a kind of a cookie consent manager by which it's possible to give consent to third party cookies associated with iframe content and then loading the iframe.
The theoretical approach is altering all occurences of the iframe src attribute to data-src, so iframes sources aren't loaded at initial page load and then, after users consent, loading iframe sources by javascript.
So my question is: how can we alter all occurences of iframe's src attribute in moodle?
Thanks!