E-Hentai Click Space

Navigate using left/right empty spaces, removes gallery info on top of page.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name			E-Hentai Click Space
// @version			1.01
// @description     Navigate using left/right empty spaces, removes gallery info on top of page.
// @author			HKJeffer
// @icon 			https://png.icons8.com/ios/50/000000/open-book.png
// @include		 	http://e-hentai.org/s/*
// @include 		http://exhentai.org/s/*
// @include 		https://e-hentai.org/s/*
// @include 		https://exhentai.org/s/*
// @require 		https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// @namespace https://greasyfork.org/users/187160
// ==/UserScript==

// This scripts uses jQuery because the author is quite lazy.

console.log("[ECS] E-Hentai Click Space is running, click the left/right empty space of this page to navigate.");
$('h1').css('display', 'none');
$('#i2').css('display', 'none');

jQuery('<div/>', {
    id: 'left',
    css: {
      left: '0px',
      top: '0px',
      width: '50%',
      height: '100%',
      position: 'absolute'
    }
}).appendTo('body');
$('#left').click(function(){$('#prev').trigger('click');});

jQuery('<div/>', {
    id: 'right',
    css: {
      left: '50%',
      top: '0px',
      width: '50%',
      height: '100%',
      position: 'absolute'
    }
}).appendTo('body');
$('#right').click(function(){$('#next').trigger('click');});

$('#left,#right').css('height', Math.max($(window).height(), $(document).height()));