March 16, 2005
Google Toolbar Part V
Hopefully this will be the final iteration of changes I have to make to the googlefix script. A few months ago, Google changed how AutoFill works, rendering my previous script useless. I came up with a new fix, except that there was one minor problem which several readers were kind enough to point out—though it works fine on initial page loads and refreshes, it does not work on pages navigated to via the forward or back buttons.
With one minor change, the problem has now been solved... in conjunction with adding the onpropertychange event handler to each input when the document loads, we now reset the color of each one as well. The reason is that when you navigate back to a page using the script, the page is loaded from memory with the Google colors already set, thus bypassing the onpropertychange event. So by resetting the colors when the onload event occurs, we avoid the problem altogether.
Download the latest version.Posted by jon at March 16, 2005 12:22 AM