您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
kufirc大图浏览
// ==UserScript== // @name kufirc大图 // @namespace kufirc // @version 0.1.3 // @description kufirc大图浏览 // @author Afan // @match https://kufirc.com/torrents.php* // @match https://kufirc.com/top10.php // @grant GM_xmlhttpRequest // @require https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js // ==/UserScript== (function() { 'use strict'; var torrents = function torrentlist(){ $('tr.torrent').each(function(){ //console.log($(this).children('td')[1]); //var scriptTag = $($($(this).children('td')[1]).children('script')[0]); $(this).find('td script').each(function(){ var pattern = /src=([^>]+)>/; console.log($(this).html().match(pattern)[1]) var imgsrc = $(this).html().match(pattern)[1].replace(/\\"/g, '').replace(/\/\//g,'/').replace(/(?!:)\\\//g,'/'); //console.log(imgsrc); $(this).after('<td><img src="'+imgsrc+'" style="max-width:700px;height:auto;"></td>'); }); }); }; torrents(); })();