处理搜索日志

This commit is contained in:
2024-12-16 12:08:53 +08:00
parent 09f402377e
commit 80b3219244

17
main.js
View File

@@ -193,15 +193,14 @@ export function main() {
const url = decodeURI(item.request.uri)
const regex = /text:"([^"]*)"/g
const match = regex.exec(url) || []
match.map(item => item[1]).forEach(item => {
截图.搜索词..set(item, (截图.搜索词..get(item) || 0) + 1)
截图.搜索词..set(item, (截图.搜索词..get(item) || 0) + 1)
截图.搜索词..set(item, (截图.搜索词..get(item) || 0) + 1)
截图.搜索词..set(item, (截图.搜索词..get(item) || 0) + 1)
截图.搜索词..set(item, (截图.搜索词..get(item) || 0) + 1)
})
console.log(match)
console.log(match[1])
if (match) {
let key = match[1]
截图.搜索词..set(key, (截图.搜索词..get(key) || 0) + 1)
截图.搜索词..set(key, (截图.搜索词..get(key) || 0) + 1)
截图.搜索词..set(key, (截图.搜索词..get(key) || 0) + 1)
截图.搜索词..set(key, (截图.搜索词..get(key) || 0) + 1)
截图.搜索词..set(key, (截图.搜索词..get(key) || 0) + 1)
}
return
}
})