From 86e4b8b5d0969d7a602a5f7f25ef78609512b812 Mon Sep 17 00:00:00 2001 From: 409H Date: Mon, 14 Aug 2017 20:39:41 +0100 Subject: [PATCH 1/2] Issue #49 - Makes the 0x mandatory for matching the hex string. Also added small to the whitelisted tags to iterate through to match strings (fixes the myetherwallet donation link that was annoying me :P) --- js/DomManipulator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/DomManipulator.js b/js/DomManipulator.js index 6aa4d1d3..19f76de8 100644 --- a/js/DomManipulator.js +++ b/js/DomManipulator.js @@ -50,8 +50,8 @@ class EtherAddressLookup { //Finds Ethereum addresses and converts to a link to a block explorer convertAddressToLink() { - var arrWhitelistedTags = new Array("code", "span", "p", "td", "li", "em", "i", "b", "strong"); - var strRegex = /(^|\s|:|-)((?:0x)?[0-9a-fA-F]{40})(?:\s|$)/gi; + var arrWhitelistedTags = new Array("code", "span", "p", "td", "li", "em", "i", "b", "strong", "small"); + var strRegex = /(^|\s|:|-)((?:0x)[0-9a-fA-F]{40})(?:\s|$)/gi; //Get the whitelisted nodes for(var i=0; i$2' From adbe8ad87250afd91c2a587fb8930afa81b01797 Mon Sep 17 00:00:00 2001 From: 409H Date: Mon, 14 Aug 2017 20:41:31 +0100 Subject: [PATCH 2/2] Increased version number --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 6c14b9ef..3cd3f54b 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.5.1", + "version": "1.5.2", "browser_action": { "default_icon": "images/icon.png",