mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-11-10 23:28:51 +01:00
16 lines
445 B
JavaScript
16 lines
445 B
JavaScript
(function(){
|
|
"use strict";
|
|
|
|
const iframeCode = atob(
|
|
document.getElementById("iframe").src.replace(/^.+base64,/, "")
|
|
);
|
|
|
|
document.getElementById("code").textContent = iframeCode;
|
|
|
|
const blob = new Blob([iframeCode.replace(
|
|
"const origin = \"data URL iframe\";",
|
|
"const origin = \"blob iframe\";"
|
|
)], {type: "text/html"});
|
|
const newurl = window.URL.createObjectURL(blob);
|
|
document.getElementById("blobIframe").src = newurl;
|
|
}()); |