Bypasses Sub2Unlock.com using the Ethos API and redirects the user to the bypassed link.
// ==UserScript==
// @name Ethos Sub2Unlock Bypasser
// @namespace https://greasyfork.org
// @version 1.0
// @description Bypasses Sub2Unlock.com using the Ethos API and redirects the user to the bypassed link.
// @author Shehajeez
// @match https://sub2unlock.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var currenturl = window.location.href;
fetch('https://ethos-testing.vercel.app/api/sub2unlock/bypass?link=' + currenturl)
.then(response => response.json())
.then(data => {
console.log('redirecting to the bypassed link:', data.bypassed);
window.location.href = data.bypassed;
})
.catch(error => console.error('error:', error));
})();