Greasy Fork

来自缓存

Greasy Fork is available in English.

Redirect fake ElAmigos Repacks websites

Redirects fake ElAmigos Repacks websites to the original one.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name                   Redirect fake ElAmigos Repacks websites
// @name:fa               انتقال سایت های فیک ال آمیگوس به اصلی
// @description:fa        سایت های ال آمیگوس رو به اصلیش انتقال میده.
// @namespace             bananabread6234
// @author                Black_0_Wolf
// @license               idc
// @version               1.0
// @description           Redirects fake ElAmigos Repacks websites to the original one.
// @match                 *://el-amigos.*/*
// @match                 *://elamigos.*/*
// @match                 *://www.el-amigos.*/*
// @match                 *://www.elamigos.*/*
// @match                 *://www.el-amigo.*/*
// @match                 *://www.elamigo.*/*
// @match                 *://elamigos-games.*/*
// @match                 *://www.elamigos-games.*/*
// @match                 *://www.elamigosedition.*/*
// @match                 *://elamigosedition.*/*
// @grant                 none
// @icon                  https://static.wikia.nocookie.net/metro2033/images/9/99/Faction_Logo_Order.png/revision/latest/scale-to-width-down/120?cb=20191017090524
// ==/UserScript==

(function() {
    'use strict';

    if (window.location.hostname !== 'elamigos.site') {
        var pageTitle = document.title;
        var separatorIndex = pageTitle.search(/[\[-|]/); // Search for [ or - or |
        var trimmedTitle = separatorIndex !== -1 ? pageTitle.substring(0, separatorIndex) : pageTitle;
        var encodedTitle = encodeURIComponent(trimmedTitle);
        window.location.href = 'https://www.google.com/search?q=site%3Aelamigos.site+' + encodedTitle;
    }
})();