0
我如何在不同的網站上設置不同的縮放級別。我可以使用window.location的擺脫Chrome地址欄中的網址,並設置縮放級別爲特定的網站我怎麼能修改此代碼使用了window.location或window.location.href修復鍍鉻縮放問題
function zoom(zp) {
page = document.getElementsByTagName('html')[0]
if (page != null) {
page.style.zoom = zp + "%";
}
}
chrome.extension.sendRequest(
{"type": "setZoom"},
function(zp) {
zoom(zp);
}
);