傲游浏览器4,傲游浏览器5如何一键批量打开url链接。

时间:2024-03-06 19:49:53

傲游浏览器批量打开网址的插件没用了。有很多网友发了方法也无法实现。实际上,是可以实现傲游浏览器4,傲游浏览器5一键批量打开url链接的。
我来告诉大家如何来实现。最新的M5都能使用。
在收藏夹添加一个收藏,在网址处复制填写以下代码

javascript:(function(){var texts=document.createElement(\'div\');texts.id="OpenLinks_M";texts.style.cssText=\'position:fixed;z-index:999999999;width:400px;height:350px;left:\'+(document.documentElement.clientWidth-400)/2+\'px;top:\'+(document.documentElement.clientHeight-350)/2+\'px\';texts.innerHTML=\'<textarea style="width:380px;height:300px;" id="OpenLinks" placeholder="请输入要批量打开的网址,一行一个"></textarea><br><input onclick=\\'(function(){var cts=document.getElementById("OpenLinks").value.split(/[\\r\\n]*$/gm);for(i=0;i<cts.length;i++){cts[i]=cts[i].replace(/(^[\\r\\n]*|[\\r\\n]*$)/g,"");if(cts[i]!=""&&/^((?:https?|ftp|ed2k|qvod):\\/\\/|magnet:\\?xt=)/i.test(cts[i])){window.open(cts[i]);}else{alert("该网址不是有效网址:"+cts[i]);}}document.body.removeChild(document.getElementById("OpenLinks_M"))})()\\' value="批量打开链接" type="button"/>\';document.body.appendChild(texts);})();
保存后打开,输入要批量打开的网址,即可。