forked from MarshMeadow/dantotustatic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
anime-extensions.html
601 lines (574 loc) · 25.3 KB
/
anime-extensions.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="Anilist Client, OpenSource, Tachiyomi, Aniyomi, Anime app, Anilist Sync">
<meta property="og:title" content="Download Aniyomi Extensions!">
<meta property="og:description" content="Download All Anime Extensions Available! Remember, These Repositories Are Not Endorsed By Official Sources. Utilizing A Counterfeit Repository Could Potentially Expose Your Device To Malware Threats. Exercise Prudence And Patience; Wait Until A Repository Garners Over 100 Stars On GitHub Before Considering Its Reliability">
<meta property="og:url" content="/manga-extensions">
<meta property="og:image" content="https://s4.anilist.co/file/anilistcdn/user/avatar/large/b6110204-X922sXE3M8RC.png">
<link rel="apple-touch-icon" sizes="180x180" href="https://s4.anilist.co/file/anilistcdn/user/avatar/large/b6110204-X922sXE3M8RC.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://s4.anilist.co/file/anilistcdn/user/avatar/large/b6110204-X922sXE3M8RC.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://s4.anilist.co/file/anilistcdn/user/avatar/large/b6110204-X922sXE3M8RC.png">
<link rel="manifest" href="favicons/site.webmanifest">
<link href="style.css" rel="stylesheet" type="text/css" />
<meta name="msapplication-TileColor" content="#b24b60">
<meta name="theme-color" content="#b24b60">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://kit.fontawesome.com/0a1007e48a.js" crossorigin="anonymous"></script>
<title>Extensions</title>
<style>
/* CSS Animation for shaking */
@keyframes shake {
0% {
transform: translateX(0);
}
25% {
transform: translateX(-5px) rotate(-1deg);
}
50% {
transform: translateX(5px) rotate(1deg);
}
75% {
transform: translateX(-5px) rotate(-1deg);
}
100% {
transform: translateX(0);
}
}
.shake:hover {
animation: shake 0.5s infinite;
}
</style>
<style>
/* CSS Animation for shaking */
@keyframes shake {
0% {
transform: translateX(0);
}
25% {
transform: translateX(-5px) rotate(-1deg);
}
50% {
transform: translateX(5px) rotate(1deg);
}
75% {
transform: translateX(-5px) rotate(-1deg);
}
100% {
transform: translateX(0);
}
}
.shake:hover {
animation: shake 0.5s infinite;
}
</style>
<style>
.extension-list {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-top: 20px;
}
.extension-item {
background-color: rgba(0, 0, 0, 0.1);
border-radius: 10px;
padding: 15px;
margin: 1px;
width: 100px;
/* Adjusted width */
display: flex;
/* Use flexbox */
align-items: center;
/* Align items vertically */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.extension-logo {
width: 60px;
/* Smaller size */
height: 60px;
/* Smaller size */
border-radius: 50%;
object-fit: cover;
margin-right: 15px;
/* Space between icon and text */
}
.extension-details {
display: flex;
flex-direction: column;
/* Stack items vertically */
}
.extension-name {
font-size: 13px;
font-weight: bold;
margin: 0;
}
.extension-version {
font-size: 9px;
color: #fff;
margin: 5px 0;
}
.extension-list-container {
max-width: 100%;
overflow-x: hidden;
/* Hide horizontal overflow */
}
.download-link {
color: #fff;
text-decoration: none;
font-size: 9px;
}
</style>
<style>
/* For screens from 1920px to 4K resolution */
@media only screen and (min-width: 1920px) {
.extension-list-container {
height: 500px;
/* Adjust the height for screens wider than 1920px */
overflow-y: auto;
}
}
/* For screens from 1440px to 1920px */
@media only screen and (max-width: 1919px) and (min-width: 1440px) {
.extension-list-container {
height: 500px;
/* Adjust the height for screens between 1440px and 1920px */
overflow-y: auto;
}
}
/* For screens from 1080px to 1440px */
@media only screen and (max-width: 1439px) and (min-width: 1080px) {
.extension-list-container {
height: 500px;
/* Adjust the height for screens between 1080px and 1440px */
overflow-y: auto;
}
}
/* For screens from 720px to 1080px */
@media only screen and (max-width: 1079px) and (min-width: 720px) {
.extension-list-container {
height: 700px;
/* Adjust the height for screens between 720px and 1080px */
overflow-y: auto;
}
}
/* For screens from 640px to 720px */
@media only screen and (max-width: 719px) and (min-width: 640px) {
.extension-list-container {
height: 700px;
/* Adjust the height for screens between 640px and 720px */
overflow-y: auto;
}
}
/* For screens from 480px to 640px */
@media only screen and (max-width: 639px) and (min-width: 480px) {
.extension-list-container {
height: 700px;
/* Adjust the height for screens between 480px and 640px */
overflow-y: auto;
}
}
/* For screens below 480px */
@media only screen and (max-width: 479px) {
.extension-list-container {
height: 700px;
/* Adjust the height for screens below 480px */
overflow-y: auto;
}
}
</style>
</head>
<style>
html,
body {
overflow-x: hidden;
scroll-behavior: smooth;
}
</style>
<body class="bg-indigo-950">
<!-- NAVBAR -->
<nav class="bg-slate-950 bg-opacity-0 transition bg-transition text-white p-2 fixed w-full z-40">
<div class="container mx-auto flex justify-between">
<div class="flex items-center">
<a href="javascript:void(0);" onclick="incrementCounter()" class="text-2xl font-bold">
<img src="https://s4.anilist.co/file/anilistcdn/user/avatar/large/b6110204-X922sXE3M8RC.png" alt="Dantotsu" class="h-10 transition-opacity hover:opacity-80" />
</a>
<script>
// Retrieve counter value from sessionStorage or default to 0
var cursedCounter = parseInt(sessionStorage.getItem("cursedCounter")) || 0;
function incrementCounter() {
cursedCounter++;
if (cursedCounter % 3 === 0) {
// Redirect to rickroll video
window.location.href = "https://www.youtube.com/watch?v=dQw4w9WgXcQ";
// Reset counter after redirect
sessionStorage.removeItem("cursedCounter");
} else {
// Store the updated counter value in sessionStorage
sessionStorage.setItem("cursedCounter", cursedCounter);
// Reload the page
window.location.reload(true);
}
}
</script>
</div>
<div class="flex items-center">
<div class="relative group">
<p class="text-1xl font-bold">Language <button id="languageDropdown" class="mr-4 transition-colors hover:text-purple-500">
<i class="fa-solid fa-language"></i>
</button>
</p>
<ul id="languageOptions" class="absolute hidden bg-white text-black p-2 space-y-1 rounded-lg shadow-md right-0 mt-3">
<button class="language-button" data-lang="all">All</button>
<br>
<button class="language-button" data-lang="ar">Arabic</button>
<br>
<button class="language-button" data-lang="de">German</button>
<br>
<button class="language-button" data-lang="en">English</button>
<br>
<button class="language-button" data-lang="es">Spanish</button>
<br>
<button class="language-button" data-lang="fr">French</button>
<br>
<button class="language-button" data-lang="hi">Hindi</button>
<br>
<button class="language-button" data-lang="id">Indonesian</button>
<br>
<button class="language-button" data-lang="it">Italian</button>
<br>
<button class="language-button" data-lang="ko">Korean</button>
<br>
<button class="language-button" data-lang="pl">Polish</button>
<br>
<button class="language-button" data-lang="pt-BR">Portuguese (Brazil)</button>
<br>
<button class="language-button" data-lang="ru">Russian</button>
<br>
<button class="language-button" data-lang="sr">Serbian</button>
<br>
<button class="language-button" data-lang="tr">Turkish</button>
<br>
<button class="language-button" data-lang="uk">Ukrainian</button>
<br>
</ul>
</div>
</div>
</div>
</nav>
<!-- HERO -->
<section id="hero" class="text-white py-20 h-screen shadow-lg relative" style="background-image: url('images/ei_1698849603612-removebg-preview-1.png'); background-size: cover; background-position: center;">
<div class="container h-full mx-auto flex flex-col justify-center items-center relative z-10">
<div class="text-center">
<h1 class="text-5xl font-bold" data-lang="">Anime Extensions</h1>
</div>
<a href="#" id="add-repo-btn" class="bg-purple-950 hover:bg-purple-600 text-white font-bold py-3 px-6 rounded-full font-bold transition-colors">Add Repo</a>
<br>
<!-- Wrap the extension list inside a div with specific height and overflow -->
<div class="extension-list-container">
<div class="extension-list" id="extensionList">
<!-- Template for extension item -->
<div class="extension-item template" data-name="" data-version="" data-lang="" style="display: none;">
<img class="extension-logo" src="">
<div class="extension-details">
<h2 class="extension-name"></h2>
<p class="extension-version"></p>
<a href="" class="download-link">⬇️ Download</a>
</div>
</div>
</div>
</div>
<script>
const repos = ["https://raw.githubusercontent.com/Kohi-den/extensions/main/", "https://raw.githubusercontent.com/ni3x/aniyomi-extensions/repo/", "https://raw.githubusercontent.com/usyboi/aniyomi-extensions/repo/", "https://raw.githubusercontent.com/punpunsx/aniyomi-extensions/repo/", "https://raw.githubusercontent.com/Sadwhy/aniyomi-extensions/repo/"];
async function checkUrl(url) {
try {
const response = await fetch(url, {
method: 'HEAD'
});
return response.ok;
} catch (error) {
return false;
}
}
async function findWorkingUrl(urls) {
for (const url of urls) {
if (await checkUrl(url)) {
return url;
}
}
return null;
}
async function fetchExtensions() {
let extensions = [];
for (const repo of repos) {
const url = `${repo}index.min.json`;
try {
const response = await fetch(url);
if (response.ok) {
const data = await response.json();
extensions = extensions.concat(data);
break; // Exit loop if we successfully fetched the data
}
} catch (error) {
console.error(`Failed to fetch from ${url}:`, error);
}
}
return extensions;
}
async function createExtensionItem(ext) {
const templateItem = document.querySelector('.extension-item.template');
const item = templateItem.cloneNode(true);
item.classList.remove('template');
item.style.display = 'none'; // Initially hidden
item.dataset.name = ext.name;
item.dataset.version = ext.version;
item.dataset.lang = ext.lang;
item.dataset.nsfw = ext.nsfw;
const img = item.querySelector('.extension-logo');
const imgUrls = repos.map(repo => `${repo}icon/${ext.pkg}.png`);
const workingImgUrl = await findWorkingUrl(imgUrls);
img.src = workingImgUrl || 'default-image.png'; // Fallback image if none found
let displayName = ext.name.replace(/^Aniyomi:\s*/, '');
if (ext.nsfw === 1) {
displayName += ' 🔞';
}
if (displayName.includes(' ')) {
displayName = displayName.replace(/\s/g, '\n');
} else if (displayName.length > 9) {
displayName = displayName.substring(0, 9) + '..';
}
const name = item.querySelector('.extension-name');
name.textContent = displayName;
const version = item.querySelector('.extension-version');
version.textContent = `Version: ${ext.version}`;
const link = item.querySelector('.download-link');
const downloadUrls = repos.map(repo => `${repo}apk/${ext.apk}`);
const workingDownloadUrl = await findWorkingUrl(downloadUrls);
link.href = workingDownloadUrl || '#'; // Fallback if no URL found
return item;
}
function updateExtensionList(filteredExtensions) {
const extensionList = document.getElementById('extensionList');
// Clear previous items except the template
extensionList.querySelectorAll('.extension-item:not(.template)').forEach(item => item.remove());
filteredExtensions.forEach(ext => {
createExtensionItem(ext).then(item => {
item.style.display = 'block'; // Make the item visible
extensionList.appendChild(item);
});
});
}
function filterExtensionsByLanguage(extensions, lang) {
if (lang === 'all') {
return extensions.filter(ext => ext.lang === lang);
} else {
return extensions.filter(ext => ext.lang === lang);
}
}
// Initialize the dropdown and options
const languageDropdown = document.getElementById('languageDropdown');
const languageOptions = document.getElementById('languageOptions');
languageDropdown.addEventListener('click', () => {
languageOptions.classList.toggle('hidden');
});
document.querySelectorAll('.language-button').forEach(button => {
button.addEventListener('click', async (e) => {
const lang = e.target.dataset.lang;
const extensions = await fetchExtensions();
const filteredExtensions = filterExtensionsByLanguage(extensions, lang);
updateExtensionList(filteredExtensions);
languageOptions.classList.add('hidden'); // Close dropdown on selection
});
});
// Close the language options when clicking outside of the dropdown
window.addEventListener('click', (event) => {
if (!languageDropdown.contains(event.target) && !languageOptions.contains(event.target)) {
languageOptions.classList.add('hidden');
}
});
async function initializePage() {
const extensions = await fetchExtensions();
console.log("All extensions fetched:", extensions);
const allExtensions = filterExtensionsByLanguage(extensions, 'all'); // Filter extensions with 'all' language support
console.log("Filtered extensions (lang 'all'):", allExtensions);
updateExtensionList(allExtensions); // Update the extension list with filtered extensions
}
document.getElementById('add-repo-btn').addEventListener('click', async (event) => {
event.preventDefault();
const repo = await findWorkingUrl(repos.map(r => `${r}index.min.json`));
if (repo) {
const repoUrl = `aniyomi://add-repo?url=${repo}`;
document.getElementById('add-repo-btn').setAttribute('href', repoUrl);
console.log('Repo URL set to:', repoUrl);
window.location.href = repoUrl; // Add this line to navigate to the URL
} else {
console.error('No valid repository URL found.');
}
});
initializePage();
</script>
</div>
</div>
<div id="opbg" class="absolute inset-0 bg-black bg-opacity-80 transition-colors"></div>
</section>
<div id="staffPopup" class="fixed inset-0 z-50 flex items-center justify-center hidden rounded-md">
<div class="bg-slate-800 p-4 md:mx-4 rounded-lg shadow-lg w-full md:w-auto max-h-[80vh] overflow-y-auto">
<div class="text-right">
<button id="closePopup" class="text-white hover:text-gray-500 text-xl p-4">
<i class="fa-solid fa-times"></i>
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div class="bg-slate-900 p-4 rounded-lg shadow-md">
<img src="https://avatars.githubusercontent.com/u/87634197?v=4" alt="Rebel Union" class="w-20 h-20 rounded-full mb-2 shake" id="rebelOnionAvatarPopup" />
<p class="text-lg text-purple-600 font-bold mb-2" id="rebelOnionName"> Rebel Onion </p>
<p class="text-gray-500" id="rebelOnionDesc">Creator of Jeanne</p>
<!-- social icons-->
<div class="flex items-center mt-4">
<a href="https://www.buymeacoffee.com/rebelonion" class="mr-4 text-white hover:text-purple-500">
<i class="fa-solid fa-mug-saucer"></i>
</a>
<a href="https://www.github.com/rebelonion" class="mr-4 text-white hover:text-purple-500">
<i class="fa-brands fa-github"></i>
</a>
<a href="https://discordapp.com/users/714249925248024617" class="mr-4 text-white hover:text-purple-500">
<i class="fa-brands fa-discord"></i>
</a>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
// Initial values
const originalName = "Rebel Onion";
const originalDesc = "Creator of Jeanne";
const originalAvatarSrc = "https://avatars.githubusercontent.com/u/87634197?v=4";
let hoverCount = 0;
let shakeCount = 0;
// Function to start shaking the avatar
function shakeAvatar() {
document.getElementById("rebelOnionAvatarPopup").classList.add("shake");
setTimeout(function() {
document.getElementById("rebelOnionAvatarPopup").classList.remove("shake");
}, 500); // Stop shaking after 0.5 seconds
}
function triggerEasterEgg() {
console.log("Easter egg triggered!"); // Check if this message appears in the console
document.getElementById("rebelOnionName").textContent = "Miku is Love❤️❤️❤️";
document.getElementById("rebelOnionDesc").textContent = "Worlds No 1 Hatsune Miku Fan";
}
// Reset counts and enable shaking when the popup is opened
function resetCountsAndShaking() {
hoverCount = 0;
shakeCount = 0;
}
// Event handler for mouseover event on the avatar
function handleHover() {
if (hoverCount < 3) {
hoverCount++;
shakeAvatar();
if (hoverCount === 3) {
triggerEasterEgg();
}
}
}
// Event handler for click event on the avatar (for mobile devices)
function handleClick() {
if (shakeCount < 3) {
shakeCount++;
shakeAvatar();
if (shakeCount === 3) {
triggerEasterEgg();
}
}
}
// Open the staff showcase popup
document.getElementById("openPopup").addEventListener("click", function() {
document.getElementById("staffPopup").classList.remove("hidden");
resetCountsAndShaking(); // Reset counts and enable shaking
// Enable shaking on the profile picture
document.getElementById("rebelOnionAvatarPopup").addEventListener("mouseover", handleHover);
// Enable shaking on mobile devices by clicking the profile picture
let isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
if (isMobile) {
document.getElementById("rebelOnionAvatarPopup").addEventListener("click", handleClick);
}
});
// Close the staff showcase popup
document.getElementById("closePopup").addEventListener("click", function() {
document.getElementById("staffPopup").classList.add("hidden");
// Reset elements to their original values
document.getElementById("rebelOnionName").textContent = originalName;
document.getElementById("rebelOnionDesc").textContent = originalDesc;
document.getElementById("rebelOnionAvatarPopup").src = originalAvatarSrc;
// Remove event listeners
document.getElementById("rebelOnionAvatarPopup").removeEventListener("mouseover", handleHover);
document.getElementById("rebelOnionAvatarPopup").removeEventListener("click", handleClick);
});
});
</script>
</script>
<div class="bg-slate-900 p-4 rounded-lg shadow-md">
<img src="https://avatars.githubusercontent.com/u/167056923?v=4" alt="aayush262" class="w-20 h-20 rounded-full mb-2" />
<p class="text-lg text-purple-600 font-bold mb-2">Itsmechinmoy</p>
<p class="text-gray-500">I'm a master of hiding Easter eggs! Think you've got what it takes to uncover it on the site? It's like a digital treasure hunt with a mischievous twist!</p>
<div class="flex items-center mt-4">
<a href="https://github.com/u/itsmechinmoy" class="mr-4 text-white hover:text-purple-500">
<i class="fa-brands fa-github"></i>
</a>
<a href="https://discord.com/users/523539866311720963" class="mr-4 text-white hover:text-purple-500">
<i class="fa-brands fa-discord"></i>
</a>
</div>
</div>
</div>
</div>
</div>
<!-- FOOTER -->
<footer class="bg-slate-950 text-white py-4">
<div class="container mx-auto flex flex-col md:flex-row md:items-center md:justify-between">
<div class="md:w-full text-center md:text-left mb-2 md:mb-0">
<p class="text-sm">
<i class="fa-solid fa-code"></i> with <i class="fa-solid fa-heart"></i> by Jeanne Contributors
</p>
</div>
<p>
<center>
<!--<a href="https://pastebin.com/raw/M0nTU8Bg">DMCA</a> • <a href="https://www.buymeacoffee.com/rebelonion">Donate</a> • <a href="https://discord.com/invite/4HPZ5nAWwM">Discord</a> • <a href="https://t.me/+gzBCQExtLQo1YTNh">Telegram</a> • <a href="https://github.com/rebelonion/Dantotsu">Github</a>-->
</center>
</p>
<div class="md:w-full text-center md:text-right">
<button id="openPopup" class="bg-purple-500 hover:bg-purple-600 text-white font-bold py-2 px-4 rounded-full">Credits</button>
</div>
</div>
</footer>
</body>
<script>
// navbar
window.addEventListener('scroll', function() {
const navbar = document.querySelector('nav');
if (window.scrollY > 0) {
navbar.classList.add('bg-opacity-80');
} else {
navbar.classList.remove('bg-opacity-80');
}
});
window.addEventListener('scroll', function() {
const opbg = document.querySelector('#opbg');
if (window.scrollY > 600) {
opbg.classList.add('bg-opacity-100');
} else {
opbg.classList.remove('bg-opacity-100');
}
});
// reviews
const collapsibleButton = document.getElementById("collapsible");
const content = document.getElementById("content");
let isContentVisible = false;
collapsibleButton.addEventListener("click", function() {
isContentVisible = !isContentVisible;
content.style.display = isContentVisible ? "block" : "none";
});
</script>
</html>