Giter Club home page Giter Club logo

Comments (5)

lrorpilla avatar lrorpilla commented on June 17, 2024

You'd just have to edit the JavaScript that I inject into the Browser to make this work. I add a click event handler to the body of the document of a webpage. You'd just have to adjust this to make it so that it works for iframes, though I imagine if there are unrelated CORS issues, that will add some extra complexity to the fix.

from jidoujisho.

lrorpilla avatar lrorpilla commented on June 17, 2024

Just for testing purposes, could you please supply a URL that I can use to test against this to make it easier for me to test a fix in the future?

from jidoujisho.

TriDyE avatar TriDyE commented on June 17, 2024
Screenrecorder-2023-07-27-12-03-29-257.mp4

Good morning:

I don't know any URL that uses iframes right now, sorry. Only the web of my friend.

Also I was talking with my friend and he told me that you only need to create a web and add this to create an iframe and test:

<iframe src="https://www3.nhk.or.jp/news/"/>

He cannot grant you access to his web right now cause is a project for university and its not finished yet, sorry. I'm only a helper and beta tester.

I recorded a video about this problem. It's attached to this reply.

Thanks for your work!!

from jidoujisho.

alexay7 avatar alexay7 commented on June 17, 2024

You'd just have to edit the JavaScript that I inject into the Browser to make this work. I add a click event handler to the body of the document of a webpage. You'd just have to adjust this to make it so that it works for iframes, though I imagine if there are unrelated CORS issues, that will add some extra complexity to the fix.

Hello, I am the friend 😂, by "adjust the event handler" you mean to create a pull request with the changes? because as far as I know there is no way to modify code injected by the browser.

I got the app to recognize the text inside the iframe by replacing the getSelection function in my website, but I don't think I can do anything about the event listener. I cloned the click event from the iframe and triggered it in the parent, but the app won't find text because it searches for it in the parent document.

Thanks

from jidoujisho.

lrorpilla avatar lrorpilla commented on June 17, 2024

That is the case, yeah. Truth be told, the browser was a popular request, one that I don't use myself regularly but I see the benefits for. I was initially hesitant exactly for the reason being web is web and there are a lot of edge cases out there.

I don't have time at present to make the changes myself as while this is a pretty significant issue, it's also not really very common (though it is also not super rare, it's also not a media source I commonly use).

Plain JavaScript isn't my forte suffice to say but I'll leave this open for the web devs, or me sometime when I'm not pressed with work lol

from jidoujisho.

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.