Giter Club home page Giter Club logo

Comments (1)

kofigumbs avatar kofigumbs commented on May 18, 2024

This can be implemented entirely with the customCss feature. Here's a simple example:

a:hover::after {
  content: attr(href);
  position: fixed;
  left: 4px;
  bottom: 4px;
  padding: 4px;
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont;
  font-weight: normal;
  color: black;
  background: ghostwhite;
  border: solid 1px black;
  border-radius: 1px;
}

And here's the URI-encoded version if you just want to drop it into your config:

data:,a%3Ahover%3A%3Aafter%20%7B%0A%20%20content%3A%20attr%28href%29%3B%0A%20%20position%3A%20fixed%3B%0A%20%20left%3A%204px%3B%0A%20%20bottom%3A%204px%3B%0A%20%20padding%3A%204px%3B%0A%20%20font-size%3A%2012px%3B%0A%20%20font-family%3A%20-apple-system%2C%20BlinkMacSystemFont%3B%0A%20%20font-weight%3A%20normal%3B%0A%20%20color%3A%20black%3B%0A%20%20background%3A%20ghostwhite%3B%0A%20%20border%3A%20solid%201px%20black%3B%0A%20%20border-radius%3A%201px%3B%0A%7D

This implementation might break if your webpage also styles a::after. Also, it doesn't expand relative links. You could definitely write something more robust with customJs though.

from multi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.