javascriptbrowserbookmarks

Replace bookmark URL JavaScript


Scenario: A reporting tool run in our company has been upgraded to a newer version. It is being accessed by a URL in a browser: www.company.de/programm/v8/client/ The users were able to save browser bookmarks. I.e.: www.company.de/programm/v8/client/report1

The updated URL has changed (www.company.de/programm/new/v10/client/), thus letting all saved user-bookmarks resolve into nothingness.

My question: Is there a snippet for JS that either updates the URL string from "v8/" to "new/v10/" or at least scans to existing bookmarks inside the users bookmarks and adds new ones with a new URL (leaving the previous ones untouched)?


Solution

  • You actually can't change your bookmarks using javascript. The easiest way to do that is to change the bookmark file manually

    The Chrome one for example is located here:

    C:\Users\USERNAME\AppData\Local\Google\Chrome\User Data\Default\Bookmarks