Fjords begone

Redirects fjorded e-hentai galleries to their sadpanda version.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name           Fjords begone
// @namespace      Mexiguy
// @author         Mexiguy
// @version        1.0
// @description    Redirects fjorded e-hentai galleries to their sadpanda version.
// @include        http://g.e-hentai.org/*
// @grant          none
// @run-at         document-start
// ==/UserScript==

//Get the page title and URL of the gallery
var title = document.title;
var url = document.location.toString().toLowerCase();

//Check if it's fjorded
if (title.search("Gallery Not Available") != -1)
{
    document.title = "Redirecting..."
    
    //Change the URL to the sadpanda one and redirect.
    url = url.replace("g.e-hentai", "exhentai");
    document.location = url;
}