aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/contentscript.js2
-rw-r--r--app/scripts/esdb-replace.js5
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>"
+ }
+}