EXBetterGalleryList

BetterGalleryList

Verze ze dne 14. 05. 2021. Zobrazit nejnovější verzi.

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

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 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         EXBetterGalleryList
// @namespace    https://greasyfork.org/zh-CN/users/453092
// @require      http://libs.baidu.com/jquery/2.1.4/jquery.min.js
// @version      0.21
// @description  BetterGalleryList
// @author       ikarosf
// @match        https://exhentai.org/?*
// @match        https://e-hentai.org/?*
// @match        https://exhentai.org/tag/*
// @match        https://e-hentai.org/tag/*
// @match        https://exhentai.org/favorites.php*
// @match        https://e-hentai.org/favorites.php*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    $(".gl3c.glname>a").click(function(obj){
          $(this).parents(".gl3c.glname").css("background","black")
    });
    $(".gl3c.glname>a").attr("target","_blank");

    $(".gl4c.glhide").each(function(){
      var pagenum = parseInt($(this).find("div:last-child").text())
      var r = pagenum
      var g = 255-pagenum
      var b = 0
      if(pagenum<10){
          r = 255 - pagenum
          b = 255
      }else if(pagenum<=20){
          b = pagenum + 220
      }else if(pagenum<=30){
          b = pagenum + 130
      }
      var rgb = "rgb(" + r + "," + g + "," + b + ")";
      $(this).css("background",rgb)
      $(this).css("color","black")
        $(this).find("div>a").css("color","black")
    });
    // Your code here...
})();