<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TikTok Watermark Remover</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f5f5f5;
margin: 0;
}
.container {
text-align: center;
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
width: 90%;
max-width: 400px;
}
input {
width: 100%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
}
button {
width: 100%;
padding: 10px;
background: #28a745;
color: white;
border: none;
cursor: pointer;
font-size: 16px;
border-radius: 5px;
}
button:hover {
background: #218838;
}
#result {
margin-top: 20px;
}
video {
width: 100%;
border-radius: 5px;
margin-top: 10px;
}
a {
display: block;
margin-top: 10px;
color: #007bff;
text-decoration: none;
font-size: 16px;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="container">
<h2>TikTok Watermark Remover</h2>
<input type="text" id="videoUrl" placeholder="Enter TikTok Video URL">
<button onclick="downloadVideo()">Download Without Watermark</button>
<div id="result"></div>
</div>
<script>
async function downloadVideo() {
const videoUrl = document.getElementById("videoUrl").value.trim();
if (!videoUrl) {
alert("Please enter a TikTok video URL.");
return;
}
const apiURL = `https://your-server.com/api/download?url=${encodeURIComponent(videoUrl)}`;
try {
const response = await fetch(apiURL);
const data = await response.json();
if (data.success) {
document.getElementById("result").innerHTML = `
<video controls>
<source src="${data.video_url}" type="video/mp4">
Your browser does not support the video tag.
</video>
<a href="${data.video_url}" download>Download Video</a>
`;
} else {
alert("Failed to fetch the video. Try another link.");
}
} catch (error) {
console.error("Error fetching video:", error);
alert("An error occurred. Please try again.");
}
}
</script>
</body>
</html>