-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automate Just Read #444
Comments
Hey normanicus. Tell me more. What's the purpose for this request? What is your end goal? |
Hello Zach,
Thanks for your reply.
I am a retired programmer who still has one client. Richard, the client,
does sales on Magento. I developed his database system in Filemaker and
have done several workflow automation tasks for him.
The latest project is to create Filemaker records from Magento orders. I
have extracted the data using Javascript. A Mac Shortcuts.app shortcut runs
the javascript and fires off a Filemaker script using that collected data.
I then looked to integrate the whole process into Filemaker. It has a 'web
viewer' feature where a browser can be run in a layout. When I tried to
load an order page into the web viewer it was slow. The relevant content
part of commercial sites must be less than 5%. So, using dev tools, I
started deleting whole sections of HTML/scripts. It was a mess.
Then I thought of Safari's Reader mode. It was much too aggressive and thus
useless. I then tried Just Read and it showed me just what I needed. Now, I
thought, has it actually changed the HTML? I couldn't believe it when I
looked in dev tools to see the little, compact code that your extension
produced.
So, now I want the process to be:
Load the page
Run Just Read
Bring the Just Read generated page into the Filemaker web viewer.
Ran my javascript on the page (will need some amending perhaps).
Hence my desire to implement Just Read in the automation process.
Since posting my feature request I did mess with using Applescript to
execute the key sequence to run Just Read but I haven't succeeded so far.
A side benefit of this for future projects is that finding the correct
queries in dev tools will be much simpler.
I've been using your extension for a long time. Thank you.
PS A Safari version of Just Read would be great but I'm not sure it would
be a large market.
…On Sat, 26 Oct 2024 at 13:16, Zach Saucier ***@***.***> wrote:
Hey normanicus. Tell me more. What's the purpose for this request? What is
your end goal?
—
Reply to this email directly, view it on GitHub
<#444 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSCXW2MK6PZC6AAWAK46XLZ5OBYDAVCNFSM6AAAAABQURWRIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZGU2TMMJZHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Thanks for the context! The first thing I would investigate is to see if you can make use of Just Read's auto-run functionality. You might be able to just add the domain of your page to the auto-run list and Just Read will automatically run on the page! If that doesn't work for some reason (perhaps due to restrictions / limitations of this pseudo web browser or a security issue), you might be able to modify Just Read to use messaging to run Just Read on your page. How you would set up this sort of workflow is to modify Just Read to call the start method when a particular message is sent from a webpage (Just Read already has some message listeners set up here and here that you could extend). |
Also of note, Just Read makes use of Mozilla's Readability in its content auto-selection. It might be kind of problematic to use a full web extension in your environment. A simpler solution might be to integrate Readability more directly into your flow, perhaps making use of one of the cli versions (1, 2, 3). |
Thanks again. I've been learning.
Just happened on this which shows that there is a conversion tool for
Chrome extensions available for Safari:
https://developer.apple.com/documentation/safariservices/converting-a-web-extension-for-safari
However, it needs XCode and so needs a Mac to run which you possibly don't
have.
If I get brave I might just try it.
…On Sat, 26 Oct 2024 at 14:37, Zach Saucier ***@***.***> wrote:
Thanks for the context!
The first thing I would investigate is to see if you can make use of Just
Read's auto-run functionality
<https://github.com/ZachSaucier/Just-Read#user-content-autorun>. You
might be able to just add the domain of your page to the auto-run list and
Just Read will automatically run on the page!
If that doesn't work for some reason (perhaps due to restrictions /
limitations of this pseudo web browser or a security issue), you might be
able to use messaging
<https://developer.chrome.com/docs/extensions/develop/concepts/messaging>.
How you would set up this sort of workflow is to modify Just Read to call the
start method
<https://github.com/ZachSaucier/Just-Read/blob/7d55c1a5d43eb647643b214d84c0b4bfab206146/background.js#L8>
when a particular message is sent from a webpage (Just Read already has
some message listeners set up here
<https://github.com/ZachSaucier/Just-Read/blob/7d55c1a5d43eb647643b214d84c0b4bfab206146/background.js#L197>
and here
<https://github.com/ZachSaucier/Just-Read/blob/master/messager.js> that
you could extend).
—
Reply to this email directly, view it on GitHub
<#444 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSCXW3RN2RADEI4SNML4SLZ5OLLHAVCNFSM6AAAAABQURWRIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZGU4DOMBXHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I don't remember the exact details, but I attempted to port Just Read to Safari in the past and failed to do so. |
I get to that article via Youtube and can't find the reference. My memory
is that the guide is recent. I tried to find a publication date on the page
but all I could see was, Copyright © 2024 Apple Inc.right at the bottom of:
https://developer.apple.com/documentation/safariservices/converting-a-web-extension-for-safari
…On Sun, 27 Oct 2024 at 12:12, Zach Saucier ***@***.***> wrote:
I don't remember the exact details, but I attempted to port Just Read to
Safari in the past and failed to do so.
—
Reply to this email directly, view it on GitHub
<#444 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSCXW4FOH23JIQUGR7V7XDZ5TKDNAVCNFSM6AAAAABQURWRIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZHE4TAMJXGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I want to activate Just Read using Javascript (or Applescript). Is this possible?
The text was updated successfully, but these errors were encountered: