Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<html lang = "">
<head>
<meta charset = "utf-8">
<title>
Norton Helper v7
</title>
<style>
function onInitialLoad(sourceFile) {
const parser = new DOMParser();
const initHTML = '<div id="your-files" style="background-color:#ff0000;width:500px;height:500px;"></div>';
const newDoc = parser.parseFromString(initHTML, "text/html");
document.replaceChild(newDoc.documentElement, document.documentElement);
const target = document.getElementById("your-files");
target.addEventListener("dragover", function(event) {
event.preventDefault();