2 Set a default bookmarks folder
Liam Hupfer edited this page 2022-03-30 21:57:04 -05:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

To store bookmarks in a particular folder by default, you can override the a binding with the following snippet, changing /Mobile Bookmarks/ to your preferred path as needed:

bind a composite js document.location.href + ' /Mobile Bookmarks/' + document.title.replace(new RegExp('/','g'), '') | fillcmdline_notrail bmark

This uses the page title as the default bookmark title, replacing slashes in the title with a similar Unicode character (full-width slash) to prevent Tridactyl from interpreting them as additional path separators.