change how new_tab is handled
This commit is contained in:
parent
2600ad5a05
commit
2c18dfc637
|
@ -462,8 +462,6 @@ class Filter:
|
|||
self._av.add(netloc)
|
||||
append_anon_view(link, self.config)
|
||||
|
||||
if self.config.new_tab:
|
||||
link['target'] = '_blank'
|
||||
else:
|
||||
if href.startswith(MAPS_URL):
|
||||
# Maps links don't work if a site filter is applied
|
||||
|
@ -482,6 +480,9 @@ class Filter:
|
|||
else:
|
||||
link['href'] = href
|
||||
|
||||
if self.config.new_tab and (link['href'].startswith('http') or link['href'].startswith('imgres?')):
|
||||
link['target'] = '_blank'
|
||||
|
||||
# Replace link location if "alts" config is enabled
|
||||
if self.config.alts:
|
||||
# Search and replace all link descriptions
|
||||
|
|
Loading…
Reference in New Issue
Block a user