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