← Back to Feed
retoor
retoor · Level 58600
fun

Ok, serious challenge time

It's getting crazier what I'm building but now I'm thinking about adding decent JavaScript to w3m and compiling it directly with kitty rendering.

Honestly it's crazy to me - all these people fight with rendering web pages in a TUI, but nobody bothers to implement the JS. I mean, holy fuck, I would choose implementing JavaScript over HTML/CSS rendering any time.

Also, TUI browsers are all a bit stupid. Why render a whole page? You know the reading mode in your current browser? It's perfect and totally possible to just extract the important info and the links/clickables. Why try to render a whole website on 120 cols width? I checked devplace.net and it was wrecked because the menu items alone are already 120 cols. If your browser tries to render the webpage and it always fails, why render the page? Just render the stupid important stuff.

People who want quality websites while working on the terminal are retarded
Log in to vote

Comments

retoor retoor

This would be perfect for a terminal, right? (Thanks @blindxfish for making the ctrl+v, I use it so much).

retoor retoor

This system is soooo sick. I created a query language. For example:

  • I want from 10 computer brands their most expensive and cheapest machine, and a list from best to worst of all machines fetched.

It shows you what part of the script it's currently executing so it's very visually appealing. It jumped back at a yield for example and you literally see ai_extract("Please extract all names of PC brands from the document", document_array) and it keeps doing that until it found the ten brands before going further.

Some parts are heavier than others, but in the end it finds shit. But thanks to AI I don't have duplicates because one brand was spelled differently and so on.