当前位置:网站首页>记录代码
记录代码
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);
}}
边栏推荐
- [Science of Terminology] For those difficult words about the integrated workbench, read this article to understand in seconds!
- 深度学习100例 —— 卷积神经网络(CNN)实现mnist手写数字识别
- SQL(面试实战07)
- QT笔记——在一个窗口上显示另外一个透明窗口
- 10份重磅报告 — 展望中国数字经济未来
- 3 d laser slam: LeGO - LOAM - ground point extracting method and the analysis of the code
- AdguardHome如何配置设置?我的AdguardHome配置内容过滤器拦截列表
- 多线程(基础) - 4万字总结
- C#为listview选中的项添加右键菜单
- Oracle降低高水位
猜你喜欢

保姆级教程:写出自己的移动应用和小程序(篇二)

FinClip | 来了, 2022 年 7 月更新大盘点

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

Camera Hal OEM模块 ---- cmr_snapshot.c

Shell编程之条件语句

LeetCode每日一练 —— 20. 有效的括号

Alibaba CTO Cheng Li: Alibaba Open Source History, Concept and Practice

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

图形处理单元(GPU)的演进

打破千篇一律,DIY属于自己独一无二的商城
随机推荐
SQLAlchemy使用教程
配置mysql失败了,这是怎么回事呢?
多线程之生产者与消费者
Hub and Spoke配置案例
Oracle降低高水位
FPGA手撕代码——CRC校验码的多种Verilog实现方式 (2021乐鑫科技数字IC提前批代码编程)
Geoffery Hinton: The Next Big Thing in Deep Learning
Jay Chou's new song is released, crawl the "Mojito" MV barrage, and see what the fans have to say!
从测试入门到测试架构师,这10年,他是这样让自己成才的
LayaBox---TypeScript---Namespaces and modules
QT笔记——QT类反射机制简单学习
21 Days Learning Challenge - Day 1 Punch (Screen Density)
图形处理单元(GPU)的演进
多大数量级会出现哈希碰撞
2022年8月初济南某外包公司全栈开发面试题整理
记一次mysql查询慢的优化历程
LayaBox---TypeScript---Advanced Type
学习笔记-支付宝支付
find查找多类型结尾文件
MapStruct