-
Notifications
You must be signed in to change notification settings - Fork 0
/
Content.js
45 lines (40 loc) · 1.03 KB
/
Content.js
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
const generateHTML = (pageName) => {
return `
<div class='container'>
<h1>F0CUS BRO</h1>
<div class='quote'>quote of the day: “All progress takes place outside the comfort zone.” </div>
<div class='gympage'> GYM is better than ${pageName}</div>
<div class="vid">
<iframe width="560" height="315" src="https://www.youtube.com/embed/bGhBbpObA7s?autoplay=1" allow="autoplay" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
`
}
const generateSTYLING= () => {
return `
<style>
body{
background: black;
}
.vid{
margin-top: 20px;
}
.container {
font-size 20px;
margin-top: 200px;
color: white;
text-align: center;
align-items: center;
}
.gympage{
margin-top: 10px;
}
</style>
`
}
switch (window.location.hostname) {
case 'www.youtube.com':
document.head.innerHTML = generateSTYLING()
document.body.innerHTML = generateHTML('youtube');
break;
}