【发布时间】:2016-02-24 05:46:44
【问题描述】:
我正在尝试使用扩展程序覆盖 chrome 中的历史记录页面。我在 manifest.json 文件中设置了覆盖页面选项并创建了一个新的 history.html 文件。扩展程序运行完美,历史页面现在显示为空白。我需要在我的新覆盖页面 history.html 页面中列出所有历史记录。有没有办法做到这一点?
这是我的 manifest.json 文件。
{
"name": "Recently visited urls",
"version": "1.0",
"description": "Recently visited urls",
"content_scripts": [{
"matches": ["<all_urls>"],
"js": ["popup.js"]
}],
"background": {
"scripts": ["jquery.js","background.js"],
"persistent": false
},
"browser_action": {
"default_title": "Recently visited urls",
"default_popup": "popup.html",
"default_icon": "clock.png"
},
"permissions": [
"history",
"downloads"
],
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
"chrome_url_overrides": {
"history": "history.html"
},
"manifest_version": 2
}
提前致谢!
【问题讨论】:
标签: google-chrome-extension browser-history