exh which is gif?

which is gif?

Από την 13/12/2021. Δείτε την τελευταία έκδοση.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το 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         exh which is gif?
// @namespace    coombrain
// @version      0.1
// @description  which is gif?
// @author       coombrain
// @match        https://exhentai.org/g/*
// @match        https://e-hentai.org/g/*
// @license      MIT
// @icon         none
// @grant        none
// @require      http://code.jquery.com/jquery-latest.min.js
// ==/UserScript==
var $ = window.jQuery;
var WG_GLOW_SIZE = "8";
var WG_GLOW_COLOR = "aqua";

(function() {
    'use strict';

    $(document).ready(function () {
        $(".gdtm div a img").each(function() {
            let tmtl = $(this).attr("title");
            let tmei = tmtl.lastIndexOf(".") + 1;
            let tmex = tmtl.substr(tmei);

            if (tmex == "gif" || tmex == "apng" || tmex == "webm") {
                //as of writing only gif is supported on exh galleries so lol
                $(this).css("box-shadow", `0 0 ${WG_GLOW_SIZE}px ${WG_GLOW_COLOR}`);
            }
        });
    });
})();