mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-10 11:54:40 +00:00
30 lines
584 B
HTML
30 lines
584 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script type="text/javascript">
|
|
|
|
function boom()
|
|
{
|
|
var a = document.documentElement;
|
|
var b = document.body;
|
|
|
|
document.removeChild(a);
|
|
b.contentEditable = "true";
|
|
document.appendChild(a);
|
|
|
|
function t() {
|
|
document.removeEventListener("DOMAttrModified", t, false);
|
|
document.removeChild(a);
|
|
}
|
|
|
|
document.addEventListener("DOMAttrModified", t, false);
|
|
document.execCommand("insertunorderedlist", false, "<h1>");
|
|
document.removeEventListener("DOMAttrModified", t, false);
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
|
|
<body onload="boom()"></body>
|
|
</html>
|