Skip to content

Instantly share code, notes, and snippets.

@gg7
Last active October 24, 2024 02:54
Show Gist options
  • Save gg7/8172378 to your computer and use it in GitHub Desktop.
Save gg7/8172378 to your computer and use it in GitHub Desktop.
Increase the number of recently shown folders (5) in chromium when adding/modifying a bookmark
diff --git a/chrome/browser/ui/bookmarks/recently_used_folders_combo_model.cc b/chrome/browser/ui/bookmarks/recently_used_folders_combo_model.cc
index 88df062..5adbc2e 100644
--- a/chrome/browser/ui/bookmarks/recently_used_folders_combo_model.cc
+++ b/chrome/browser/ui/bookmarks/recently_used_folders_combo_model.cc
@@ -14,7 +14,7 @@
namespace {
// Max number of most recently used folders.
-const size_t kMaxMRUFolders = 5;
+const size_t kMaxMRUFolders = 20;
} // namespace
@Qkhahh
Copy link

Qkhahh commented Apr 22, 2018

I now know that "github" works since I asked about this some time ago. :)
Years!
Casual user, how would I use this? Additionally my original question was also about 'pinning' chosen bookmarks of the now increased "bookmark(s) added" feature. You know, the most used ones stay available not to be moved down and away by a large series of "new folder" bookmarks created.
Think this could also be coded?

Thanks for your reply and your fix.

@varenc
Copy link

varenc commented Aug 3, 2022

Casual user, how would I use this?

Sadly this really isn't for the casual user. Instructions here. I wish the constant was configurable but it's hard coded. To make this one tiny change you have to re-compile all of Chromium. And the result will be a custom version of "Chromium" not "Google Chrome". Chromium lacks a few special things like support for viewing WideVine DRM content which is necessary to use any streaming service.

@midenok
Copy link

midenok commented Oct 24, 2024

Strange default 5 done for who? Looks like we were on top of UI design in early 2000-s until Google decided their users are idiots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment