This script explain how we can open link of site in new tab. It works on <a href>
elements only with href attribute having link to open page.
For example we will try on https://yari-demos.prod.mdn.mozit.cloud/en-US/docs/Web/HTML/Element/a/_sample_.Linking_to_an_absolute_URL.html
To open link in new tab it must have target="_blank" as attribute within <a>
element
<a href="abc.com" target="_blank">Link</a>
If a link dont have target="_blank" attribute on it you can add this through extension. Before clicking that link you need two action.
Action 1 to set attribute target to link Element Finder - //a or specific xpath of link Value - Attr::set::target::_blank Action 2 to click on link Element Finder - link xpath or element finder
- Download configuration.json below
- Import into below extension
- Refresh Page
#openlink #openlinknewtab #autoclickerextension #autoclicker #autofill