简体   繁体   中英

a href to chrome:// url in a chrome extension how to make it work

I've written a Chrome extension to use as an iframe in my own locally stored home page. I just want a way to access the basic settings, extensions, bookmarks, and so forth. I know this is denied in a standard html. I thought an api should do the trick:

onclick="chrome.tabs.create({url:'chrome://settings'});" 

but to no avail. How can I access these settings?

You cannot access chrome pages from an extension. However you could get some settings with Chrome APIs

Specifically Bookmarks API , Installed extensions API

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM