minify json

This commit is contained in:
fynks 2025-01-25 20:03:04 +05:00
parent 0cbb3ef2d6
commit c66d8f3d03
18 changed files with 2464 additions and 2375 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/node_modules

View file

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View file

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View file

Before

Width:  |  Height:  |  Size: 116 KiB

After

Width:  |  Height:  |  Size: 116 KiB

View file

@ -258,9 +258,10 @@
<p><a href="https://github.com/fynks/debrid-services-comparison">Source</a> | Made with ❤️ by Fynks</p>
</div>
</footer>
<script>
<script>
document.addEventListener('DOMContentLoaded', ()=>{ const darkModeToggle=document.getElementById('darkModeToggle'); const savedTheme=localStorage.getItem('theme'); if (savedTheme){ document.documentElement.setAttribute('data-theme', savedTheme);} darkModeToggle.addEventListener('click', ()=>{ const currentTheme=document.documentElement.getAttribute('data-theme'); const newTheme=currentTheme==='dark' ? 'light' : 'dark'; document.documentElement.setAttribute('data-theme', newTheme); localStorage.setItem('theme', newTheme);});});
</script>
</script>
<script>if('serviceWorker'in navigator){window.addEventListener('load',()=>{navigator.serviceWorker.register('/sw.js');});}</script>
</body>

View file

69
dist/sw.js vendored Normal file
View file

@ -0,0 +1,69 @@
const CACHE_VERSION = 'v1';
const CACHE_NAME = `debrid-cache-${CACHE_VERSION}`;
const STATIC_ASSETS = [
'/',
'/index.html',
'/css/styles-min.css',
'/js/app-min.js',
'/favicon.ico',
'/favicon.svg',
'/apple-touch-icon.png'
];
const DATA_ASSETS = [
'/json/pricing.json',
'/json/file-hosts.json',
'/json/adult-hosts.json'
];
// Install event - cache static assets
self.addEventListener('install', event => {
event.waitUntil(
caches.open(CACHE_NAME).then(cache => {
return cache.addAll([...STATIC_ASSETS, ...DATA_ASSETS]);
})
);
});
// Activate event - clean old caches
self.addEventListener('activate', event => {
event.waitUntil(
caches.keys().then(cacheNames => {
return Promise.all(
cacheNames
.filter(name => name !== CACHE_NAME)
.map(name => caches.delete(name))
);
})
);
});
// Fetch event - serve from cache, fallback to network
self.addEventListener('fetch', event => {
event.respondWith(
caches.match(event.request).then(response => {
// Return cached response if found
if (response) {
return response;
}
// Clone the request - stream can only be consumed once
const fetchRequest = event.request.clone();
// Make network request and cache the response
return fetch(fetchRequest).then(response => {
if (!response || response.status !== 200 || response.type !== 'basic') {
return response;
}
const responseToCache = response.clone();
caches.open(CACHE_NAME).then(cache => {
cache.put(event.request, responseToCache);
});
return response;
});
})
);
});

View file

@ -1,155 +0,0 @@
{
"Beeg": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"DrTuber": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"Hentai Foundry": {
"AllDebrid": "no",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"NHentai": {
"AllDebrid": "no",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"PornHub": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"RedGifs": {
"AllDebrid": "no",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"Redtube": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "yes",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"Rule34": {
"AllDebrid": "no",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"SpankBang": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"StripChat": {
"AllDebrid": "no",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"SunPorNo": {
"AllDebrid": "no",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "no",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "yes"
},
"XHamster": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"XNXX": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"XVideos": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"XXXYMovies": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"YouJizz": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"Youporn": {
"AllDebrid": "no",
"Premiumize": "no",
"RealDebrid": "yes",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
}
}

File diff suppressed because it is too large Load diff

View file

@ -1,74 +0,0 @@
{
"plans": [
{
"name": "Free/Trial",
"AllDebrid": "7 days*",
"Premiumize": "-",
"Real-Debrid": "-",
"TorBox": "0$/month",
"Debrid-Link": "Yes",
"Linksnappy": "-",
"Mega-Debrid": "-"
},
{
"name": "7 Days",
"AllDebrid": "-",
"Premiumize": "-",
"Real-Debrid": "-",
"TorBox": "-",
"Debrid-Link": "-",
"Linksnappy": "$4.99 USD",
"Mega-Debrid": "-"
},
{
"name": "15 Days",
"AllDebrid": "-",
"Premiumize": "-",
"Real-Debrid": "3 €",
"TorBox": "-",
"Debrid-Link": "3 €",
"Linksnappy": "-",
"Mega-Debrid": "-"
},
{
"name": "30 Days",
"AllDebrid": "2.99€/mo (Recur) / 3.99€ (One-time)",
"Premiumize": "€9.99 / mo",
"Real-Debrid": "4 €",
"TorBox": "Starts from $2.1/mo",
"Debrid-Link": "4 €",
"Linksnappy": "$12.99 USD",
"Mega-Debrid": "4 €"
},
{
"name": "90 Days",
"AllDebrid": "-",
"Premiumize": "€8.33 / month (€24.99 total)",
"Real-Debrid": "9 €",
"TorBox": "-",
"Debrid-Link": "9 €",
"Linksnappy": "$29.99 USD",
"Mega-Debrid": "9 €"
},
{
"name": "180 Days",
"AllDebrid": "-",
"Premiumize": "€5.75 / month (€69.99 total)",
"Real-Debrid": "16 €",
"TorBox": "-",
"Debrid-Link": "16 €",
"Linksnappy": "$54.99 USD",
"Mega-Debrid": "16 €"
},
{
"name": "300 Days",
"AllDebrid": "-",
"Premiumize": "-",
"Real-Debrid": "-",
"TorBox": "-",
"Debrid-Link": "25 €",
"Linksnappy": "-",
"Mega-Debrid": "-"
}
]
}

18
package.json Normal file
View file

@ -0,0 +1,18 @@
{
"name": "@fynks/debrid-service-comparison",
"version": "2.0.1",
"description": "A concise comparison of pricing and supported hosts for popular debrid services including AllDebrid, Real-Debrid, LinkSnappy, Premiumize, Debrid-Link, TorBox, and Mega-Debrid.",
"main": "index.js",
"homepage": "",
"repository": {
"type": "git",
"url": ""
},
"scripts": {
"build": "cp -a src/json/* dist/json/ && minijson dist/json/*.json"
},
"author": "fynks",
"dependencies": {
"@aminya/minijson": "^1.1.0"
}
}

155
src/json/adult-hosts.json Normal file
View file

@ -0,0 +1,155 @@
{
"Beeg": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"DrTuber": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"Hentai Foundry": {
"AllDebrid": "no",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"NHentai": {
"AllDebrid": "no",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"PornHub": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"RedGifs": {
"AllDebrid": "no",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"Redtube": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "yes",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"Rule34": {
"AllDebrid": "no",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"SpankBang": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"StripChat": {
"AllDebrid": "no",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"SunPorNo": {
"AllDebrid": "no",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "no",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "yes"
},
"XHamster": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"XNXX": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"XVideos": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"XXXYMovies": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"YouJizz": {
"AllDebrid": "yes",
"Premiumize": "no",
"RealDebrid": "no",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
},
"Youporn": {
"AllDebrid": "no",
"Premiumize": "no",
"RealDebrid": "yes",
"TorBox": "yes",
"Debrid-Link": "no",
"LinkSnappy": "no",
"Mega-Debrid": "no"
}
}

2144
src/json/file-hosts.json Normal file

File diff suppressed because it is too large Load diff

74
src/json/pricing.json Normal file
View file

@ -0,0 +1,74 @@
{
"plans": [
{
"name": "Free/Trial",
"AllDebrid": "7 days*",
"Premiumize": "-",
"Real-Debrid": "-",
"TorBox": "0$/month",
"Debrid-Link": "Yes",
"Linksnappy": "-",
"Mega-Debrid": "-"
},
{
"name": "7 Days",
"AllDebrid": "-",
"Premiumize": "-",
"Real-Debrid": "-",
"TorBox": "-",
"Debrid-Link": "-",
"Linksnappy": "$4.99 USD",
"Mega-Debrid": "-"
},
{
"name": "15 Days",
"AllDebrid": "-",
"Premiumize": "-",
"Real-Debrid": "3 €",
"TorBox": "-",
"Debrid-Link": "3 €",
"Linksnappy": "-",
"Mega-Debrid": "-"
},
{
"name": "30 Days",
"AllDebrid": "2.99€/mo (Recur) / 3.99€ (One-time)",
"Premiumize": "€9.99 / mo",
"Real-Debrid": "4 €",
"TorBox": "Starts from $2.1/mo",
"Debrid-Link": "4 €",
"Linksnappy": "$12.99 USD",
"Mega-Debrid": "4 €"
},
{
"name": "90 Days",
"AllDebrid": "-",
"Premiumize": "€8.33 / month (€24.99 total)",
"Real-Debrid": "9 €",
"TorBox": "-",
"Debrid-Link": "9 €",
"Linksnappy": "$29.99 USD",
"Mega-Debrid": "9 €"
},
{
"name": "180 Days",
"AllDebrid": "-",
"Premiumize": "€5.75 / month (€69.99 total)",
"Real-Debrid": "16 €",
"TorBox": "-",
"Debrid-Link": "16 €",
"Linksnappy": "$54.99 USD",
"Mega-Debrid": "16 €"
},
{
"name": "300 Days",
"AllDebrid": "-",
"Premiumize": "-",
"Real-Debrid": "-",
"TorBox": "-",
"Debrid-Link": "25 €",
"Linksnappy": "-",
"Mega-Debrid": "-"
}
]
}