add support for displaying cucked urls

This commit is contained in:
lolcat committed 2026-11-30 23:54:44 -05:00
1 parent b120d441d5
commit eca698c94d
4 files changed
+85 -41

No files matched your search

+10
View File
@@ -473,6 +473,8 @@ class brave{
$this->fuckhtml->load($html);
$datas = $this->get_js();
//print_r($datas);
$has_found_body = false;
foreach($datas as $data){
@@ -865,6 +867,14 @@ class brave{
)
),
"url" => $this->convert_goto_to_resolver($result["url"]),
"cuckurl" =>
$result["meta_url"]["scheme"] . "://" .
$result["meta_url"]["hostname"] .
preg_replace(
'/ *› */',
"/",
$result["meta_url"]["path"]
),
"date" => $date,
"type" => "web",
"thumb" => $thumb,