verpeliculasonline.org subtituladas.com link shortener auto-bypass

Redirects to URL the destination URL bypassing the link shorteners

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         verpeliculasonline.org subtituladas.com link shortener auto-bypass
// @version      1.2
// @description  Redirects to URL the destination URL bypassing the link shorteners
// @author       Rust1667
// @match        https://subtituladas.com/enlace/*
// @match        https://verpeliculasonline.org/enlace/*
// @grant        none
// @namespace    https://greatest.deepsurf.us/users/980489
// ==/UserScript==

(function() {
    'use strict';

    // Find the URL within the <a> element
    var linkElement = document.getElementById('link');
    if (linkElement) {
        var linkUrl = linkElement.href;

        // Check if '?s=' exists in the URL
        if (linkUrl.includes('?s=')) {
            var sIndex = linkUrl.indexOf('?s=') + 3; // 3 is the length of '?s='
            var extractedUrl = linkUrl.substring(sIndex);

            // Redirect to the extracted URL
            window.location.href = extractedUrl;

            //Stop the now useless timer
            window.setTimeout = function() {};
            window.setInterval = function() {};
            document.addEventListener = function() {};

        } else {
            // Redirect to the full URL
            window.location.href = linkUrl;
        }
    } else {
        console.log("Link element not found.");
    }
})();