Been trying to automatically open specific links in a div on a new tab when the page is loaded. I can't edit the links to add ids or classes (cause I'm using tampermonkey
), it would have been much easier this way:
<div class="Joblist">
<a href="http://example.com/car_wash">Car Wash</a>
<a href="http://example.com/Cleaning">Cleaning</a>
<a href="http://example.com/Tow_Car">Tow Car</a>
<a href="http://example.com/Babysit">Babysit</a>
</div>
In this case, Car wash or car-related job link will be automatically open in new tab when the page is loaded. Any help with this in JavaScript? It would be very kind of you and much appreciated.