exhentai no https

access the site with http

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        exhentai no https
// @namespace   js.replacer.string
// @include     http://exhentai.org/*
// @version     1
// @grant       none
// @description access the site with http
// ==/UserScript==

document.body.innerHTML = document.body.innerHTML.replace(/(http|inits)s/g, '$1');

var css = document.createElement('link');
css.setAttribute("rel", "stylesheet");
css.setAttribute("type", "text/css");
css.setAttribute("href", "http://exhentai.org/z/0320/x.css");

document.getElementsByTagName("head")[0].appendChild(css);

var script = document.createElement('script');
script.setAttribute("type", "text/javascript");
script.setAttribute("src", "/z/0320/ehg_index.c.js");
document.getElementsByTagName("head")[0].appendChild(script);
script = document.createElement('script');
script.setAttribute("type", "text/javascript");
script.setAttribute("src", "/z/0320/ehg_gallery.c.js");
document.getElementsByTagName("head")[0].appendChild(script);

document.body.onload = function () {
	window.load_pane_image = function (b) {if (b != undefined) {var a = b.innerHTML.split("~", 4);if (a.length == 4) {if (a[0] == "init") {b.innerHTML='<img src="http://'+a[1]+"/"+a[2]+'" alt="'+a[3]+'" style="margin:0" />';} else if (a[0]=="inits") {b.innerHTML='<img src="http://'+a[1]+"/"+a[2]+'" alt="'+a[3]+'" style="margin:0" />'}}}}
}