Coder Social home page Coder Social logo

Comments (1)

jeromepl avatar jeromepl commented on September 28, 2024

Using the same format of the scroll-to-fragment proposal could make sense here. This is what is used in Chrome to highlight search engine content and provide a context option "Copy link to highlight". Possible implementations that could be used:

Note that something else that could be nice to leveraged is that we can detect when there is such a fragment and propose to the user to save this highlight. Note: to detect this, looking at window.location does not work, and the fragments info is not yet exposed to the page (see issue 128 from the repo linked above). However, we CAN get this information from the background page on the chrome.tabs.onUpdated event on the changeInfo.url property.

Reversely, we can also create a link to share a highlight using this so that people receiving the link don't need to have the extension installed for the highlight to work (although for now this is only supported in Chrome).

from highlighter.

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.