Skip to content

Instantly share code, notes, and snippets.

@jaredhirsch
Last active October 24, 2015 01:21
Show Gist options
  • Save jaredhirsch/eb79e214a3132d8ca6c5 to your computer and use it in GitHub Desktop.
Save jaredhirsch/eb79e214a3132d8ca6c5 to your computer and use it in GitHub Desktop.

How to plug in a different little machine

  1. Open FF
  2. Install the universal search addon if you haven't already
  3. Enable the Browser Toolbox
  4. Open the browser toolbox
  5. Switch the debugger to the iframe context using this funky little menu button:
  6. Do this in the console: window.app.searchUrl = 'https://your.server.com/?q=';
  • The query term will be escaped and appended to the searchUrl
  1. Now, as you type, the second item in the top section will be fetched from your server:

Note that this modified iframe context is bound to the chrome window, so you should be able to retain the server link as long as you don't close that window or switch windows.

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