Javascript 如何更改pdf、新标签或传统http:或https:链接以外的任何内容的Google Chrome标签的标题?
对于manifest.json中的权限,我将Javascript 如何更改pdf、新标签或传统http:或https:链接以外的任何内容的Google Chrome标签的标题?,javascript,google-chrome,Javascript,Google Chrome,对于manifest.json中的权限,我将 "permissions": [ "activeTab", "tabs", "http://*/*", "https://*/*" ] 在我的js文件中使用 chrome.tabs.executeScript(currTab.id,{code:"document.title = '"+str+"'"}); 其中currTab是一个tab对象,str是我想要的标题 该扩展更改了除新选项卡、PDF和chrome
"permissions":
[
"activeTab",
"tabs",
"http://*/*",
"https://*/*"
]
在我的js文件中使用
chrome.tabs.executeScript(currTab.id,{code:"document.title = '"+str+"'"});
其中currTab是一个tab对象,str是我想要的标题
该扩展更改了除新选项卡、PDF和chrome webstore页面以外的所有标题