Chrome Context Menu Items
Hide, add, group, and reorder Chrome context menu items, restyle Chrome's menus, and tweak tabs and extension buttons
Author: DanRotaru
Clean up and restyle Google Chrome's menus: hide the built-in context menu
entries you never use, add your own commands, group extension entries into one
submenu, and change how menus, tabs and extension buttons look.

Designed for 64-bit Chrome on Windows.
Features
- Hide built-in items - individually hide Back / Forward / Reload (one
toggle), Ask Gemini, Print, Cast, Save page
as, Open in reading mode, Search with Google Lens, Send to your devices, Create
QR Code, Translate, Translate selection, View page source, Save link as, Open
link in split view and Search image with Google Lens. Optional toggles (off by
default) also cover Search Google for, Copy link to highlight, Open link in new
/ incognito window, Open link as another profile, Picture in picture, Loop /
Show controls, Emoji, Spell check / Writing direction, Password manager /
Autofill entries and Inspect.
- Hide by label - hide any page menu entry whose label contains a piece of
text, ignoring case. Works for Chrome commands, extension entries, submenus and
your own items (up to 64 rules).
- Custom commands - add up to 64 entries to the page right-click menu. Each
one opens a program, document, folder or URL, with optional arguments, working
directory and environment variables such as
%USERPROFILE%, and can run as
administrator or in a minimized, maximized or hidden window.
- Context placeholders - pass what you right-clicked to a custom command:
{url} (link), {page}, {title}, {selection}, {src} (image, video or
audio) and {frame} (the clicked frame, or the page outside frames). For
example, "{url}" as the arguments of firefox.exe opens a link in Firefox,
and https://www.deepl.com/translator#auto/en/{selection} translates the
selected text. Placeholders inside a URL are URL-encoded. An entry that uses
{url}, {selection} or {src} only appears when there is something to
pass, and one whose address is too long to pass (such as an inline data:
image) is hidden.
- Per-site commands - show a custom command only on matching pages, for
example
github.com or youtube.com/watch*.
- Chrome's original menu on demand - optionally hold Ctrl+Shift (or a
shortcut of your choice) while opening the page menu to see it without the
mod's hidden entries, custom commands, groups and appearance changes (on by
default).
- Custom items group - optionally put your custom commands into one submenu
with a label of your choice.
- Extensions submenu - move all extension commands into a single
Extensions submenu, keeping their icons, submenus, checked states and
actions.
- Precise ordering - place custom items, the Custom group and the Extensions
submenu at an exact position:
1, 2, ... from the top, -1, -2, ... from the
bottom, or 0 to append.
- Menu appearance - font size, item spacing, item corner radius, group
padding, top / bottom spacing, custom background colors, background
transparency and a custom group border.
- Choose which menus to style - page right-click, the three-dot menu, tab
menus, bookmark menus and all other Chrome menus, each with their submenus.
- Less clutter - hide leading icons (everywhere, or only in the main page
menu) and keyboard shortcut labels, without disabling the shortcuts.
- Tabs and toolbar - tab title font size, hidden tab close buttons, tab
icon-to-title spacing and extension button width.
Placeholders and safety
The page decides the placeholder values, so the mod limits where they can go:
- In Program, document, or URL, placeholders work inside a URL you typed
(after
://). A placeholder can also be the whole start of the program, such
as {url} to open a link in its default app, but then only http and
https addresses are accepted. On other links (file:, mailto:, app
protocols) the entry is hidden, so a page can never pick the program, file or
protocol that runs.
- In Arguments, values are quoted for the usual Windows command-line rules,
so
"{selection}" stays one argument. Batch files (.bat, .cmd),
cmd.exe, PowerShell, wsl and bash don't follow those rules and can run
page text as commands, so an entry that passes placeholders to one of them is
not run (the mod log says why). The same applies to a shortcut or a launcher
that starts one of them, which the mod can't detect: don't set those up.
- A value that starts with
- is still read as an option by the program, even
inside quotes. Put -- before placeholders if the program supports it, for
example yt-dlp.exe with -- "{page}".
Screenshots
Hiding built-in context menu items:

Hiding any item by its label, including extension entries:

Grouping extension commands into one Extensions submenu:

Default configuration
Out of the box the mod:
- Styles all menu families with an item corner radius of 8, group padding of 4,
top / bottom spacing of 6 and a
#3b3b3b group border. Background
transparency is off.
- Hides Ask Gemini, Print, Cast, Save page as, Open in reading mode, Search with
Google Lens, Send to your devices, Create QR Code, both Translate entries, Open
link in split view and Search image with Google Lens. Back / Forward /
Reload, View page source and Save link as stay visible.
- Hides icons in the main page right-click menu and keyboard shortcut labels.
- Groups extension commands into an Extensions submenu, second-last.
- Adds no custom commands and leaves tabs and extension buttons at Chrome's
defaults.
Everything is configurable in the mod settings. Use Chrome default or
disable an option to restore its normal behavior.
How it works
The mod hooks Chrome's own menu code in chrome.dll: the page context menu
(RenderViewContextMenu) to hide, add, group and reorder entries, and the
shared Views menu classes to change fonts, spacing, colors and borders. Tab and
toolbar tweaks hook Chrome's tab and toolbar views.
These functions aren't exported, so their addresses come from Chrome's debug
symbols, which Windhawk downloads from Chromium's symbol server. The download is
several gigabytes and happens once for each new Chrome build; Windhawk caches
the result, so later launches of the same build start right away. Every hook is
matched by its full decorated name, so if Chrome changes a function's signature,
that feature is simply unavailable instead of being hooked with the wrong
arguments.
If preparing a new build takes longer than 5 seconds, Chrome starts without the
mod's changes and a tray icon reports the progress. Restart Chrome once it says
setup is complete.
The context placeholders come from the details Chrome hands to the page menu
when it opens. The page title is read through Chrome's own WebContents
functions. The link, selection, media, page and frame addresses are fields of
Chrome's context menu data, located for Chrome 157. On every menu the mod checks
that each field looks like a valid address or text, and that the page address
read there matches the address Chrome reports for the tab. If a Chrome update
moves the fields, these checks hide the entries that need them in nearly all
cases. They can't prove every field is right: a change that only moves the
fields after the page address could still pass {frame} the wrong address.
Notes
- Close and reopen menus after changing settings. Open menus are closed when the
mod is disabled or updated.
- If the mod is disabled while the debug symbols for a new Chrome build are
still downloading, Windhawk waits for the download to finish before unloading
the mod, which can take several minutes.
- The tab, extension button and menu font / spacing / corner radius options
overlap with Chrome Native UI Tweaks. If you use both mods, configure each of
those options in one mod only and leave it at Chrome default in the other.
- This mod started from Chrome Native UI Tweaks
by Dron007 - thanks!