您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
ScaleInPics
当前为
// ==UserScript== // @name ScalesImgageForJavHHH // @namespace https://4ca.st // @version 1.3 // @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 id="video-info"></div> <a href="" id="video-url" target="_blank" class="btn btn-info btn-lg fa fa-link hidden"></a> </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','')); $('#video-info').load(href + ' .col-12:has(.card-sub)'); let urlseg=href.split('/'); $('#video-url').attr('href',href).text(urlseg[urlseg.length-2]).removeClass('hidden'); }).on('hidden.bs.modal',function(){ $('#picmodalImage').attr('src',''); $('#video-info').empty(); $('#video-url').empty().removeAttr('href').addClass('hidden'); }); $('.content-views').html(function(i,n){ return n + `<a href="javascript:;" data-toggle="modal" data-target="#picmodal" class="fa fa-eye fa-fw"></a>`; }); });