<html>
<head>
  <script>
window.btoa = () => "fake btoa";
  </script>
</head>
<body>foo</body>
</html>