Would be nice to have a trustworthy #Firefox add-on for doing search-and-replace on URLs in bookmarks, to fix up #GitLab's arbitrary renaming of "/-/issues/" to "/-/work_items/"
-
Would be nice to have a trustworthy #Firefox add-on for doing search-and-replace on URLs in bookmarks, to fix up #GitLab's arbitrary renaming of "/-/issues/" to "/-/work_items/"
The most popular add-on I found, https://addons.mozilla.org/firefox/addon/bookmarks-organizer/, can't do it. Everything else in https://addons.mozilla.org/en-US/firefox/search/?q=bookmarks+replace+url replace url seems to have a few hundred users at most…
According to "Bookmarks Organizer", I have over 18,000 bookmarks, of which 1k are GitLab issues URLs, so doing it manually would be very inefficient.
-
Would be nice to have a trustworthy #Firefox add-on for doing search-and-replace on URLs in bookmarks, to fix up #GitLab's arbitrary renaming of "/-/issues/" to "/-/work_items/"
The most popular add-on I found, https://addons.mozilla.org/firefox/addon/bookmarks-organizer/, can't do it. Everything else in https://addons.mozilla.org/en-US/firefox/search/?q=bookmarks+replace+url replace url seems to have a few hundred users at most…
According to "Bookmarks Organizer", I have over 18,000 bookmarks, of which 1k are GitLab issues URLs, so doing it manually would be very inefficient.
Et pourquoi pas exporter les bookmarks (en HTML ou en JSON), corriger avec un outils dédié puis réimporter les bookmarks ?
-
Et pourquoi pas exporter les bookmarks (en HTML ou en JSON), corriger avec un outils dédié puis réimporter les bookmarks ?
-
@cristianrasch @rnb
Yuck
But also, I fear this rugpull could go "very wrong" with Firefox Sync across multiple computers, and with extensions such as https://addons.mozilla.org/en-US/firefox/addon/snoozetabs/ (which uses bookmarks behind the scenes) -
@cristianrasch @rnb
Yuck
But also, I fear this rugpull could go "very wrong" with Firefox Sync across multiple computers, and with extensions such as https://addons.mozilla.org/en-US/firefox/addon/snoozetabs/ (which uses bookmarks behind the scenes)I've done a lot of export import of bookmarks between browsers over the years without problems (except with Gnome Epiphany)
The size (18 000 bookmarks
) should not be a problem, but I don't know how Firefox Sync will react.Maybe a "dryrun" with a dedicated firefox profile to see how it goes.
-
Would be nice to have a trustworthy #Firefox add-on for doing search-and-replace on URLs in bookmarks, to fix up #GitLab's arbitrary renaming of "/-/issues/" to "/-/work_items/"
The most popular add-on I found, https://addons.mozilla.org/firefox/addon/bookmarks-organizer/, can't do it. Everything else in https://addons.mozilla.org/en-US/firefox/search/?q=bookmarks+replace+url replace url seems to have a few hundred users at most…
According to "Bookmarks Organizer", I have over 18,000 bookmarks, of which 1k are GitLab issues URLs, so doing it manually would be very inefficient.
@nekohayo
Don't know of any extension, sorry.My own approach for a similar migration was to fix this up directly in the history/bookmarks database:
- Quit Firefox
- Find the places.sqlite file in your profile
- Make a backup!
- Type: sqlite3 places.sqlite
- Type: update moz_places set url = replace(url, '/-/issues?', '/-/work_items?');
- Quit with Ctrl-DThis will fix both bookmarks and the history. Unfortunately I have no clue how Firefox Sync will react to this stunt.
-
Would be nice to have a trustworthy #Firefox add-on for doing search-and-replace on URLs in bookmarks, to fix up #GitLab's arbitrary renaming of "/-/issues/" to "/-/work_items/"
The most popular add-on I found, https://addons.mozilla.org/firefox/addon/bookmarks-organizer/, can't do it. Everything else in https://addons.mozilla.org/en-US/firefox/search/?q=bookmarks+replace+url replace url seems to have a few hundred users at most…
According to "Bookmarks Organizer", I have over 18,000 bookmarks, of which 1k are GitLab issues URLs, so doing it manually would be very inefficient.
YOLO I guess, I was not going to be doing manual database surgery nor manually editing a thousand bookmarks, so ended up using https://addons.mozilla.org/firefox/addon/bookmark-url-batch-replacer/ and hoping that it can be trusted.
That UI is sketchy as hell, but it seems like "/-/issues/" and "/-/work_items/" did not trigger any regexes.

-
@cristianrasch @rnb
Yuck
But also, I fear this rugpull could go "very wrong" with Firefox Sync across multiple computers, and with extensions such as https://addons.mozilla.org/en-US/firefox/addon/snoozetabs/ (which uses bookmarks behind the scenes)Here's a really simple firefox extension that could do the trick.
__Test__ and __backups__ before of course.
-
YOLO I guess, I was not going to be doing manual database surgery nor manually editing a thousand bookmarks, so ended up using https://addons.mozilla.org/firefox/addon/bookmark-url-batch-replacer/ and hoping that it can be trusted.
That UI is sketchy as hell, but it seems like "/-/issues/" and "/-/work_items/" did not trigger any regexes.

@nekohayo
Did you try escaping slashes? (\/) -
YOLO I guess, I was not going to be doing manual database surgery nor manually editing a thousand bookmarks, so ended up using https://addons.mozilla.org/firefox/addon/bookmark-url-batch-replacer/ and hoping that it can be trusted.
That UI is sketchy as hell, but it seems like "/-/issues/" and "/-/work_items/" did not trigger any regexes.

@nekohayo this is a small hearbreak and horror for those of us who just spent a few months writing immutable bookmark managers.

-
R relay@relay.infosec.exchange shared this topic