Jump to content

User:קיפודנחש/searchPersistence

From Wikipedia, the free encyclopedia

This script saves the "Search and replace" dialog box contents (The dialog box which opens when clicking the rightmost button in the "Advanced" toolbar in Edit Source), so the next time you open this dialog, it retains the content of the fields: "Search for", "Replace with", "Match case" and "Treat search string as a regular expression".

Use case

It can be useful when you want to make the same replacement in multiple pages (for instance, correct internal link after page move). It saves the need to re-type the search and replacement string repeatedly.

Limitations

As mentioned, this is done using cookies. As a result, this persistence is limited to the computer and browser, and will go away after 30 days.