-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
30 lines (29 loc) · 986 Bytes
/
popup.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html>
<head>
<title>Detoxify-Youtube</title>
<style>
body { width: 300px; padding: 10px; font-family: Arial, sans-serif; }
input { width: 100%; margin-bottom: 10px; }
button { width: 100%; }
</style>
</head>
<body>
<h2>Detoxify-Youtube</h2>
<input type="text" id="keywords" placeholder="Enter keywords (comma-separated)">
<button id="save">Save Keywords</button>
<div id="status"></div>
<script src="popup.js"></script>
<script>
// Error handling
window.onerror = function(message, source, lineno, colno, error) {
console.error("Error occurred: ", message, "Source: ", source, "Line: ", lineno);
document.getElementById('status').textContent = "An error occurred. Please check the console and reload.";
};
// Ensure DOM is fully loaded before executing scripts
document.addEventListener('DOMContentLoaded', function() {
console.log("DOM fully loaded and parsed");
});
</script>
</body>
</html>