mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Autofilling new issue link with url and domain (Phishing detect page) (#12000)
This commit is contained in:
parent
7a8f65d642
commit
fe59cbfe66
@ -51,7 +51,7 @@
|
||||
<a href="https://github.com/metamask/eth-phishing-detect">Ethereum Phishing Detector</a>.
|
||||
Domains on these warning lists may include outright malicious websites and legitimate websites that have been compromised by a malicious actor.
|
||||
</p>
|
||||
<p>To read more about this site <a id="csdbLink">please search for the domain on CryptoScamDB</a>.</p>
|
||||
<p>To read more about this site <a id="csdbLink" href="https://cryptoscamdb.org/search">please search for the domain on CryptoScamDB</a>.</p>
|
||||
<p>
|
||||
Note that this warning list is compiled on a voluntary basis. This list may be inaccurate or incomplete.
|
||||
Just because a domain does not appear on this list is not an implicit guarantee of that domain's safety.
|
||||
@ -60,7 +60,7 @@
|
||||
</p>
|
||||
<p>
|
||||
If you think this domain is incorrectly flagged or if a blocked legitimate website has resolved its security issues,
|
||||
<a href="https://github.com/metamask/eth-phishing-detect/issues/new">please file an issue</a>.
|
||||
<a id="new-issue-link" href="https://github.com/metamask/eth-phishing-detect/issues/new">please file an issue</a>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -12,7 +12,12 @@ function start() {
|
||||
const hash = window.location.hash.substring(1);
|
||||
const suspect = querystring.parse(hash);
|
||||
|
||||
document.getElementById('csdbLink').href = `https://cryptoscamdb.org/search`;
|
||||
const newIssueLink = document.getElementById('new-issue-link');
|
||||
const newIssueUrl = `https://github.com/MetaMask/eth-phishing-detect/issues/new`;
|
||||
const newIssueParams = `?title=[Legitimate%20Site%20Blocked]%20${encodeURIComponent(
|
||||
suspect.hostname,
|
||||
)}&body=${encodeURIComponent(suspect.href)}`;
|
||||
newIssueLink.href = `${newIssueUrl}${newIssueParams}`;
|
||||
|
||||
global.platform = new ExtensionPlatform();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user