PageSourceSearch

https://axutongxue.top/js/tctip.min.js

js axutongxue.top collected 2026-09-29 13:22:18 UTC 13,770 bytes, 108 lines download raw bytes

1var tctipUtil={createElement:function(i,e,j){var a=document.createElement(e||"div");for(var h in i){"style"==h?a[h].cssText=i[h]:a[h]=i[h]}
2return(j||document.body).appendChild(a)},createElementHtml:function(i,e,j){var a=document.createElement(e||"div");for(var h in i){"style"==h?a[h].cssText=i[h]:a[h]=i[h]}
3return(j||document.body).appendChild(a)},getElementsByClassName:function(d,c){return c=c||document,c.getElementsByClassName?c.getElementsByClassName(d):function(o,e){var p,q,i=[],a=e.getElementsByTagName("*"),n=a.length,b=new RegExp("(^|\\s)"+o+"(\\s|$)");for(p=0,q=0;p<n;p++){b.test(a[p].className)&&(i[q]=a[p],q++)}
4return i}(d,c)},getTextKey:function(){return"firefox"==tctipUtil.getExplorer()?"textContent":"innerText"},getExplorer:function(){var b=window.navigator.userAgent.toLowerCase();return b.indexOf("msie")>=0?"ie":b.indexOf("firefox")>=0?"firefox":b.indexOf("chrome")>=0?"chrome":b.indexOf("opera")>=0?"opera":b.indexOf("safari")>=0?"safari":void 0},addLoadEvent:function(d){if("function"!=typeof window.onload){window.onload=d}else{var c=window.onload;window.onload=function(){c(),d()}}},isSupportCanvas:function(){try{return document.createElement("canvas").getContext("2d"),!0}catch(b){return!1}},isMouseLeaveOrEnter:function(d,f){if(!d){return!1}
5if("mouseout"!=d.type&&"mouseover"!=d.type&&"click"!=d.type){return!1}
6for(var e=d.relatedTarget?d.relatedTarget:"mouseout"==d.type?d.toElement:d.fromElement;e&&e!=f;){e=e.parentNode}
7return e!=f},currentEvent:function(){if(document.all){return window.event}
8for(func=tctipUtil.currentEvent.caller;null!=func;){var b=func.arguments[0];if(b&&(b.constructor==Event||b.constructor==MouseEvent||"object"==typeof b&&b.preventDefault&&b.stopPropagation)){return b}
9func=func.caller}
10return null},mergeArray:function(g,e,h){for(var a in e){(g.hasOwnProperty(a)||h)&&(g[a]=e[a])}
11return g},animate:function(g,e,h){for(var a in g){e.style[a]=g[a]}}},tctip=window.tctip||{myConfig:{headText:"喜欢请打赏",siderText:"公告 ● 支持",siderTextTop:"-84px",siderBgcolor:"#323d45",siderTop:"10%",buttomText:"储物间地址发布页",buttomLink:"http://axutongxue.ysepan.com/"},myRewards:null,myRewardsBtn:null,myRewardsMain:null,myRewardsbox:null,myRewardsList:null,myRewardsDetail:null,myRewardsListUl:null,myRewardsUbox:null,currentLi:null,currentData:null,generateMyConfig:function(){tctip.myConfig=tctipUtil.mergeArray(tctip.myConfig,tctipConfig);var i=[],e=0,j=!1;for(var a in tctipConfig.list){var h=tctipConfig.list[a];if("myR-on"==h.className&&(j=!0),i.push(h),e+=1,e>=6){break}}
120==j&&(i[0].className="myR-on"),tctip.myConfig.list=i},generateMyRewards:function(){this.myRewards=tctipUtil.createElement({id:"myRewards",className:"myRewards",style:"top:"+this.myConfig.siderTop+";"}),this.generateLeftBtn(),this.generateMyRewardsMain()},generateLeftBtn:function(){var b={className:"btn-myRewards"};b.style="margin-top:"+tctip.myConfig.siderTextTop+";";if(isMobileDevice()||isPc()){b.onclick=function(){tctip.showTctip(this)}}else{b.onmouseover=function(){tctip.showTctip(this)}}
13this.myRewardsBtn=tctipUtil.createElement(b,"a",this.myRewards);b={className:"sider-text"};b.style="background-color:"+tctip.myConfig.siderBgcolor,b[tctipUtil.getTextKey()]=tctip.myConfig.siderText,tctipUtil.createElement(b,"p",this.myRewardsBtn)},showTctip:function(d){var c=tctipUtil.currentEvent();tctipUtil.isMouseLeaveOrEnter(c,d)&&(tctipUtil.animate({width:"240px"},tctip.myRewards,200),tctipUtil.animate({display:"none"},tctip.myRewardsBtn,200))},hideTctip:function(d){var c=tctipUtil.currentEvent();tctipUtil.isMouseLeaveOrEnter(c,d)&&(tctipUtil.animate({width:"0px"},tctip.myRewards,200),tctipUtil.animate({display:"block"},tctip.myRewardsBtn,200))},generateMyRewardsMain:function(){this.myRewardsMain=tctipUtil.createElement({className:"myRewards-main",onmouseout:function(){tctip.hideTctip(this)}},"div",this.myRewards);var d=this.myRewardsMain,f={className:"sider-close",title:"收起",onclick:function(){tctip.hideTctip(d)}};f[tctipUtil.getTextKey()]=">>",tctipUtil.createElement(f,"a",this.myRewardsMain);f={className:"myR-h"};f[tctipUtil.getTextKey()]=tctip.myConfig.headText,tctipUtil.createElement(f,"h1",this.myRewardsMain),this.generateMyRewardsbox()},generateMyRewardsbox:function(){this.myRewardsbox=tctipUtil.createElement({className:"myRewardsbox"},"div",this.myRewardsMain),this.generateMyRewardsList(),this.generateMyRewardsDetail()},generateMyRewardsList:function(){this.myRewardsList=tctipUtil.createElement({className:"myRewards-list"},"div",this.myRewardsbox),tctip.myConfig.list.length>=5?this.myRewardsListUl=tctipUtil.createElement({},"ul",this.myRewardsList):this.myRewardsListUl=tctipUtil.createElement({className:"not-full"},"ul",this.myRewardsList);for(var g=0;g<6&&tctip.myConfig.list.hasOwnProperty(g);g++){var e=tctip.myConfig.list[g],h=tctipUtil.createElement({className:e.className},"li",this.myRewardsListUl),a=null;(function(){var b=e,c={onmouseover:function(){tctip.leftMouseover(this,b)}};c[tctipUtil.getTextKey()]=e.name,5==g&&(c.className="fifth"),a=tctipUtil.createElement(c,"a",h)})(),"myR-on"==e.className&&(this.currentLi=h,this.currentData=e),tctipUtil.createElement({className:"png",src:e.icon,alt:e.name,},"img",a)}},generateMyRewardsDetail:function(){tctip.myRewardsDetail&&tctip.myRewardsbox.removeChild(tctip.myRewardsDetail),this.myRewardsDetail
13=tctipUtil.createElement({className:"myRewards-detail"},"div",this.myRewardsbox),this.myRewardsUbox=tctipUtil.createElement({className:"myRewards-ubox"},"div",this.myRewardsDetail);var d={className:"myRewards-code-tit"};if(tctip.currentData.hasOwnProperty("text")){var c=tctipUtil.createElement({className:"myRewards-notice"},"div",this.myRewardsUbox);d={className:"myRewards-text"},d.innerHTML=tctip.currentData.text||tctip.currentData.desc||tctip.currentData.name;tctipUtil.createElement(d,"p",c)}else{d[tctipUtil.getTextKey()]="点击或扫描二维码访问",tctipUtil.createElement(d,"p",this.myRewardsUbox);c=tctipUtil.createElement({className:"myRewards-code",onclick:function(){window.open(tctip.currentData.href,'_blank');}},"div",this.myRewardsUbox);if(tctip.currentData.hasOwnProperty("qrimg")){tctipUtil.createElement({src:tctip.currentData.qrimg},"img",c),d={className:"myRewards-account"},d[tctipUtil.getTextKey()]=tctip.currentData.desc||tctip.currentData.name;tctipUtil.createElement(d,"p",this.myRewardsUbox)}}},leftMouseover:function(d,c){tctip.currentLi.className="",d.parentNode.className="myR-on",tctip.currentLi=d.parentNode,tctip.currentData=c,tctip.generateMyRewardsDetail()},init:function(){document.body?(tctip.generateMyConfig(),tctip.generateMyRewards()):setTimeout(tctip.init,0)
14const list=[{href:''},{href:'https://mp.weixin.qq.com/s/vrbFsjLPQoXMX3PGi2fOJA'},{href:'https://mp.weixin.qq.com/s/ds7UNPOJL9ejsRo71C3SGQ'},{href:'https://t.zsxq.com/19d2gGtRe'},{href:'http://axu.xpsup.cn/'},{href:'https://axutongxue.cccpan.com/'}]
15tctip.myConfig.list.map((item,index)=>{if(item.qrimg){item.href=list[index].href}})}};function isPc(){var ua=window.navigator.userAgent
16var IsIPad=false
17if(/ipad/i.test(ua)){IsIPad=true}
18var macApp=ua.match(/Macintosh/i)!=null
19if(macApp){var canvas=document.createElement('canvas')
20if(canvas!=null){var context=canvas.getContext('webgl')||canvas.getContext('experimental-webgl')
21if(context){var info=context.getExtension('WEBGL_debug_renderer_info')
22if(info){var renderer=context.getParameter(info.UNMASKED_RENDERER_WEBGL)
23if(renderer.indexOf('Apple')!=-1)IsIPad=true}}}}
24return IsIPad;}
25function isMobileDevice(){return navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);}
26window.tctipConfig ={headText:"公众号自动回复资源见上方👆",siderText:"公告 ● 支持",siderTextTop:"-72px",siderBgcolor:"#323d45",siderTop:"118px",list:{notice:{name:"公告栏",className:"myR-on",icon:"https://wework.qpic.cn/wwpic3az/898351_AxcBcqZ9QFmznfb_1753452407/0",text:window.tctipNoticeText||""},card:{name:"返利APP",desc:"阿虚独家实测!12 款返利 APP 到底哪个返利最高?多维度横评,真实截图数据,最终推荐产品无邀请码,无上下级赚差价!欢迎点击了解",icon:"https://img30.360buyimg.com/imgzone/jfs/t20270916/492555/38/14608/2388/6a7c50d1F4953950c/093604d04cb0e47b.png",qrimg:"https://img30.360buyimg.com/imgzone/jfs/t20270916/497121/14/9204/7600/6a7c4fceF30c68217/09361611613390c4.png"},xiaobaotong:{name:"原创脚本",desc:"阿虚原创自动化脚本,包含网盘资源批量搜索、AI批量搜索、AI批量深度思考、AI批量出研究报告,Windows/Mac通用,多个 AI 交叉验证,可助你极大提高搜索、学习效率!",icon:"https://wework.qpic.cn/wwpic3az/755748_82BqHYxHRFeywQI_1781873640/0",qrimg:"https://wework.qpic.cn/wwpic3az/69229_HK1N-aaKRqCghV7_1781873370/0"},zhishixingqiu:{name:"知识星球",desc:"如果你想获取阿虚更及时、高质量的回复,欢迎加入我的付费星球,享受全年无限次提问:提问越多,收获越大!星球内还提供公众号所有付费文章+简单脚本或工具代的开发服务+价值99的独家小报童!加入星球,阿虚陪你一起终身成长",icon:"https://wework.qpic.cn/wwpic3az/324339_-uMsHKhLT1Wvsqd_1753452478/0",qrimg:"https://wework.qpic.cn/wwpic3az/92458_7aI3hjBjT2mMZNf_1753452493/0"},huiyuan:{name:"特价会员",desc:"阿虚自营特价会员充值网站:影视/音乐/读书/网盘/社交娱乐等会员都有!正规渠道官方直充,偶尔还有超低活动特价人工代充,阿虚担保,100%放心购买,已有4000+粉丝下单!🤝",icon:"https://wework.qpic.cn/wwpic3az/286348_17C1vK29QbeuqST_
261753452519/0",qrimg:"https://wework.qpic.cn/wwpic3az/780198_yFvvhyYKTi2-fSK_1753452531/0"},fabuye:{name:"发布页",desc:"储物间主要使用以下域名后缀:com/net/cn 当然,更建议点击上图,查看并收藏地址发布页!",icon:"https://wework.qpic.cn/wwpic3az/594861_XtI7KjRUR3iTmoh_1781873678/0",qrimg:"https://wework.qpic.cn/wwpic3az/401046_8him-1W5QmmXKY1_1781711685/0"}}};
27tctip.init();
28
29/* ===== 失效反馈功能(开关:tctipFeedback.enabled) ===== */
30var tctipFeedback=(function(){
31var enabled=true; // 开关:false 则不初始化
32var FEISHU_BASE='https://my.feishu.cn/share/base/form/shrcnQEQph33whiOEjpqKiXMdeh';
33var selectMode=false,btn;
34
35function init(){
36if(!enabled)return;
37// 注入样式
38var s=document.createElement('style');
39s.textContent=
40'#feedbackBtn{position:fixed;right:0;top:55%;z-index:9998;width:30px;min-width:30px;background:#323d45;color:#fff;border:0;padding:1em 0;font:13px/1.4 "microsoft yahei",arial,sans-serif;cursor:pointer;border-radius:12px;border-top-right-radius:0;border-bottom-right-radius:0;writing-mode:vertical-rl;letter-spacing:2px;white-space:nowrap;overflow:visible}'
41+'.myRewards{top:40%!important;transform:translateY(-50%)!important;pointer-events:none}'
42+'.myRewards .btn-myRewards,.myRewards-main{pointer-events:auto}'
43+'#feedbackBtn:hover{background:#454e57}'
44+'#feedbackBtn.active{background:#d9534f}'
45+'#feedbackBtn.active:hover{background:#c9302c}'
46+'body.feedback-select-mode #mainmenu a[href],body.feedback-select-mode #mainmenu a[HREF]{outline:2px dashed #d9534f!important}'
47+'body.feedback-select-mode #mainmenu a[href]:hover,body.feedback-select-mode #mainmenu a[HREF]:hover{background:#ffe5e0!important}'
48+'body.feedback-select-mode::after{content:"点击带链接的资源进行反馈,「点击右下角」或按「Esc键」退出选择模式";position:fixed;left:0;right:0;bottom:0;background:#d9534f;color:#fff;text-align:center;font:13px/2 "microsoft yahei",arial,sans-serif;z-index:9999}';
49document.head.appendChild(s);
50// 创建按钮
51btn=document.createElement('button');
52btn.id='feedbackBtn';btn.textContent='失效反馈';
53document.body.appendChild(btn);
54// 事件
55btn.addEventListener('click',toggleSelectMode);
56document.addEventListener('keydown',function(e){if(e.key==='Escape'&&selectMode)toggleSelectMode();});
57document.addEventListener('click',onClick,false);
58}
59
60function toggleSelectMode(){
61selectMode=!selectMode;
62document.body.classList.toggle('feedback-select-mode',selectMode);
63btn.textContent=selectMode?'退出选择模式':'失效反馈';
64btn.classList.toggle('active',selectMode);
65}
66
67function buildPath(a){
68var nums=[],li=a.closest('li'),node=li?li.parentElement:null;
69while(node&&node!==document.body){
70if(node.tagName==='LI'){
71var fa=node.querySelector(':scope > a');
72if(fa){var m=(fa.textContent||'').match(/^\s*(\d+)/);if(m)nums.unshift(parseInt(m[1],10));}
73}
74node=node.parentElement;
75}
76return nums.join('-')+'栏';
77}
78
79function isTarget(a){
80if(!a||a.tagName!=='A')return false;
81var h=a.getAttribute('href')||a.getAttribute('HREF');if(!h)return false;
82if(a.querySelector('img.bei'))return false;
83if(!(a.textContent||'').trim())return false;
84var li=a.closest('li');if(li&&li.querySelector(':scope > ul.menu'))return false;
85return true;
86}
87
88function onClick(e){
89if(!selectMode)return;
90if(!e.target.closest('#mainmenu'))return;
91var a=e.target.closest('a');if(!a||!isTarget(a))return;
92e.preventDefault();
93var name=(a.textContent||a.innerText||'').trim();
94var path=buildPath(a);
95var url=FEISHU_BASE+'?prefill_失效资源名称='+name+'&prefill_所在目录路径='+path;
96if(confirm('确认反馈以下失效资源?\n\n失效资源名称:'+name+'\n所在目录路径:'+path+'\n\n点击「确定」将跳转至飞书问卷。')){
97toggleSelectMode();window.open(url,'_blank');
98}
99}
100
101return{init:init,
102isEnabled:function(){return enabled;},
103enable:function(){enabled=true;init();},
104disable:function(){enabled=false;}
105};
106})();
107
108if(tctipFeedback.isEnabled()){tctipFeedback.init();}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.