Giter Club home page Giter Club logo

Comments (3)

tomayac avatar tomayac commented on May 26, 2024

While the spec does recommend to prefer exact searches over context-based searches, it also recommends that "[a]bove this limit [of 300 characters], the UA should encode the string as a range-based match". In the extension, currently, for the sake of shorter URLs, we experiment with 100 characters, and it seems to work well enough.

The majority of use cases, unlike yours, aims at being resistant to minor text changes. Adding a second context menu entry is not desirable, since it would confuse most users.

My suggestion would be to clone the code from the GitHub repository, make the change to bump the limit to >=300 characters, and install the extension locally:

  1. Open the Extension Management page by navigating to chrome://extensions.
  2. Enable Developer Mode by clicking the toggle switch next to Developer mode.
  3. Click the LOAD UNPACKED button and select the cloned extension directory.

from link-to-text-fragment.

mfulton26 avatar mfulton26 commented on May 26, 2024

Before I go create a new extension I had an idea:

What about setting up an extension option to set the number of characters threshold to transition from exact searched to context-based ones?

It could default to 100 and could be set to as low as 0 to basically disable exact searches (assuming that's applicable here) and could have no real max value but if someone sets it to something greater than or equal to 300 then they get a warning message explaining the situation.

For my use case I think I wouldn't need more than 300 characters so maybe the option is limited to that but I'm not sure it's really necessary to limit it to less than 300 either.

Thank you.

from link-to-text-fragment.

tomayac avatar tomayac commented on May 26, 2024

I understand the desire to have such a setting, but since it's a power user feature that makes providing help to regular users harder (since you never know what they changed), I am very reluctant to add this.

Instead, I encourage you to just clone the extension and make your adjustments, it's all Apache 2.0 licensed and therefore completely OK to even release your clone on the Chrome Web Store.

from link-to-text-fragment.

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.