greppr fix (319640cd77)

fix wikipedia crash
(cdf958d293)

fix MDN answers not rendering properly (2d63475b07)

these comments were too long (ae31274db9)

re-added stackoverflow instant answers (20ef5b3e3a)

doc config changes number twoo
(362cf61508)

remove backtick (2ca8fb0006)

add more hacks (da1ea1d6e8)

this was so much pain to figure out (dea8b0a362)

i always forget the fucking config (4215f2678d)

fix syntax highlighter (2c2bd28a9f)

fix #2 for real this time (7c970031d0)

added cara.app (acd02d83d4)
This commit is contained in:
FbIN Support 2025-08-13 20:38:31 +05:30
commit 29e1532be0
7 changed files with 1557 additions and 430 deletions

View file

@ -403,27 +403,28 @@ class frontend{
$text =
trim(
preg_replace(
'/<\/span>$/',
"", // remove stray ending span because of the <?php stuff
'/<code [^>]+>/',
"",
str_replace(
[
'<br />',
'&nbsp;'
"<br />",
"&nbsp;",
"<pre>",
"</pre>",
"</code>"
],
[
"\n", // replace <br> with newlines
" " // replace html entity to space
],
str_replace(
[
// leading <?php garbage
"<span style=\"color: c-default\">\n&lt;?php&nbsp;",
"<code>",
"</code>"
],
"\n",
" ",
"",
highlight_string("<?php " . $text, true)
)
"",
""
],
explode(
"&lt;?php",
highlight_string("<?php " . $text, true),
2
)[1]
)
)
);
@ -951,7 +952,6 @@ class frontend{
"mojeek" => "Mojeek",
"baidu" => "Baidu",
"coccoc" => "Cốc Cốc",
//"sepiasearch" => "Sepia Search",
//"solofield" => "Solofield",
"marginalia" => "Marginalia",
"wiby" => "wiby",
@ -975,6 +975,7 @@ class frontend{
"baidu" => "Baidu",
//"solofield" => "Solofield",
"pinterest" => "Pinterest",
"cara" => "Cara",
"flickr" => "Flickr",
"fivehpx" => "500px",
"vsco" => "VSCO",
@ -991,6 +992,7 @@ class frontend{
"option" => [
"yt" => "YouTube",
"vimeo" => "Vimeo",
//"odysee" => "Odysee",
"sepiasearch" => "Sepia Search",
//"fb" => "Facebook videos",
"ddg" => "DuckDuckGo",