diff options
author | hahnmichaelf <hahn.michael.f@gmail.com> | 2018-08-13 06:57:58 +0800 |
---|---|---|
committer | hahnmichaelf <hahn.michael.f@gmail.com> | 2018-08-13 06:57:58 +0800 |
commit | 9666eaba668f7b288c42366ba04add951e6aa3b5 (patch) | |
tree | a3c1258968a7e9d83b76324679bbad947c63ffda /app/scripts | |
parent | e2be22a4b722df608cb764042cc8ade6664414d8 (diff) | |
download | tangerine-wallet-browser-9666eaba668f7b288c42366ba04add951e6aa3b5.tar tangerine-wallet-browser-9666eaba668f7b288c42366ba04add951e6aa3b5.tar.gz tangerine-wallet-browser-9666eaba668f7b288c42366ba04add951e6aa3b5.tar.bz2 tangerine-wallet-browser-9666eaba668f7b288c42366ba04add951e6aa3b5.tar.lz tangerine-wallet-browser-9666eaba668f7b288c42366ba04add951e6aa3b5.tar.xz tangerine-wallet-browser-9666eaba668f7b288c42366ba04add951e6aa3b5.tar.zst tangerine-wallet-browser-9666eaba668f7b288c42366ba04add951e6aa3b5.zip |
base - working. fixes #4774
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/contentscript.js | 2 | ||||
-rw-r--r-- | app/scripts/esdb-replace.js | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js index e0a2b0061..60ef97e5e 100644 --- a/app/scripts/contentscript.js +++ b/app/scripts/contentscript.js @@ -199,5 +199,5 @@ function blacklistedDomainCheck () { function redirectToPhishingWarning () { console.log('MetaMask - routing to Phishing Warning component') const extensionURL = extension.runtime.getURL('phishing.html') - window.location.href = extensionURL + window.location.href = extensionURL + "#" + window.location.hostname } diff --git a/app/scripts/esdb-replace.js b/app/scripts/esdb-replace.js new file mode 100644 index 000000000..ae5991586 --- /dev/null +++ b/app/scripts/esdb-replace.js @@ -0,0 +1,5 @@ +window.onload = function() { + if (window.location.pathname === "/phishing.html") { + document.getElementById("esdbLink").innerHTML = "<b>To read more about this scam, navigate to: <a href='https://etherscamdb.info/domain/" + window.location.hash.substring(1) + "'> https://etherscamdb.info/domain/" + window.location.hash.substring(1) + "</a></b>" + } +} |