Enabling Greasemonkey over Gemtext

Schimon Jehudah sch at fedora.email
Tue Mar 17 18:34:01 GMT 2026


Juraj. Good evening.

I well appreciate your technical remarks, as these were helpful to me
to conclude better realizations.

On Tue, 17 Mar 2026 18:25:46 +0100
Juraj Oravec <jurajoravec at netc.it> wrote:

> On pondelok 16. marca 2026 20:45:26 stredoeurópsky štandardný čas 
> Schimon Jehudah wrote:
> > Greetings.  
> 
> Hello Schimon,
> 
> > When Falkon would have support of Gemini, this could be the process
> > to apply Greasemonkey extensions upon Gemtext documents.
> > 
> > 1. Convert Gemtext to XHTML;
> > 2. Apply script;
> > 3. Convert to Gemtext.
> > 
> > Of course, the use is expected to be mostly general; yet, there
> > still be uses to have Greasemonkey script executed upon Gemtext.
> > 
> > For insance, keyword filtering or conversion of HTTP links to be
> > utilized by a Gemini gateway to HTTP, et cetera  
> 
> QtWebEngine which runs GreaseMonkey scripts through its UserScript 
> functionality works on HTML "only". The KIO interfaces provided
> through "KDE Integration" plugin also output HTML to Falkon, the
> Gemini plugin would also give Falkon only HTML, Falkon would never
> see the Gemtext.
> 

I did not think of it. So, HTML structure is expected to be realized
differently by KIO and other software which be utilizing HTML (e.g.
DeltaChat "Instant View" service, Chawan, et cetera).

> Sure, the KIO plugin could contain some function, argument or a
> keyword which would instruct it to dump "raw" Gemtext to Falkon
> instead of pre- processed html variant.
> 

That would nean that involvement of Greasemonkey developers be needed,
so I am not sure if that even be acceptable, but it might be,
especiaaly if the Gemini developers would agree to approve an XHTML
representation of Gemtext.

I created an XML representation of Gemtext, so I be able to work with
it with XSLT.

https://git.xmpp-it.net/sch/Focus/src/branch/main/implementations/focus.py#L2102

> To be able to run GreaseMonkey on the custom scheme provided by the
> KIO Gemini plugin (eg: "gemini://") we need to check that. It could
> be locked only to "the web" protocols/schemes (eg: http/s).
> 

Due to the apparent required coordination;

Due to the ease of manipulating Gemtext documents; and

Due to the obvious desire to have Gemini plain and simple.

I suppose, that it be better to neglect that idea.

> > P.S. I would rather utilize console or command line software.  
> 
> Me as well, CLI and TUI programs ten1d to be much smaller and faster 
> compared to GUI variants.
> 

Same, and I still learning.

> > Regards,
> > Schimon  
> 
> Best regards,
> Juraj

Thank you,
Schimon


More information about the Falkon mailing list