<!DOCTYPE html>
<html>
<head>
    <title>批量打开链接</title>
</head>
<body>
    <h1>批量打开链接</h1>
    <p>请输入链接,每行一个:</p>
    <textarea id="links" rows="10" cols="50"></textarea>
    <br>
    <button onclick="openLinks()">打开链接</button>

    <script>
        function openLinks() {
            var links = document.getElementById("links").value.split("\n");
            for (var i = 0; i < links.length; i++) {
                window.open(links[i]);
            }
        }
    </script>
</body>
</html>