Sign up to our newsletter to receive notifications of extension updates.

Wednesday, 25 January 2012 23:23

Search and replace chrome extension

Written by 

I've just created a search and replace extension for Google chrome that allows you to search input fields for text and replace them with a different text. I recently had to replace the same text in over 150 input fields and I wrote a script to do this. I figured that this functionality should be present in Chrome by default and so I turned the script into an extension.

 

An example of where this extension might prove useful is while writing forum posts. Perhaps after writing a lengthy post you realise that you have repeatedly spelled something wrong that isn't picked up by spell check, such as the name of an organisation. All you need to do to replace the mistake on the page is click the magnifying glass icon, type in the text you want to search for and the text you want to replace it with, and hit the "Go" button. The text will be changed in all input boxes on the page. It is currently case-insensitive so I may add functionality to allow this to be turned off or on. You can get the extension here. If it doesn't work, leave a comment saying so! You can see a video of it in action here.


Read 10075 times Last modified on Saturday, 24 November 2012 16:30

7 comments

  • Comment Link JimmyDee Thursday, 28 March 2013 09:05 posted by JimmyDee

    Doesn't work at all.

    Remembering text also does not work.

    I'm trying to use this in Joomla editing code to make some fine tuning to a site that is already populated with content.

    Dang.

  • Comment Link chris Friday, 28 September 2012 21:40 posted by chris

    Hi Amida,

    I've just updated the extension. Give it a shot now and let me know if it works.

  • Comment Link Amida Thursday, 27 September 2012 23:38 posted by Amida

    Does not work for me neither. My personal case is trying to replace a word present in several textareas in the webpage.

    As said before nice idea, hope to see it work :)

  • Comment Link chris Sunday, 23 September 2012 23:13 posted by chris

    narf, the search and replace terms should now be remembered between closing and opening of the popup for the current tab.

  • Comment Link narf Monday, 28 May 2012 07:48 posted by narf

    Nice idea but not really working well, if i copy and paste my "search" text and then click elsewhere to copy and paste my "replace" text the windows closes and is empty afterwards?

    Ist there any other plugin that fully working?

  • Comment Link chris Wednesday, 01 February 2012 10:22 posted by chris

    Hi Syd,

    What site are you trying to use it on? Someone else told me that it does not work for textarea elements. I am going to fix this in future.

  • Comment Link Syd Salmon Monday, 30 January 2012 21:21 posted by Syd Salmon

    I love the idea of this extension. Unfortunately, it's not working for me. I'm on the latest version of Chrome (16.0.912.77). I turned off ScriptNo (1.0.5.52) because I thought there might be some kind of scripting conflict, but it didn't change anything. I'm not sure what to try next.

Leave a comment

Make sure you enter the (*) required information where indicated.
Basic HTML code is allowed.