Skip to content

Instantly share code, notes, and snippets.

@Swarag-N
Created June 2, 2026 07:01
Show Gist options
  • Select an option

  • Save Swarag-N/d0971ea48fee1d6dde6c10b84cdd7e4c to your computer and use it in GitHub Desktop.

Select an option

Save Swarag-N/d0971ea48fee1d6dde6c10b84cdd7e4c to your computer and use it in GitHub Desktop.
You can assign a keyword shortcut directly to your Chrome search engines to format links

Chrome Address Bar Shortcut: Copy Page as Markdown

Quickly copy any web page's title and URL as a formatted [Title](URL) Markdown link without using browser extensions.

Setup Instructions

  1. Open Chrome settings by navigating to: chrome://settings/searchEngines
  2. Scroll down to the Site search section and click Add.
  3. Fill out the fields with the following details:
    • Search engine: Copy Markdown
    • Keyword: cm (or md)
    • URL with %s in place of query: Paste the exact code block below:
javascript:window.prompt("Press Ctrl+C to copy Markdown link", '[' + document.title + '](' + document.location.href + ')');void(0);
  1. Click Save.

How to Use It

  1. Navigate to any website you want to link.
  2. Click into your Chrome address bar (or press Ctrl + L / Cmd + L).
  3. Type cm and press Enter.
  4. A pop-up window will appear with your pre-formatted Markdown link already highlighted.
  5. Press Ctrl + C (or Cmd + C) to copy it, then click OK to close the window.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment