File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ def to_google(url):
5252def to_duckduckgo (url ):
5353 return f'duckduckgo.com##.react-results--main > li:has(a[href*="{ regex_to_domain (url )} "])'
5454
55+ def to_duckduckgo_lite (url ):
56+ return f'lite.duckduckgo.com##tbody > tr:has(> td > a[href*="{ regex_to_domain (url )} "]):xpath(self::* | following-sibling::*[position() <= 3])'
57+
5558def to_brave (url ):
5659 return f'search.brave.com###results > div:has(a[href*="{ regex_to_domain (url )} "])'
5760
@@ -155,6 +158,10 @@ def get_common_filters_header(name):
155158 "name" : "DuckDuckGo" ,
156159 "formater" : lambda url : to_duckduckgo (url ) + LINE_SEP
157160 },
161+ "duckduckgo_lite" : {
162+ "name" : "DuckDuckGo Lite" ,
163+ "formater" : lambda url : to_duckduckgo_lite (url ) + LINE_SEP
164+ },
158165 "google_duckduckgo" : {
159166 "name" : "Google+DuckDuckGo" ,
160167 "formater" : lambda url : to_google (url ) + LINE_SEP + to_duckduckgo (url ) + LINE_SEP
@@ -173,7 +180,7 @@ def get_common_filters_header(name):
173180 },
174181 "all_search_engines" : {
175182 "name" : "All Search Engines" ,
176- "formater" : lambda url : to_google (url ) + LINE_SEP + to_duckduckgo (url ) + LINE_SEP + to_brave (url ) + LINE_SEP + to_startpage (url ) + LINE_SEP + to_ecosia (url ) + LINE_SEP
183+ "formater" : lambda url : to_google (url ) + LINE_SEP + to_duckduckgo (url ) + LINE_SEP + to_duckduckgo_lite ( url ) + LINE_SEP + to_brave (url ) + LINE_SEP + to_startpage (url ) + LINE_SEP + to_ecosia (url ) + LINE_SEP
177184 }
178185}
179186
You can’t perform that action at this time.
0 commit comments