Menu

[ea00bd]: / web-browsers / Get-Bookmarks.PS1  Maximize  Restore  History

Download this file

25 lines (22 with data), 679 Bytes

#
# Get-Bookmarks.ps1 - EXAMPLE
#
# Be mindful of your Chrome path... it can be either 'Chrome' or 'Chrome Beta'... If serious, do a check
#    first to find the one you want (Bookmarks is a file)...
#
$bm_r=(get-content "$Env:LOCALAPPDATA\Google\Chrome Beta\User Data\Default\Bookmarks" | convertfrom-json )
$myurl='{
  "children": [ {
    "date_added": "13124909760852901",
    "id": "2",
    "meta_info": {
      "last_visited_desktop": "13183585686622768"
    },
    "name": "Google",
    "type": "url",
    "url": "https://google.com"
  } ]
}'
$myurl_r = ConvertFrom-Json $myurl 


$bm_r.roots.bookmark_bar.children[0]=$myurl_r.children[0]

ConvertTo-Json $bm_r -depth 10
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.