change the number of recently used bookmark folders

User Help for Mozilla Firefox
Post Reply
9661
Posts: 1
Joined: December 8th, 2017, 9:42 pm

change the number of recently used bookmark folders

Post by 9661 »

Is it possible to change the number of recently used bookmark folders?
i really want this function ! Why they wouldn't make this an internal option is stupid.
Reference link
https://superuser.com/questions/857181/ ... rk-folders
https://addons.mozilla.org/ja/firefox/a ... t-folder-/

Image
User avatar
LIMPET235
Moderator
Posts: 39952
Joined: October 19th, 2007, 1:53 am
Location: The South Coast of N.S.W. Oz.

Re: change the number of recently used bookmark folders

Post by LIMPET235 »

Moving this to Firefox Support...
[Ancient Amateur Astronomer.]
Win-10-H/64 bit/500G SSD/16 Gig Ram/450Watt PSU/350WattUPS/Firefox-115.0.2/T-bird-115.3.2./SnagIt-v10.0.1/MWP-7.12.125.

(Always choose the "Custom" Install.)
morat
Posts: 6421
Joined: February 3rd, 2009, 6:29 pm

Re: change the number of recently used bookmark folders

Post by morat »

WebExtensions cannot override a chrome file provided by the application.
morat
Posts: 6421
Joined: February 3rd, 2009, 6:29 pm

Re: change the number of recently used bookmark folders

Post by morat »

You could override the editBookmarkOverlay.js file with a chrome registration hack. (for advanced users only)

Chrome Registration
http://developer.mozilla.org/docs/Mozil ... gistration

You would need to redo the chrome.manifest file and chrome_registration_hack_editBookmarkOverlay_*.js file each time the application updates since the editBookmarkOverlay.js file may change each time the application updates.

* command prompt

Code: Select all

cd /d C:\Program Files\Mozilla Firefox
copy chrome.manifest chrome.manifest.backup
notepad chrome.manifest
notepad chrome_registration_hack_editBookmarkOverlay_58_0_2.js
* chrome.manifest

Code: Select all

# this line is a comment

# Source file: view-source:chrome://browser/content/places/editBookmarkOverlay.js
# Find what: const MAX_FOLDER_ITEM_IN_MENU_LIST = 5;
# Replace with: const MAX_FOLDER_ITEM_IN_MENU_LIST = 10;

override chrome://browser/content/places/editBookmarkOverlay.js chrome_registration_hack_editBookmarkOverlay_58_0_2.js appversion=58.0.2 application={ec8030f7-c20a-464f-9b0e-13a3a9e97384}
* chrome_registration_hack_editBookmarkOverlay_58_0_2.js

(copy source in browser, paste and edit source in notepad)

And remember to save the files in ANSI or UTF-8 without a BOM.

Firefox 58.0.2
Windows 7 SP1 32-bit
Post Reply