您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
try to take over the world!
当前为
// ==UserScript== // @name 图集岛VIP // @namespace http://tampermonkey.net/ // @version 0.2 // @description try to take over the world! // @author sellry // @match *://*.tujidao.com/* // @grant none // @license GPLv3 // ==/UserScript== (function() { 'use strict'; [].forEach.call( document.querySelectorAll('div.hezi>ul>li'),imgLiTag=>{ imgLiTag.querySelector('a').removeAttribute("href"); imgLiTag.style.cursor='pointer'; imgLiTag.addEventListener('click',function(){ layui.use('layer', function(){ var layer = layui.layer; layer.photos({ photos:{ "title": imgLiTag.querySelector('p.biaoti>a').innerText, "id": imgLiTag.id, anim: 5, "start": 0, "data": Array(parseInt(imgLiTag.querySelector('span.shuliang').innerText.replace('P',''))).fill(0).map((item,num)=> { return { "alt": "", "pid": num, //图片id "src": `https:///tjg.gzhuibei.com/a/1/${imgLiTag.id}/${num+1}.jpg`, //原图地址 "thumb": `https:///tjg.gzhuibei.com/a/1/${imgLiTag.id}/${num+1}.jpg` //缩略图地址 }}) } }); }); }); }) })();