mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-03 18:42:00 +01:00
parent
698ead8097
commit
eb1a441625
@ -1,7 +1,13 @@
|
|||||||
(function(){
|
(function(){
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
document.getElementById("code").textContent = atob(
|
var iframeCode = atob(
|
||||||
document.getElementById("iframe").src.replace(/^.+base64,/, "")
|
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;
|
||||||
}());
|
}());
|
@ -25,6 +25,8 @@
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
?>"></iframe>
|
?>"></iframe>
|
||||||
|
<h1>blob iFrame</h1>
|
||||||
|
<iframe id="blobIframe"></iframe>
|
||||||
<h1>Data-URL object</h1>
|
<h1>Data-URL object</h1>
|
||||||
<object
|
<object
|
||||||
type="invalid"
|
type="invalid"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user