Skip to content

pigjr/firefox-force-reload-all

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

firefox-force-reload-all

Add-on link on Addons.mozilla.org

This is a Firefox web-ext add-on for Firefox Android only. It provides a "Force Reload All" menu item, clicking which will activate and reload all tabs one by one, effectively force reload all tabs.

Feature / Use Case

Firefox Android provides a convenient feature called Tab Queue. It allows user to "open links in the background without leaving the app you're on". A good use of this feature is as following:

  1. User opens RSS reader while offline
  2. RSS reader only provides article summary, user finds a few articles interesting and clicks the link to send them to Firefox Tab Queue
  3. Those articles stays in Firefox's background and are not loaded
  4. When user goes back online, they switch to Firefox and start deep reading the previous queued articles
  5. Now, user will have to WAIT for each article to load after clicking its tab, because they are not loaded in background

This add-on wants to solve the pain point explained in 5. above. Once user clicks the menu item provided by this add-on. All tabs will be force-reloaded, maximally utilize the active network.

Functionality

Clicking the menu item provided by this add-on will trigger the following flow:

  1. Query for all tabs via tabs.query()
  2. For each tab: a. Make it active via tabs.update() b. Trigger a reload via tabs.reload() c. Wait 100ms before cycle to the next tab
  3. After the whole cycle is done, Firefox will continue to load all tabs' content

There are a few "reload all" add-ons on Addons.mozilla.org (AMO), however they don't resolve the above pain point because they don't activate the tabs so they will stay in background and not loaded.

About

A Firefox web-ext add-on

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published