您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
ScaleInPics
当前为
// ==UserScript== // @name ScalesImgageForJavHHH // @namespace https://4ca.st // @version 0.2 // @description ScaleInPics // @author Nazicp // @match https://javhhh.com/* // @icon https://javhhh.com/template/javhhh/images/favicon.ico // @grant none // ==/UserScript== $(function(){ var modal=`<div id="picmodal" class="modal fade" tabindex="-1" role="dialog"> <div class="modal-dialog" style="max-width: 1000px;" role="document"> <div class="modal-content"> <img id="picmodalImage" src="" style="border-radius:10px 10px 0 0"> <div class="text-shadow" id="picmodalText" style="padding:10px"></div> </div> </div> </div>`; $('body').append(modal); $('#picmodal').modal({show:false}).on('show.bs.modal',function(e){ let container=e.relatedTarget.offsetParent; let img=$(container).find('img[data-qazy]'); let href=container.querySelector('a').href; $('#picmodalImage').attr('src',img.attr('src').replace('_400.jpg','')); $('#picmodalText').load(href + ' .col-12:has(#date_list)'); }).on('hidden.bs.modal',function(){ $('#picmodalImage').attr('src',''); $('#picmodalText').empty(); }); $('.content-views').html(function(i,n){ return n + `<a href="javascript:;" data-toggle="modal" data-target="#picmodal" class="fa fa-eye fa-fw"></a>`; }); });