Guest User

Free Twitter Video Download Tool

a guest
Oct 30th, 2024
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Twitter Video Download Tool</title>
  7. <style>
  8. body {
  9. font-family: Arial, sans-serif;
  10. text-align: center;
  11. background-color: #f4f4f9;
  12. margin: 0;
  13. padding: 0;
  14. }
  15. .container {
  16. max-width: 500px;
  17. margin: 50px auto;
  18. background: #fff;
  19. padding: 20px;
  20. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  21. border-radius: 8px;
  22. }
  23. h1 {
  24. color: #1da1f2;
  25. }
  26. input[type="text"], .output {
  27. width: 100%;
  28. padding: 10px;
  29. margin: 10px 0;
  30. border: 1px solid #ddd;
  31. border-radius: 4px;
  32. font-size: 16px;
  33. }
  34. button {
  35. background-color: #1da1f2;
  36. color: #fff;
  37. border: none;
  38. padding: 10px 20px;
  39. font-size: 16px;
  40. border-radius: 4px;
  41. cursor: pointer;
  42. transition: background-color 0.3s ease;
  43. }
  44. button:hover {
  45. background-color: #0d95e8;
  46. }
  47. .output {
  48. background-color: #e9ecef;
  49. }
  50. </style>
  51. </head>
  52. <body>
  53.  
  54. <div class="container">
  55. <h1>Twitter Video Download Tool</h1>
  56. <input type="text" id="inputLink" placeholder="Paste your Twitter video link here">
  57. <button onclick="generateDownloadLink()">Generate Download Link</button>
  58. <h3>Download Link:</h3>
  59. <input type="text" id="outputLink" class="output" readonly>
  60. </div>
  61.  
  62. <script>
  63. function generateDownloadLink() {
  64. const inputLink = document.getElementById("inputLink").value;
  65. const outputLink = document.getElementById("outputLink");
  66.  
  67. // Check if it's a valid Twitter URL
  68. if (inputLink.includes("twitter.com") && inputLink.includes("status")) {
  69. outputLink.value = `https://ssstwitter.com/download?url=${encodeURIComponent(inputLink)}`;
  70. } else {
  71. outputLink.value = "Invalid Twitter link. Make sure it's a video URL.";
  72. }
  73. }
  74. </script>
  75.  
  76. </body>
  77. </html>
  78.  
Advertisement
Add Comment
Please, Sign In to add comment