verpeliculasonline.org subtituladas.com link shortener bypass

Bypass helper for the link shortener

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         verpeliculasonline.org subtituladas.com link shortener bypass
// @version      1.1
// @description  Bypass helper for the link shortener
// @author       Rust1667
// @match        https://subtituladas.com/enlace/*
// @match        https://verpeliculasonline.org/enlace/*
// @grant        none
// @namespace https://greasyfork.org/users/980489
// ==/UserScript==

// Modify the link "Descargar Torrent" removing the link shortener
(function() {
    'use strict';

    // Find 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);

            // Modify the href attribute of the <a> element
            linkElement.href = extractedUrl;
        }
    }
})();


// Boost the timer
function boostTimers() {
  const originalSetTimeout = window.setTimeout;
  const originalSetInterval = window.setInterval;

  Object.defineProperty(window, 'setTimeout', {
    value: function(func, delay) {
      if (delay === 1000) {
        delay = 50;
      }
      return originalSetTimeout.apply(this, arguments);
    }
  });

  Object.defineProperty(window, 'setInterval', {
    value: function(func, delay) {
      if (delay === 1000) {
        delay = 50;
      }
      return originalSetInterval.apply(this, arguments);
    }
  });
}

boostTimers();