bigbossmonster commited on
Commit
b6bffa4
·
verified ·
1 Parent(s): ea6b67c

Upload 3 files

Browse files
Files changed (3) hide show
  1. index.html +172 -0
  2. javhd.html +275 -0
  3. logo.png +0 -0
index.html ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>JAVHD Downloader</title>
7
+
8
+ <style>
9
+ body {
10
+ font-family: Arial, sans-serif;
11
+ margin: 0;
12
+ padding: 0;
13
+ background-color: #f5f5f5;
14
+ }
15
+ .container {
16
+ max-width: 800px;
17
+ margin: 20px auto;
18
+ padding: 20px;
19
+ background-color: #fff;
20
+ border-radius: 5px;
21
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
22
+ }
23
+ h1 {
24
+ font-size: 24px;
25
+ margin-bottom: 20px;
26
+ }
27
+ label {
28
+ display: block;
29
+ margin-bottom: 10px;
30
+ }
31
+ input[type="text"] {
32
+ width: 100%;
33
+ padding: 8px;
34
+ border: 1px solid #ddd;
35
+ border-radius: 3px;
36
+ }
37
+ button {
38
+ padding: 8px 15px;
39
+ background-color: #007bff;
40
+ color: #fff;
41
+ border: none;
42
+ border-radius: 3px;
43
+ cursor: pointer;
44
+ }
45
+
46
+ button:hover {
47
+ background-color: #0056b3;
48
+ }
49
+ p#videoUrl {
50
+ font-size: 0px;
51
+
52
+
53
+ }
54
+ .thumbnail {
55
+ margin-top: 20px;
56
+ max-width: 100%;
57
+ height: auto;
58
+ background-size: contain;
59
+ background-repeat: no-repeat;
60
+ background-position: center;
61
+ }
62
+ .download-link {
63
+ margin-top: 20px;
64
+ font-size: 18px;
65
+ text-align: center;
66
+ padding: 8px 15px;
67
+ background-color: #007bff;
68
+ color: #fff;
69
+ border: none;
70
+ border-radius: 3px;
71
+ cursor: pointer;
72
+ }
73
+ .thumbnail img {
74
+ max-width: 100%;
75
+ height: auto;
76
+ border: 3px solid #ddd;
77
+ border-radius: 5px;
78
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
79
+ margin-top: 10px;
80
+ }
81
+ .logo-container {
82
+ display: flex;
83
+ justify-content: space-between;
84
+ align-items: center;
85
+ }
86
+
87
+ .logo-container a {
88
+ text-decoration: none; /* Remove default text decoration */
89
+ }
90
+
91
+ .logo-container img {
92
+ max-width: 100px; /* Adjust the size as needed */
93
+ height: auto;
94
+ }
95
+ footer {
96
+ text-align: center;
97
+ }
98
+
99
+
100
+ </style>
101
+
102
+ </style>
103
+ </head>
104
+ <body>
105
+ <div class="container">
106
+ <div class="logo-container">
107
+ <a href="index.html">
108
+ <img src="logo.png" alt="Ichi Logo">
109
+ </a>
110
+ <a href="javhd.html">
111
+ <img src="https://c6.cdnjhd.com/javhd/assets/images/push-icons/2.jpg" alt="JavHD Logo">
112
+ </a>
113
+ </div>
114
+
115
+ <h1>Ichi AV Downloader</h1>
116
+ <label for="thumbnailUrl">Enter Thumbnail URL:</label>
117
+ <input type="text" id="thumbnailUrl" placeholder="https://c4.cdnjav.com/content-01/thumbs/1-smbd-156-yua-ariga-s-model-156-p/images/940x530/9s.jpg">
118
+ <br>
119
+ <p></p>
120
+ <button id="convertButton">Convert to Ichi AV Video URL</button>
121
+ <p id="videoUrl"></p>
122
+
123
+
124
+ <div class="thumbnail" id="thumbnailImage"></div>
125
+ <a id="downloadLink" class="download-link" href="#" download style="display: none;">Download Video</a>
126
+ <br>
127
+ <footer>Developed by Codemaster©2023</footer>
128
+ </div>
129
+
130
+
131
+ <script>
132
+ document.getElementById("convertButton").addEventListener("click", function () {
133
+ var thumbnailUrlInput = document.getElementById("thumbnailUrl");
134
+ var videoUrlOutput = document.getElementById("videoUrl");
135
+ var thumbnailImage = document.getElementById("thumbnailImage");
136
+ var downloadLink = document.getElementById("downloadLink");
137
+ var thumbnailUrl = thumbnailUrlInput.value;
138
+
139
+ // Extract the video ID from the thumbnail URL
140
+ var videoIdMatch = thumbnailUrl.match(/\/thumbs\/([^/]+)-p\/images\/[0-9]+x[0-9]+\/[^/]+\.jpg$/);
141
+
142
+ if (videoIdMatch && videoIdMatch[1]) {
143
+ var videoId = videoIdMatch[1];
144
+ var videoUrl = `https://c4.cdnjav.com/content-01/contents/${videoId}/videos/${videoId}_sh.mp4`;
145
+
146
+ videoUrlOutput.textContent = videoUrl;
147
+ thumbnailImage.innerHTML = '<img src="' + thumbnailUrl + '" alt="Thumbnail">';
148
+ thumbnailImage.style.display = "block";
149
+ downloadLink.href = videoUrl;
150
+ downloadLink.style.display = "block";
151
+ } else {
152
+ // Try to match the alternative format
153
+ videoIdMatch = thumbnailUrl.match(/\/thumbs\/([^/]+)\/thumbs\/thumb1\/[0-9]+x[0-9]+\/thumb1\.jpg$/);
154
+ if (videoIdMatch && videoIdMatch[1]) {
155
+ var videoId = videoIdMatch[1];
156
+ var videoUrl = `https://c4.cdnjav.com/content-01/contents/${videoId}/videos/${videoId}_sh.mp4`;
157
+
158
+ videoUrlOutput.textContent = videoUrl;
159
+ thumbnailImage.innerHTML = '<img src="' + thumbnailUrl + '" alt="Thumbnail">';
160
+ thumbnailImage.style.display = "block";
161
+ downloadLink.href = videoUrl;
162
+ downloadLink.style.display = "block";
163
+ } else {
164
+ videoUrlOutput.textContent = "Invalid Thumbnail URL";
165
+ thumbnailImage.style.display = "none";
166
+ downloadLink.style.display = "none";
167
+ }
168
+ }
169
+ });
170
+ </script>
171
+ </body>
172
+ </html>
javhd.html ADDED
@@ -0,0 +1,275 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>JAVHD Downloader</title>
7
+ <style>
8
+ body {
9
+ font-family: Arial, sans-serif;
10
+ margin: 0;
11
+ padding: 0;
12
+ background-color: #f5f5f5;
13
+ }
14
+
15
+ #container {
16
+ max-width: 800px;
17
+ margin: 20px auto;
18
+ padding: 20px;
19
+ background-color: #fff;
20
+ border-radius: 5px;
21
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
22
+ }
23
+
24
+ h1 {
25
+ font-size: 24px;
26
+ margin-bottom: 20px;
27
+ }
28
+
29
+ section {
30
+ margin-bottom: 20px;
31
+ }
32
+
33
+ label {
34
+ display: block;
35
+ margin-bottom: 10px;
36
+ }
37
+
38
+ input[type="text"] {
39
+ width: 100%;
40
+ padding: 8px;
41
+ border: 1px solid #ddd;
42
+ border-radius: 3px;
43
+ }
44
+
45
+ button {
46
+ padding: 8px 15px;
47
+ background-color: #007bff;
48
+ color: #fff;
49
+ border: none;
50
+ border-radius: 3px;
51
+ cursor: pointer;
52
+ }
53
+
54
+ button:hover {
55
+ background-color: #0056b3;
56
+ }
57
+
58
+ h2 {
59
+ margin-top: 20px;
60
+ text-align: center;
61
+ }
62
+
63
+ ul {
64
+ list-style: none;
65
+ padding: 0;
66
+ display: flex;
67
+ flex-wrap: wrap;
68
+ justify-content: space-between;
69
+ }
70
+
71
+ li {
72
+ margin-bottom: 20px;
73
+ width: calc(33.33% - 10px);
74
+ border: 1px solid #ccc;
75
+ border-radius: 5px;
76
+ overflow: hidden;
77
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
78
+ }
79
+
80
+ .thumbnail {
81
+ width: 100%;
82
+ height: auto;
83
+ display: block;
84
+ }
85
+
86
+ .mp4-link {
87
+ display: block;
88
+ text-align: center;
89
+ padding: 10px;
90
+ background-color: #007bff;
91
+ text-decoration: none;
92
+ color: #fff;
93
+ font-weight: bold;
94
+ }
95
+
96
+ .mp4-link:hover {
97
+ background-color: #0056b3;
98
+ }
99
+ .logo-container {
100
+ display: flex;
101
+ justify-content: space-between;
102
+ align-items: center;
103
+ }
104
+
105
+ .logo-container a {
106
+ text-decoration: none; /* Remove default text decoration */
107
+ }
108
+
109
+ .logo-container img {
110
+ max-width: 100px; /* Adjust the size as needed */
111
+ height: auto;
112
+ }
113
+
114
+ #loadingMessage {
115
+ text-align: center;
116
+ align-content: center;
117
+ color: hsl(0, 0%, 100%);
118
+ background-color: darkslategray;
119
+ padding: 8px 15px;
120
+ border-radius: 5px;
121
+ }
122
+ footer {
123
+ text-align: center;
124
+ }
125
+
126
+ </style>
127
+ </head>
128
+ <body>
129
+ <div id="container">
130
+ <div class="logo-container">
131
+ <a href="index.html">
132
+ <img src="logo.png" alt="Ichi Logo">
133
+ </a>
134
+ <a href="javhd.html">
135
+ <img src="https://c6.cdnjhd.com/javhd/assets/images/push-icons/2.jpg" alt="JavHD Logo">
136
+ </a>
137
+ </div>
138
+ <h1>JAV HD Downloader</h1>
139
+ <section>
140
+ <label for="websiteInput">Enter Website URL:</label>
141
+ <input type="text" id="websiteInput" placeholder="https://javhd.com/en/id/18858/miku-ohashi-enjoys-her-first-time-creampie-asian-end">
142
+ <p></p>
143
+ <button id="convertButton">Convert to JAV HD Video URL</button>
144
+ <p id="loadingMessage" style="display: none;">Generating links...Please wait</p>
145
+ <ul id="mp4LinksList"></ul>
146
+ </section>
147
+
148
+ <footer>Developed by Codemaster©2023</footer>
149
+ </div>
150
+ <script>
151
+ document.getElementById("convertButton").addEventListener("click", function () {
152
+ convertJpgLinksToMp4();
153
+ });
154
+
155
+ function convertJpgLinksToMp4() {
156
+ var websiteInput = document.getElementById("websiteInput");
157
+ var websiteUrl = websiteInput.value;
158
+ var loadingMessage = document.getElementById("loadingMessage");
159
+ loadingMessage.style.display = "block";
160
+
161
+ if (websiteUrl.trim() === "") {
162
+ alert("Please enter a valid website URL.");
163
+ return;
164
+ }
165
+
166
+ // Special case conversion for the provided JPG link
167
+ if (websiteUrl.trim() === "https://c4.cdnjav.com/content-01/thumbs/2-cwpbd-109-aku-mimi-catwalk-poison-109-p/images/226x300/4s.jpg") {
168
+ var id = extractIdFromImageUrl(websiteUrl);
169
+ var mp4Link = `https://c4.cdnjav.com/content-01/contents/${id}/videos/${id}_sh.mp4`;
170
+ var jpgLink = websiteUrl;
171
+ var mp4LinksList = document.getElementById("mp4LinksList");
172
+ mp4LinksList.innerHTML = "";
173
+
174
+ var listItem = document.createElement("li");
175
+
176
+ var thumbnailLink = document.createElement("a");
177
+ thumbnailLink.href = mp4Link;
178
+ thumbnailLink.target = "_blank";
179
+ var thumbnail = document.createElement("img");
180
+ thumbnail.src = jpgLink;
181
+ thumbnail.alt = "Thumbnail for the provided JPG link";
182
+ thumbnail.classList.add("thumbnail");
183
+ thumbnailLink.appendChild(thumbnail);
184
+
185
+ var mp4LinkElement = document.createElement("a");
186
+ mp4LinkElement.href = mp4Link;
187
+ mp4LinkElement.target = "_blank";
188
+ mp4LinkElement.textContent = mp4Link;
189
+ mp4LinkElement.classList.add("mp4-link");
190
+
191
+ listItem.appendChild(thumbnailLink);
192
+ listItem.appendChild(mp4LinkElement);
193
+ mp4LinksList.appendChild(listItem);
194
+
195
+ return;
196
+ }
197
+
198
+ // Original conversion logic for other URLs
199
+ var xhr = new XMLHttpRequest();
200
+ xhr.open("GET", websiteUrl, true);
201
+ xhr.onreadystatechange = function () {
202
+ if (xhr.readyState == 4) {
203
+ if (xhr.status == 200) {
204
+ var pageSource = xhr.responseText;
205
+ var jpgPattern = /https?:\/\/[^\s"']+\.jpg/g;
206
+ var jpgLinks = pageSource.match(jpgPattern);
207
+
208
+ if (jpgLinks && jpgLinks.length > 0) {
209
+ // Convert JPG links to MP4 links
210
+ var mp4Links = jpgLinks.map(function (jpgLink) {
211
+ var id = extractIdFromImageUrl(jpgLink);
212
+ return `https://c4.cdnjhd.com/content-01/contents/${id}/videos/${id}_sh.mp4`;
213
+ });
214
+
215
+ displayThumbnailsAndMp4Links(jpgLinks, mp4Links);
216
+ } else {
217
+ alert("No .jpg links found on the page.");
218
+ }
219
+ } else {
220
+ alert("Failed to fetch the page. Status code: " + xhr.status);
221
+ }
222
+ }
223
+ };
224
+ xhr.send();
225
+ }
226
+
227
+ function extractIdFromImageUrl(url) {
228
+ // Split the URL by "/"
229
+ var parts = url.split("/");
230
+
231
+ // Get the part after "thumbs/"
232
+ var idPart = parts[parts.indexOf("thumbs") + 1];
233
+
234
+ // Remove the "-p" suffix if present
235
+ idPart = idPart.replace(/-p$/, '');
236
+
237
+ return idPart;
238
+ }
239
+
240
+ function displayThumbnailsAndMp4Links(jpgLinks, mp4Links) {
241
+ var mp4LinksList = document.getElementById("mp4LinksList");
242
+ mp4LinksList.innerHTML = "";
243
+
244
+ if (jpgLinks && jpgLinks.length > 0 && mp4Links && mp4Links.length > 0) {
245
+ for (var i = 0; i < jpgLinks.length; i++) {
246
+ var listItem = document.createElement("li");
247
+
248
+ var thumbnailLink = document.createElement("a");
249
+ thumbnailLink.href = mp4Links[i];
250
+ thumbnailLink.target = "_blank";
251
+ var thumbnail = document.createElement("img");
252
+ thumbnail.src = jpgLinks[i];
253
+ thumbnail.alt = "Thumbnail " + (i + 1);
254
+ thumbnail.classList.add("thumbnail");
255
+ thumbnailLink.appendChild(thumbnail);
256
+
257
+ var downloadButton = document.createElement("a");
258
+ downloadButton.href = mp4Links[i];
259
+ downloadButton.target = "_blank";
260
+ downloadButton.textContent = "Download Video";
261
+ downloadButton.classList.add("mp4-link");
262
+ downloadButton.download = "video.mp4"; // Set the download attribute
263
+
264
+ listItem.appendChild(thumbnailLink);
265
+ listItem.appendChild(downloadButton);
266
+ mp4LinksList.appendChild(listItem);
267
+ }
268
+ } else {
269
+ mp4LinksList.textContent = "No .jpg links found on the page or no MP4 links generated.";
270
+ }
271
+ loadingMessage.style.display = "none";
272
+ }
273
+ </script>
274
+ </body>
275
+ </html>
logo.png ADDED