Save last quality used, clear URL on submission
This commit is contained in:
parent
1431606c75
commit
d50236f78f
3 changed files with 15 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
A web downloader for Youtube videos. It can be found at https://univerter.dev
|
A web downloader for Youtube videos. It can be found at https://univerter.dev
|
||||||
|
|
||||||
Currently only supporting Youtube. For old Univerter, which supports a variety of sites, visit https://legacy.univerter.dev.
|
Currently only supporting Youtube, and not many formats. For old Univerter, which supports a variety of sites, visit https://legacy.univerter.dev.
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,13 @@
|
||||||
|
|
||||||
<link rel="stylesheet" href="./style.css">
|
<link rel="stylesheet" href="./style.css">
|
||||||
|
|
||||||
|
<script
|
||||||
|
src="https://code.jquery.com/jquery-3.7.1.slim.min.js"
|
||||||
|
integrity="sha256-kmHvs0B+OpCW5GVHUNjv9rOmY0IvSIRcf7zGUDTDQM8="
|
||||||
|
crossorigin="anonymous"></script>
|
||||||
|
<script src=" https://cdn.jsdelivr.net/npm/js-cookie@3.0.5/dist/js.cookie.min.js "></script>
|
||||||
|
<script src="./js/main.js"></script>
|
||||||
|
|
||||||
<meta content="Univerter" property="og:title" />
|
<meta content="Univerter" property="og:title" />
|
||||||
<meta content="Univerter is a web video downloader & converter for Youtube, TikTok, Twitter, and more." property="og:description" />
|
<meta content="Univerter is a web video downloader & converter for Youtube, TikTok, Twitter, and more." property="og:description" />
|
||||||
<meta content="https://univerter.dev/Images/Univerter%20Logo.png" property="og:image" />
|
<meta content="https://univerter.dev/Images/Univerter%20Logo.png" property="og:image" />
|
||||||
|
@ -44,7 +51,6 @@
|
||||||
<select required id="format" name="format">
|
<select required id="format" name="format">
|
||||||
<option disabled>Video Formats</option>
|
<option disabled>Video Formats</option>
|
||||||
<option value="mp4">.mp4</option>
|
<option value="mp4">.mp4</option>
|
||||||
<option value="mkv">.mkv</option>
|
|
||||||
<option disabled>Audio Formats</option>
|
<option disabled>Audio Formats</option>
|
||||||
<option value="mp3" selected>.mp3</option>
|
<option value="mp3" selected>.mp3</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
7
static/js/main.js
Normal file
7
static/js/main.js
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
$(document).ready(() => {
|
||||||
|
$("#quality").val(Cookies.get("quality") || "720")
|
||||||
|
$("form").submit(() => {
|
||||||
|
Cookies.set("quality", $("#quality").val())
|
||||||
|
$("#url").val("")
|
||||||
|
})
|
||||||
|
})
|
Loading…
Reference in a new issue