Open YouTube links in MPC-HC via bookmarklet

  1. Install the watch.exe script as C:\watch.exe.

  2. Register the watch: protocol handler in the registry by downloading and running watch.reg or copying it from here:

    REGEDIT4

    [HKEY_CLASSES_ROOT\watch]
    @="URL:watch Protocol"
    "URL Protocol"=""

    [HKEY_CLASSES_ROOT\watch\shell]

    [HKEY_CLASSES_ROOT\watch\shell\open]

    [HKEY_CLASSES_ROOT\watch\shell\open\command]
    @="\"C:\\watch.exe\" \"%1\""
  3. Copy the contents of watch.js to a bookmark in your web browser. It supports the following features:

    1. Single-click the bookmark to convert all links on the page to watch: links.
    2. Single-click it again to revert the links. (This also happens automatically when you click a link.)
    3. Double-click the bookmark to open the current page as a watch: link.

Appendix: Search results pages

The bookmarklet will not work on Google’s default search results page. This is because the links there are not actually links directly to the results, but to another Google address that, after logging your selection, redirects you to the corresponding page.

Thus, in order to use the bookmarklet on Google’s results page, you need to install a web browser add-on or user script that removes this intermediary address from each link, replacing it with the real address of the destination. Here are a few suggestions:

DuckDuckGo performs similar link redirection in some cases, but it can be disabled here.