From 6c1c9c69af507a81a5bb24f82d9391ff622377eb Mon Sep 17 00:00:00 2001 From: Samuel Hawksby-Robinson Date: Wed, 8 Nov 2017 16:26:08 +0000 Subject: [PATCH 1/2] Added Identicons / Ether Blockies Resolves #91 This commit contains functionality for auto scaling blockie images to be inserted infront of any ethereum address --- css/app.css | 11 +++++++++++ js/DomManipulator.js | 19 ++++++++++++++++++- js/app/lib/blockies.min.js | 1 + manifest.json | 6 +++++- 4 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 js/app/lib/blockies.min.js diff --git a/css/app.css b/css/app.css index 5aea8d51..d6df6757 100644 --- a/css/app.css +++ b/css/app.css @@ -81,4 +81,15 @@ margin-top: 5%; padding: 15px 5%; background: #e4e4e4; +} + +.ext-etheraddresslookup-blockie { + width: 1em; + height: 1em; + background-size: cover; + background-repeat: no-repeat; + border-radius: 50%; + box-shadow: inset rgba(255, 255, 255, 0.6) 0 2px 2px, inset rgba(0, 0, 0, 0.3) 0 -2px 6px; + display: inline-block; + margin-bottom: -0.2em; } \ No newline at end of file diff --git a/js/DomManipulator.js b/js/DomManipulator.js index 8b4033fc..3eb35e5c 100644 --- a/js/DomManipulator.js +++ b/js/DomManipulator.js @@ -82,7 +82,9 @@ class EtherAddressLookup { '$1$2$3', + 'target="'+ this.target +'">' + + '
$2' + + '$3', // ENS Address Replace '>19^e^e>>8,(c[3]>>>0)/(1<<31>>>0)}function r(){var e=Math.floor(360*o()),r=60*o()+40+"%",t=25*(o()+o()+o()+o())+"%",l="hsl("+e+","+r+","+t+")";return l}function t(e){for(var r=e,t=e,l=Math.ceil(r/2),n=r-l,a=[],c=0;t>c;c++){for(var i=[],f=0;l>f;f++)i[f]=Math.floor(2.3*o());var s=i.slice(0,n);s.reverse(),i=i.concat(s);for(var h=0;h Date: Wed, 8 Nov 2017 17:14:02 +0000 Subject: [PATCH 2/2] Updated Version to 1.10.0 --- manifest.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index be8ef92d..70f7cf2c 100644 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ "name": "EtherAddressLookup", "short_name": "EtherAddressLookup", "description": "Adds links to strings that look like Ethereum addresses to your favorite blockchain explorer.", - "version": "1.9.0", + "version": "1.10.0", "browser_action": { "default_icon": "images/icon.png", diff --git a/package.json b/package.json index 1412b757..c87138cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "etheraddresslookup", - "version": "1.0.0", + "version": "1.10.0", "description": "A web extension for blocking ethereum phishing websites.", "main": "blacklists/domains.json", "scripts": {