2016-09-29 79 views
0

我经常需要在firefox中的标签中的某个页面打开〜40-50个链接。绕过打开链接js限制

我正在为此编写用户脚本,但有问题。 Firefox默默不允许打开超过20个选项卡。有什么办法可以绕过这个限制吗?它是供个人使用的,所以如果可以帮助的话,我可以更改浏览器设置。

我有这样的代码:

$(document).ready(function(){ 
    if ($("article").length > 19) 
    { 
     alert($("article").length); 
     // show me 40, all elements have the same structure 

     $("article").each(function() { 
      $(this).find("a").each(function(){ 
       window.open($(this).attr("href")); 
       // open only 20 tabs, no errors in console.     
      }) 
     }); 
    }       
}); 
+0

这似乎是更适合[超级用户](http://www.superuser.com)? – leigero

回答

1

可以改变在about:config部分允许的标签数量。

  • 打开一个新选项卡并键入about:config
  • 搜索pop
  • 在列表中找到dom.popup_maximum,双击它并编辑所需的标签数量。