diff --git a/manifest.json b/manifest.json index e6e0875..f67ce59 100644 --- a/manifest.json +++ b/manifest.json @@ -10,7 +10,6 @@ "128": "icons/128.png" }, "permissions": [ - "webNavigation", "webRequest", "webRequestBlocking", "http://*/maps/embed*", diff --git a/replace.js b/replace.js index c830745..8893128 100644 --- a/replace.js +++ b/replace.js @@ -12,17 +12,6 @@ const matcher = new RegExp( `^(https?:\/\/)?(maps\.google\.(${gLocales.join('|')})\/maps\/?\?.*output=embed|(www\.)?google\.(${gLocales.join('|')})\/maps\/embed\/?\?)` ); -function editFrame(tabId, frameId) { - browser.webNavigation.getFrame({ - tabId: tabId, - frameId: frameId - }).then( - (frameDetails) => { - console.log(frameDetails); - frameDetails.scrolling = 'no'; // trying to manipulate iframes attributes: not working - } - ); -} function redirect(req) { if (req.url.match(matcher)) { @@ -30,7 +19,6 @@ function redirect(req) { console.log(req); console.log(params); - //editFrame(req.tabId, req.frameId); return { redirectUrl: 'https://www.openstreetmap.org/export/embed.html?bbox=-12.041015625000002%2C44.32384807250689%2C27.465820312500004%2C57.397624055000456&layer=mapnik'