当前位置:网站首页>记录代码
记录代码
2022-08-02 11:11:00 【华为云】
一级 = {
A: function() {
var d = [];
var getRangeColors = function() {
return '#' + ('00000' + (Math.random() * 0x1000000 << 0).toString(16)).substr(-6);
}
var 分类颜色 = getRangeColors()
const empty = "hiker://empty"
try {
var categories = pdfa(html, 大类定位).concat(pdfa(html, 拼接分类))
} catch (e) {
var categories = pdfa(html, 大类定位)
}
let init_cate = []
for (let i = 0; i < 20; i++) {
init_cate.push("0")
}
const fold = getVar(MY_RULE.group, "0")
const cate_temp_json = getVar(MY_RULE.title, JSON.stringify(init_cate))
const cate_temp = JSON.parse(cate_temp_json)
if (parseInt(page) === 1) {
d.push({
title: fold === '1' ? '““””<b><span style="color: #FF0000">∨</span></b>' : '““””<b><span style="color: #1aad19">∧</span></b>',
url: $().lazyRule((fold) => {
putVar(MY_RULE.group, fold === '1' ? '0' : '1');
refreshPage(false);
return "hiker://empty"
}, fold),
col_type: 'scroll_button',
})
categories.forEach((category, index) => {
let sub_categories = pdfa(category, 小类定位);
if (index === 0) {
sub_categories.forEach((item, key) => {
let title = pdfh(item, 分类标题)
d.push({
title: key.toString() === cate_temp[index] ? '““””<b><span style="color: ' + 分类颜色 + '">' + title + '</span></b>' : title,
url: $(pd(item, 分类链接) + '#noLoading#').lazyRule((params) => {
let new_cate = []
params.cate_temp.forEach((cate, index) => {
new_cate.push(index === 0 ? params.key.toString() : "0")
})
putVar(MY_RULE.title, JSON.stringify(new_cate))
putVar(MY_RULE.url, input)
refreshPage(true)
return "hiker://empty"
}, {
cate_temp: cate_temp,
key: key,
page: page,
}),
col_type: 'scroll_button',
})
})
d.push({
col_type: "blank_block"
});
} else if (fold === '1') {
sub_categories.forEach((item, key) => {
let title = pdfh(item, 分类标题)
d.push({
title: key.toString() === cate_temp[index] ? '““””<b><span style="color: ' + 分类颜色 + '">' + title + '</span></b>' : title,
url: $(pd(item, 分类链接) + '#noLoading#').lazyRule((params) => {
params.cate_temp[params.index] = params.key.toString()
putVar(MY_RULE.title, JSON.stringify(params.cate_temp))
putVar(MY_RULE.url, input)
refreshPage(true)
return "hiker://empty"
}, {
cate_temp: cate_temp,
index: index,
key: key,
page: page,
}),
col_type: 'scroll_button',
})
})
d.push({
col_type: "blank_block"
});
}
})
}
//一级页面
var list = pdfa(html, 列表);
for (var j in list) {
var img = pd(list[j], 图片);
d.push({
title: pdfh(list[j], 标题),
desc: pdfh(list[j], 描述),
img: img + '@Referer=' + img,
url: pd(list[j], 链接) + '#immersiveTheme#'
});
}
setResult(d);
}}
边栏推荐
- 【2022 小目标检测综述】Towards Large-Scale Small Object Detection: Survey and Benchmarks
- Excel dynamic chart production
- ASP.NET Core 6框架揭秘实例演示[31]:路由&quot;高阶&quot;用法
- 字母交换--字符串dp
- SQL 数据更新
- SQLAlchemy使用教程
- Turning and anti-climbing attack and defense
- 打破千篇一律,DIY属于自己独一无二的商城
- 从测试入门到测试架构师,这10年,他是这样让自己成才的
- ES2020-23简单易懂又实用的精选特性讲解 日常开发必备干货!
猜你喜欢

Nanny Level Tutorial: Write Your Own Mobile Apps and Mini Programs (Part 2)

一体化在线政务服务平台,小程序容器技术加速建设步伐

注意力机制

细学常用类,集合类,IO流

当POC遇见RPA:RPA项目顺利实施的关键

博云入选Gartner中国DevOps代表厂商

看我如何用多线程,帮助运营小姐姐解决数据校对系统变慢!

Deep Learning 100 Examples - Convolutional Neural Network (CNN) for mnist handwritten digit recognition

Turning and anti-climbing attack and defense

翁恺C语言程序设计网课笔记合集
随机推荐
How to encapsulate the wx.request() request of WeChat applet
5G网络切片技术
sva assertion data
The exchange - string dp
Excel动态图制作
The 38-year-old daughter is not in love and has no stable job, the old mother is crying
图形处理单元(GPU)的演进
【2022 小目标检测综述】Towards Large-Scale Small Object Detection: Survey and Benchmarks
Nanny Level Tutorial: Write Your Own Mobile Apps and Mini Programs (Part 2)
博云入选Gartner中国DevOps代表厂商
Deep Learning 100 Examples - Convolutional Neural Network (CNN) for mnist handwritten digit recognition
从幻核疑似裁撤看如何保证NFT的安全
Com多进程通信实现
LayaBox---TypeScript---Decorator
sqli-labs(less-11)
AlphaFold又放大招,剑指整个生物界!
C#为listview选中的项添加右键菜单
配置mysql失败了,这是怎么回事呢?
LeetCode每日一练 —— 225. 用队列实现栈
LayaBox---TypeScript---Three slash instructions