Compare commits

...

5 Commits

Author SHA1 Message Date
Vuk Savić
c5fb51add5
Merge pull request #2 from Andonome/image64
store images in base64
2024-09-22 14:12:15 +02:00
9591089b42
store images in base64 2024-09-22 14:08:32 +02:00
vuk
805c7694bb separate script from site 2024-08-22 16:28:31 +02:00
vuk
71f351b2a4 whoops 2024-08-22 16:01:03 +02:00
vuk
833f0c47f6 website should now communicate with the extension and hide an element based on it's presence 2024-08-22 15:56:10 +02:00
4 changed files with 9309 additions and 1 deletions

4
Makefile Normal file
View File

@ -0,0 +1,4 @@
images/%.png: %.png.64
base64 -d $< > $@
out: images/test-milje.png

View File

@ -3,9 +3,20 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#test-milje {
position: fixed;
top: 0;
left: 50%;
transform: translateX(-50%);
z-index: 1000;
}
</style>
<script async src="milje-main.js"></script>
<title>миљеген</title>
</head>
<body>
<img id="test-milje" src="test-milje.png" alt="не би требало да видиш ову слику...">
<h1>миљеген</h1>
<h2>званична страница</h2>
<p>бојлерплејт хихи</p>

6
milje-main.js Normal file
View File

@ -0,0 +1,6 @@
window.addEventListener("message", (event) => {
if (event.data.extensionDetected) {
const elementToHide = document.getElementById("test-milje");
if (elementToHide) elementToHide.style.display = "none";
}
});

9287
test-milje.png.64 Normal file

File diff suppressed because it is too large Load Diff