JavDB_helper

have fun

Version vom 23.07.2020. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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

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

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

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

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         JavDB_helper
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  have fun
// @author       Yich
// @match        https://javdb.com/*
//@require https://code.jquery.com/jquery-3.3.1.min.js
// @grant        none
//@run-at  document-end
// ==/UserScript==

var originStyle = '';
var originImgUrl = '';

$('.item-image').hover(makeBigger,returnToOriginalSize);




function makeBigger() {
    var imageDom = $(this).find('img');
    originStyle = imageDom.attr('style');
    imageDom.removeAttr('style');
    originImgUrl = imageDom.data('src');
    imageDom.attr('src',originImgUrl.replace('thumbs','covers'));
    $(this).parent().css({height: '+=60%', width: '+=60%'});
    $(this).parent().parent().css('zIndex', '1');
}
function returnToOriginalSize() {
    var imageDom = $(this).find('img');
    imageDom.attr('style',originStyle);
    imageDom.attr('src',originImgUrl);
    $(this).parent().removeAttr('style');
    $(this).parent().parent().removeAttr('style');
}