mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-10-31 18:38:45 +01:00
13 lines
356 B
JavaScript
13 lines
356 B
JavaScript
(function(){
|
|
"use strict";
|
|
|
|
const iframeCode = atob(
|
|
document.getElementById("iframe").src.replace(/^.+base64,/, "")
|
|
);
|
|
|
|
document.getElementById("code").textContent = iframeCode;
|
|
|
|
const blob = new Blob([iframeCode], {type: "text/html"});
|
|
const newurl = window.URL.createObjectURL(blob);
|
|
document.getElementById("blobIframe").src = newurl;
|
|
}()); |