mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
d
This commit is contained in:
parent
eeefe60652
commit
41873a4d63
2 changed files with 2 additions and 2 deletions
|
@ -1277,7 +1277,7 @@ for (let i = 0; i < elements.length; i++) {
|
|||
if (elementType && (elementType == "代码块" || element.title||element.alt||element.getAttribute('aria-label'))){
|
||||
elementDescription += elementType;
|
||||
if (element.title) {
|
||||
if(element.title.includes('avatar') || dismiss.includes((element.title.toLowerCase()))) continue;
|
||||
if(element.title.indexOf('avatar') != -1 || dismiss.includes((element.title.toLowerCase()))) continue;
|
||||
elementDescription += `:“${element.title}”`;
|
||||
}
|
||||
else if (element.alt||element.getAttribute('aria-label')) {
|
||||
|
|
|
@ -1277,7 +1277,7 @@ for (let i = 0; i < elements.length; i++) {
|
|||
if (elementType && (elementType == "代码块" || element.title||element.alt||element.getAttribute('aria-label'))){
|
||||
elementDescription += elementType;
|
||||
if (element.title) {
|
||||
if(element.title.includes('avatar') || dismiss.includes((element.title.toLowerCase()))) continue;
|
||||
if(element.title.indexOf('avatar') != -1 || dismiss.includes((element.title.toLowerCase()))) continue;
|
||||
elementDescription += `:“${element.title}”`;
|
||||
}
|
||||
else if (element.alt||element.getAttribute('aria-label')) {
|
||||
|
|
Loading…
Add table
Reference in a new issue