Download via fdm
This commit is contained in:
@ -22,7 +22,6 @@
|
||||
|
||||
let url = document.createElement("A");
|
||||
url.textContent = "👀";
|
||||
url.toggleAttribute("download", true);
|
||||
desc.append(url);
|
||||
|
||||
let timer = setInterval(()=>{
|
||||
@ -33,8 +32,9 @@
|
||||
{
|
||||
if (new URL(player.src).hostname.endsWith("werkecdn.me"))
|
||||
{
|
||||
url.textContent = `Parsisiūsti 😜 (${new URL(player.src).pathname.split("/").pop()}) 🏴☠️`;
|
||||
url.href = player.src;
|
||||
let filename = new URL(player.src).pathname.split("/").pop();
|
||||
url.textContent = `Parsisiūsti 😜 (${filename}) 🏴☠️`;
|
||||
url.href = `fdm://download?url=${player.src}`;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user