Open all links in a new tab
< 腳本Open Links in New Tab的回應
You could also just add a <base target="_blank"> tag in the page's section. It'd cover all links, as well as form submissions, yet it'd respect links that have their own target attribute set.
<base target="_blank">
target
document.head.append(Object.assign(document.createElement('base'), { target: '_blank' }));
登入以回覆
You could also just add a
<base target="_blank">
tag in the page's section.It'd cover all links, as well as form submissions, yet it'd respect links that have their own
target
attribute set.