Why do you want to replace these?
Using the double slash is a common and valid way of making sure that the embed uses the same secure/non-secure protocol as the embedding page. This avoids various warnings that the browser throws when mixing secure and non-secure content.
It’s called a protocol-relative URL: https://en.wikipedia.org/wiki/URL#prurl