From c80d6d7f2842e7e07bd2b070d975f898f23b54dd Mon Sep 17 00:00:00 2001 From: hackademix Date: Mon, 25 Feb 2019 13:04:09 +0100 Subject: Fixed bug preventing javascript: URLs from being correctly processed. --- main_background.js | 1 + 1 file changed, 1 insertion(+) (limited to 'main_background.js') diff --git a/main_background.js b/main_background.js index 324c68e..ebf9358 100644 --- a/main_background.js +++ b/main_background.js @@ -1086,6 +1086,7 @@ async function editHtml(html, documentUrl, tabId, frameId, whitelisted){ edited = dejaVu.get(key); } else { let url = `view-source:${documentUrl}#line${line}(<${element.tagName} ${name}>)\n${encodeURIComponent(value.trim())}`; + if (name === "href") value = decodeURIComponent(value); edited = await get_script(value, url, tabId, whitelist.contains(documentUrl)); dejaVu.set(key, edited); } -- cgit v1.2.3