Git Product home page Git Product logo

Comments (7)

brawaru avatar brawaru commented on May 27, 2024 2

If you have extension in the menu you'll see that this is because of permissions (‘Permission needed to read and change data’). Firefox extensions are granted permission to run on the current page only when you click on the icon, which is quite annoying, because for Copy as Markdown, it opens this GitHub repository page.

However, I've seen many other extensions bypass this somehow, so I assume there's another permission that this extension can request during install to run on all pages without need to click it in toolbar.

from copy-as-markdown.

inxomnyaa avatar inxomnyaa commented on May 27, 2024 1

This still appears to happen, but on every browser restart, on any page. I have to click the extension icon in the toolbar, after that the context menu appears and always works perfectly fine, until you restart the browser again

from copy-as-markdown.

notlmn avatar notlmn commented on May 27, 2024

We show the option only in certain contexts.

Depending on where you right click after selecting a piece of text (that may include images, video, audio, or other stuff), the context menu gets added or not.

Our code only adds the context menu when you right click on an image, link, or just text selection.

You can try right clicking at a different position after making a selection to see if this is the case. You can try sharing a link to the page that you are testing this on for me to test.

from copy-as-markdown.

sinewalker avatar sinewalker commented on May 27, 2024

Thank you :) I'm not sure that I can share a link (private web site) but I'll keep my eyes open for when this happens again, make sure to click on the text, and if it's a public web site then I'll share it.

from copy-as-markdown.

sinewalker avatar sinewalker commented on May 27, 2024

I was beginning to think that this must be a user error, but I finally found an example

https://docs.gitlab.com/ee/ci/jobs/ci_job_token.html#limit-your-projects-job-token-access

right-clicking on the link scheduled for removal produces a context menu with the Copy as Markdown missing.

Indeed it is missing from anywhere in the page.

Disable/Enable, reload the page, and it's working again.

I'm still not convinced that this is a real bug and not just my mistake though ¯_(ツ)_/¯

from copy-as-markdown.

notlmn avatar notlmn commented on May 27, 2024

Looks like you got it working.

from copy-as-markdown.

jasonmobley avatar jasonmobley commented on May 27, 2024

Came here to post the same, it seems like there is a permission this extension could request that would allow it to work without being reactivated manually after firefox restarts/updates. It seems like every other time I want to copy a link as markdown I first have to go click the extension in the extensions toolbar menu again.

from copy-as-markdown.

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.