Jump to content

Is there a way to index bookmarks on the brave browser or other chromium browser other than chrome?


Recommended Posts

I just decided it's not worth using a keyword every time to search for a bookmark, so decided to write this quick AppleScript which gets triggered from Alfred and creates a bookmark in chrome. 

 

Technically I like an input popup, but since Alfred doesn't support it, I use Typinator to do that, but you can use a simple keyword object to  get the title and url of the bookmark

 

```

property newBookmark : "{{?BookmarkURL - FULL without trailing slash}}" -- Insert the desired URL
property theTitle : "{{?bookmarkTitle}}"
property bookmarkFolder : "Bookmarks Bar" -- The bookmark folder where the new bookmark item will be created

tell application "Google Chrome"
    try
        tell active tab of window 1
            repeat while loading is true
                delay 0.3
            end repeat
        end tell
    end try
    tell its bookmark folder bookmarkFolder
        set theResult to make new bookmark item with properties {URL:newBookmark}
        set title of theResult to theTitle
    end tell
    quit

```

Link to comment

Assuming that Alfred just reads chrome bookmarks or history file and you don't use it I believe you can just symlink your brave profile directory to chrome one

 

~/Library/Application\ Support/BraveSoftware/Brave-Browser/Default -> ~/Library/Application\ Support/Google/Chrome/Default

 

ln -s ~/Library/Application\ Support/BraveSoftware/Brave-Browser/Default ~/Library/Application\ Support/Google/Chrome/Default

I don't tested it but theoretically it should work

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...