XengShi / materialYouNewTab

A Simple New Tab ( browsers's home page ) inspired with Google's 'Material You' design
https://xengshi.github.io/materialYouNewTab/
1.38k stars 128 forks source link

add bookmarks to shortcuts #129

Open showthesunli opened 3 days ago

showthesunli commented 3 days ago

I want add chrome://bookmarks/ in shortcuts, but it automatically adds https to the beginning of the link.

image

image

prem-k-r commented 3 days ago

I tried to fix it by removing the automatic addition of https:// for internal pages, but when testing in Chrome, I'm getting the following error: "Not allowed to load local resource: chrome://bookmarks/."

I Googled and found out that we cannot navigate to internal pages (such as chrome://bookmarks/) directly from any Chrome extension because of security restrictions and privacy reasons. The same applies to edge://, brave://, and opera://. While direct access is not possible, there might be indirect methods to achieve similar functionality, though I'm not certain what they are.

showthesunli commented 3 days ago

I attempted to resolve it by disabling the automatic addition of https:// for internal pages, but upon testing in Chrome, I encountered the following error: "Not allowed to load local resource: chrome://bookmarks/."

I searched online and discovered that it's not possible to directly navigate to internal pages (such as chrome://bookmarks/) from any Chrome extension due to security constraints and privacy concerns. This rule applies to edge://, brave://, and opera:// as well. Although direct access isn't feasible, there could be alternative methods to accomplish a similar outcome, but I'm unsure of what those might be.

I am not aware of Chrome's restrictions on extensions. I think this issue should be closed.

prem-k-r commented 3 days ago

I attempted to resolve it by disabling the automatic addition of https:// for internal pages, but upon testing in Chrome, I encountered the following error: "Not allowed to load local resource: chrome://bookmarks/." I searched online and discovered that it's not possible to directly navigate to internal pages (such as chrome://bookmarks/) from any Chrome extension due to security constraints and privacy concerns. This rule applies to edge://, brave://, and opera:// as well. Although direct access isn't feasible, there could be alternative methods to accomplish a similar outcome, but I'm unsure of what those might be.

I am not aware of Chrome's restrictions on extensions. I think this issue should be closed.

nah, leave it open, it is possible some other way.