Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ improve browser support #587

Closed
FH-Inway opened this issue Oct 15, 2021 · 11 comments
Closed

✨ improve browser support #587

FH-Inway opened this issue Oct 15, 2021 · 11 comments

Comments

@FH-Inway
Copy link
Member

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
Copy link
Collaborator

Splaxi commented Oct 17, 2021

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.

  • No Microsoft Edge installed
  • Google Chrome, installed by hand

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
Copy link
Collaborator

Splaxi commented Oct 17, 2021

The restore_on_startup property value is also important to investigate.

@Splaxi
Copy link
Collaborator

Splaxi commented Oct 17, 2021

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
Copy link
Member Author

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
Copy link
Collaborator

Splaxi commented Oct 18, 2021

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

@Splaxi
Copy link
Collaborator

Splaxi commented Mar 10, 2022

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

@FH-Inway
Copy link
Member Author

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

@Splaxi
Copy link
Collaborator

Splaxi commented May 2, 2022

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

@Splaxi
Copy link
Collaborator

Splaxi commented Dec 11, 2023

I'm on top of this one.

@Splaxi
Copy link
Collaborator

Splaxi commented Dec 12, 2023

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
Copy link
Member Author

@Splaxi Think we are done here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants