2016-09-29 60 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,雙擊它並編輯所需的標籤數量。