Comments (4)
Clever to use CSS. Also possible is something like this, though it may be too coupled to Google's current HTML template:
a[data-sxg-url] > div[role=heading] > div[role=link]::before {
content: "📦 ";
}
from sxg-validator.
I could emulate this slightly by pasting the following into the dev console:
var styleSheet = document.createElement("style");
styleSheet.innerText = "a[data-sxg-url] { background-color: red; }";
document.head.appendChild(styleSheet);
You could probably do better visually than primary colors, and it only highlights the link, not the whole result block. The latter would take slightly more than just css.
from sxg-validator.
may be too coupled to Google's current HTML template
I'd not be too worried about this. If you can find a way to make it less coupled without added effort, that's cool, but the worst case it's back to where we are today.
from sxg-validator.
A list of Google TLDs is available at https://source.chromium.org/chromium/chromium/src/+/main:components/google/core/common/google_tld_list.h;l=13-42;drc=bea0acf022da996a8ff1dbdee378667a66c768e4. May be stale, but close enough to start with?
from sxg-validator.
Related Issues (9)
- Cache URL drops query parameters
- Don't work correctly with url containing "&" HOT 2
- URL not yet in cache is shown with ❌ instead of ⌛ HOT 2
- Report reasons why sxg-rs might not sign
- Include status for subresources
- Add a few debugging tips to the help doc
- Link to cache version
- Try to figure out cert-url from a few places
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sxg-validator.