From 83acbaa77cc310b34dd2280ab4e73350cad4902c Mon Sep 17 00:00:00 2001 From: hideheader Date: Tue, 3 Mar 2015 14:31:32 -0500 Subject: [PATCH] A little to the left... no, more to the right... --- popup.html | 5 +++++ popup.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/popup.html b/popup.html index 0cf673ee..15c799a4 100644 --- a/popup.html +++ b/popup.html @@ -60,6 +60,11 @@ .breadcrumbs > .write-style-link:nth-last-child(2)::after {content: none} /* "forward slash" before path ("this URL") */ .breadcrumbs > .write-style-link:last-child::before {content: "\200b/"} + .breadcrumbs > .write-style-link:last-child:first-child::before, + .breadcrumbs > .write-style-link[subdomain=""] + .write-style-link::before {content: none} + + /* suppress TLD-only link */ + .breadcrumbs > .write-style-link[subdomain=""] {display: none} /* :hover style */ .breadcrumbs.url\(\) > .write-style-link, /* :hover or :focus on "this URL" sets class="url()" */ diff --git a/popup.js b/popup.js index ae55edd0..d6392f7d 100644 --- a/popup.js +++ b/popup.js @@ -51,7 +51,7 @@ chrome.tabs.getSelected(null, function(tab) { var domainLink = writeStyleTemplate.cloneNode(true); domainLink.href = "edit.html?domain=" + encodeURIComponent(domain); domainLink.appendChild(document.createTextNode(domain)); - domainLink.title = "domain($)".replace("$", domain); + domainLink.title = "domain(\"$\")".replace("$", domain); domainLink.setAttribute("subdomain", domain.substring(0, domain.indexOf("."))); writeStyleLinks.push(domainLink); });