-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
124 lines (120 loc) · 4.66 KB
/
index.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta data-hid="description" name="description" content="Watch purified youtube videos with no ads. Just focus"/>
<meta data-hid="og:url" property="og:url" content="https://purify-video.github.io"/>
<meta data-hid="og:title" property="og:title" content="purify video – watch purified youtube videos with no ads"/>
<meta data-hid="og:description" property="og:description" content="Watch purified youtube videos with no ads. Just focus"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="/favicon.ico"/>
<title>purify video – watch purified youtube videos with no ads</title>
<script type="text/javascript">
function init(){
let params = new URLSearchParams(window.location.search.substr(1));
if(params.has('v')){
purify(params.get('v').match(/(http:|https:)?(\/\/)?(www\.)?(youtube.com|youtu.be)\/(watch|embed)?(\?v=|\/)?(\S+)?/).pop())
}
}
function purify(key){
document.querySelectorAll('.iframe')[0].style.display = '';
return document.querySelectorAll('iframe')[0].setAttribute('src', 'https://www.youtube-nocookie.com/embed/'+key);
}
</script>
<style type="text/css">
* {
font-family: -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
}
a, a:hover, a:visited{
color: #000;
}
section, footer, header{
max-width:1200px;
width: 100%;
margin: auto;
}
header, footer{
text-align: center;
}
.iframe{
max-width: 1024px;
height: 560px;
margin:auto;
padding: 25px;
}
input{
display: inline;
padding: .375rem .75rem;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #212529;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #ced4da;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border-radius: .25rem;
transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
button{
display: inline-block;
font-weight: 400;
line-height: 1.5;
color: #212529;
text-align: center;
text-decoration: none;
vertical-align: middle;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
background-color: transparent;
border: 1px solid transparent;
padding: .375rem .75rem;
font-size: 1rem;
border-radius: .25rem;
font-weight: 600;
color: #fff;
background-color: #46aae9;
border-color: #61a2e7;
}
section h1{
border-bottom: 1px solid #ededed;
font-size: 1.9em;
}
code{
background: #f7f7f7;
padding: 30px 0;
display: block;
font-family: Courier New;
}
</style>
</head>
<body onload="init()">
<header>
<h1>purify video</h1>
<h2>Watch purified youtube videos with no ads. Just focus</h2>
<form method="get" action="/">
<input placeholder="Enter youtube URL" type="input" name="v">
<button>Purify</button>
</form>
</header>
<section class="iframe" style="display: none">
<iframe width="100%" height="100%" src=""
frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
</section>
<section>
<h1>Are you looking for a way to enhance your YouTube viewing experience?</h1>
<p>Look no further! This app offers a clean and minimalistic interface for a distraction-free experience.</p>
<p>Whether you're a teacher, professor, student, parent, or organizer, you can use our app to remove unwanted and inappropriate ads, comments, and related videos that may appear on the sidebar. </p>
<p>You can ensure that your students only see the content you want them to, while also keeping your own experience free of distractions. </p>
</section>
<footer>
<p>Youtube is the source of content</p>
<p><a href="https://github.com/purify-video" target="_blank"> Made with 🖤 in Wrocław</a></p>
<p>This website <strong>does not store</strong> any data such as cookies to enable essential site functionality.</p>
</footer>
</body>
</html>