diff --git a/content_script.js b/content_script.js index 3809f71..59510af 100644 --- a/content_script.js +++ b/content_script.js @@ -1,6 +1,5 @@ function getUrl(e) { var target = e.target; - console.log(e); while ((target.tagName != "A" || !target.href) && target.parentNode) { target = target.parentNode; } @@ -8,7 +7,6 @@ function getUrl(e) { if (target.href.startsWith("https://t.co")) { let url = ''; e.preventDefault(); - console.log(e.target.children); url = e.target.textContent.replace("…","") if(url.startsWith("http")) { window.open(url, '_blank');