forked from 50n50/sources
Update dev/dev.js
This commit is contained in:
+7
-11
@@ -1,17 +1,13 @@
|
|||||||
async function searchResults(keyword) {
|
async function searchResults(keyword) {
|
||||||
const results = [];
|
const results = [];
|
||||||
try {
|
try {
|
||||||
const response = await fetchv2();
|
const anagram = _0xB4F2();
|
||||||
const html = await response.text();
|
|
||||||
|
results.push({
|
||||||
let match;
|
title: anagram,
|
||||||
while ((match = regex.exec(html)) !== null) {
|
image: "",
|
||||||
results.push({
|
href: ""
|
||||||
title: match[3].trim(),
|
});
|
||||||
image: match[2].trim(),
|
|
||||||
href: match[1].trim()
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
return JSON.stringify(results);
|
return JSON.stringify(results);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user