您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
汲汲營營大報社
当前为
// ==UserScript== // @name 今年一定島 搜尋結果顯示縮圖 // @description 汲汲營營大報社 // @author 稻米 // @version 2023.12.30.0020.build16299 // @namespace https://gf.qytechs.cn/zh-TW/scripts/483411 // @match *://gaia.komica.org/00b/* // @match *://gaia.komica1.org/00b/* // @match *://gaia.komica2.net/00b/* // @exclude *://*/00b/src/* // @exclude *://*/00b/thumb/* // @grant none // @license WTFPL // ==/UserScript== $(document).ready(function() { poi(); }); function poi(){ console.log( 'poi231230顯示縮圖1' ); var aa =$('div#banner').find('div.bar_admin'); if( aa.text() == "搜尋" && $('#search_result').length >0 ){ //ok }else{ return; } poi231230顯示縮圖(); } function poi231230顯示縮圖(){ console.log( 'poi231230顯示縮圖' ); //找到每個結果中的連結 var bb =$('div#search_result').find('div.threadpost').find('.name').next('a'); //遍歷 var array=[]; $.each(bb, function( index, item ){ if(index>10){return;}//設定上限 // var str = $(item).attr('href');//討論串連結 var re = /res=([0-9]+)/; var found = str.match(re);//文章編號=found[1] // array[index]=[]; array[index][0]=found[1];//討論串編號 array[index][1]=$(item).text();//目標回文編號 });//each // //console.log( array ); array.forEach(function(item, index){ //console.log( item, index ); }); var 旅行者=[0,array]; poi231230顯示縮圖2(旅行者); }//poi231230顯示縮圖 function poi231230顯示縮圖2(旅行者){ var [index, array]=旅行者; //console.log( array[index] );//['22601969', '22601969'] poi231230取得縮圖資料( 旅行者 ) ; } function poi231230取得縮圖資料(旅行者){ console.log('poi231230取得縮圖資料'); var [index, array]=旅行者; var FFF=array[index] var [討論串編號,目標編號]=FFF; console.log( 討論串編號,目標編號 ); //return; var apiurl='./pixmicat.php?mode=module&load=mod_ajax&action=thread&html=true&op='+ 討論串編號; //綜合版原生api console.log(apiurl); //return; var jqXHR=$.ajax({ url: apiurl, type: 'GET', data: {}, }); jqXHR.done(function( data, textStatus, jqXHR ) { //console.log( 'jqXHR.done' ); var json = $.parseJSON( data );//分析parse if(json.error >0){//出現錯誤 有可能是串被砍了 console.log( json.msg );//錯誤訊息 return; } //console.log( json.posts );//ok //return; var bb=json.posts; //討論串裡的內容 var apidata_文章內容; $.each(bb,function(index,item){ //console.log( item ); if(目標編號 == item.no){ apidata_文章內容=item.html; } }); //console.log( apidata_文章內容 ); var FFF=$(apidata_文章內容).find('img').attr('src'); console.log( FFF );//縮圖網址 var aaa=$(".threadpost >a:contains('"+目標編號+"')"); console.log( aaa ); aaa.parent().css({'background-image':'url(' + FFF + ')','background-repeat': 'no-repeat','background-position':'center'}); //return; index=index+1; var 旅行者=[index, array]; if(index < array.length){ //ok poi231230取得縮圖資料( 旅行者 ); }else{ return;// } });//jqXHR.done /// jqXHR.fail(function( jqXHR, textStatus, errorThrown ){ console.log( 'jqXHR.fail' ); //console.log( jqXHR, textStatus, errorThrown ); $('.poi231230').text(textStatus+jqXHR.status); }); jqXHR.always(function( data, textStatus, jqXHR ){ //console.log( 'jqXHR.always' ); //console.log( textStatus );//success }); }//poi231230取得資料()
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址