Giter Club home page Giter Club logo

Comments (5)

rugk avatar rugk commented on June 9, 2024 2

Good idea. Note that this would require a new permission for clipboard access likely, but that can (and should) be optional, so that's not a big deal.

HowTo

I imagine a setting with a checkbox:

  • Use clipboard content when opening popup.

If you enable that, instead of using the tab URL it should override it (if required also possible with a message from the background script or so with the clipboard content.
If a permission is required, one can couple it in this extension with the PermissionRequest library (also used in other extensions, if one needs to get an example).

Important things:

  • If the clipboard is empty, it should IMHO still fallback/use the website URL then as usual!
  • If some text is selected and the option in the settings is enabled (as usual), this should take preference over the clipboard content IMHO.
    Reasoning: The thing is the clipboard is likely to contain outdated stuff, even passwords or so, which you have copied a quite long time ago, while a text selection on the website is much less permanent (i.e. goes away fast when you have to interact in some other way with the site) and selecting something may be a way more deliberate act than just copying sth. in another application even possibly or so.
  • if a new permission is required please document it/why for the user.

That all said, I guess this is a good „good first issue“ thing if someone wants to really implement it. Note though, it may be not the easiest one, as one has to touch a few topics (settings, actual logic etc.) that are simplified due to the libs we use, but may still require some clever ideas or so.

from offline-qr-code.

frooia avatar frooia commented on June 9, 2024 1

New open source dev here, can I try this one?

from offline-qr-code.

Ravina-Deogadkar avatar Ravina-Deogadkar commented on June 9, 2024

Can I work on this?

from offline-qr-code.

rugk avatar rugk commented on June 9, 2024

Hi oh sorry for the delay, missed my notifications, yes you can both try. However, @Ravina-Deogadkar I just saw @frooia already did a PR in #286, so that is the base for implementation.

I thus will assign @frooia first, but if help is needed, of course I assume @Ravina-Deogadkar you can jump in and help here. Feel free to test or review the PR, BTW.

from offline-qr-code.

rugk avatar rugk commented on June 9, 2024

So @GrupaIMEX and @Ravina-Deogadkar if you want to take over/finish the PR #286 feel free to do so. There should just be some minor work to do.

from offline-qr-code.

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.