d365collaborative / d365fo.tools

Tools used for Dynamics 365 Finance and Operations
MIT License
246 stars 101 forks source link

:sparkles: improve browser support #587

Closed FH-Inway closed 4 months ago

FH-Inway commented 2 years ago

Currently, there is Set-D365FavoriteBookmark to add a bookmark for an D365FO environment or Azure DevOps org in Internet Explorer as well as show and lock the favorites toolbar.

It would be nice to extend this to the other supported browsers and by default use the default browser.

Another idea is to streamline the installation of the task recorder extension for screenshots.

Splaxi commented 2 years ago

So if this ever needs to be able to fly - we should look into this:

https://docs.microsoft.com/en-us/answers/questions/297251/adding-a-new-homepage-in-chrome-preference-file-po.html

Initial testing on a CHE.

The session property inside the Secure Preferences file seems to be the one we are looking for. The file lives inside the "$($env:LOCALAPPDATA)\google\chrome\user data\default" path

...
"session": {
        "restore_on_startup": 4,
        "startup_urls": [
            "http://www.newz.dk/"
        ]
    }
....

The path for edge is 99% the same: "$($env:LOCALAPPDATA)\edge\chrome\user data\default" the file should be the same

Splaxi commented 2 years ago

The restore_on_startup property value is also important to investigate.

Splaxi commented 2 years ago

The bookmarks file in the mentioned location are the one that we need to work against, when talking about adding bookmark.

The only thing that I fear is the checksum value inside the file.

But looking at this old Stack Overflow post: https://stackoverflow.com/questions/53941613/remove-chrome-bookmarks-with-powershell

It should be doable.

FH-Inway commented 2 years ago

Maybe we wait for the new 10.0.21 VHD to see if Edge is installed out of the box on it? It should be at some point, because Microsoft has been announcing for a while now that IE will no longer be supported.

Splaxi commented 2 years ago

I'm in favor for waiting to see what comes in terms of pre-installed browser on the latest buidl.

Splaxi commented 2 years ago

Did we ever see a new VHD released? @FH-Inway

FH-Inway commented 2 years ago

The new 10.0.24 VHD seems to have Edge preinstalled. However, CHEs still seem to come with IE.

Splaxi commented 2 years ago

Let's wait to see when the images align in terms of the default browser.

Splaxi commented 9 months ago

I'm on top of this one.

Splaxi commented 9 months ago

Working notes:

C:\Users\Admin....\AppData\Local\Microsoft\Edge\User Data\Default\Bookmarks

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

{
    "guid": "f771bd6c-d545-4225-af25-127c4112ce1e",
    "id": "2",
    "name": "DAT",
    "type": "url",
    "url": "https://devdevaos.axcloud.dynamics.com/?cmp=DAT&mi=DefaultDashboard"
}

roots.bookmark_bar.children <- Array

{
   "checksum": "643384ba009fdf0a31527f5990c79531",
   "roots": {
      "bookmark_bar": {
         "children": [ {
            "guid": "f771bd6c-d545-4225-af25-127c4112ce1e",
            "id": "2",
            "name": "DAT",
            "type": "url",
            "url": "https://devdevaos.axcloud.dynamics.com/?cmp=DAT&mi=DefaultDashboard"
         } ],

Forcing Show Fav Bar -- Always

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
"FavoritesBarEnabled"=dword:00000001

Show bar - possible to hide (C:\Users\Admin....\AppData\Local\Microsoft\Edge\User Data\Default\Preferences)

{
    "aadc_info": {
        "age_group": 0
    },
    {
....
    },
    "bookmark_bar": {
        "show_on_all_tabs": true,
        "show_only_on_ntp": false
    },
FH-Inway commented 4 months ago

@Splaxi Think we are done here.