Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!

Firefox - Manual fix

By: a guest on Aug 14th, 2012  |  syntax: HTML  |  size: 1.04 KB  |  views: 246  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. //FIND
  2. <form name="searchForm" id="searchForm" onsubmit="onSearchSubmit(event)">
  3.           <div id="searchLogoContainer"><img id="searchEngineLogo"/></div>
  4.           <input type="text" name="q" value="" id="searchText" maxlength="256"
  5.                 autofocus="autofocus"/>
  6.           <input id="searchSubmit" type="submit" value="&abouthome.searchEngineButton.label;"/>
  7. </form>
  9. //CHANGE IT TO:
  11. <form name="searchForm" id="searchForm" method="get" action="">
  12.         <div id="searchLogoContainer"><img id="searchEngineLogo"/></div>
  13.         <input type="text" name="q" value="" id="searchText" maxlength="256"
  14.                 autofocus="autofocus"/>
  15.         <input id="searchSubmit" type="submit" value="&abouthome.searchEngineButton.label;"/>
  16. </form>
  18. /*WHAT THIS DOES: It changes the form submission from the built in javascript (which is what breaks) into a plain html form that defaults to google (but can be changed).*/
  19. /*for example, to set it to yahoo, change the name="q" to name="p" and action to ""*/
clone this paste RAW Paste Data