Open Links in New Tab

Open all links in a new tab

< 脚本 Open Links in New Tab 的反馈

提问 / 留言

§
发布于:2023-08-24

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.

document.head.append(Object.assign(document.createElement('base'), { target: '_blank' }));

发布留言

登录以发布留言。