monolith icon indicating copy to clipboard operation
monolith copied to clipboard

Can you create an option to remove links, buttons and input boxes?

Open kalyan860 opened this issue 2 years ago • 3 comments

kalyan860 avatar Mar 11 '23 09:03 kalyan860

Hi @kalyan860, thank you for the request.

It's an interesting idea. Removing form elements is very easy, but links might be a bit more tricky (e.g. many of them wrap around images, sometimes point at element IDs inside the page, some trigger JS).

Could you please provide some more context? I'd like to know the motivation and need for this feature better, understand use cases. This way I could implement it properly, name flags better, etc.

snshn avatar Mar 13 '23 23:03 snshn

Hi, Thank you for your reply. My main motivation or use case is that: I want to save web pages as articles for future reading. First, I thought extracting text alone is just fine for that. But then realiesed that loss of formatting makes it very difficult to read. So, I removed all the other components using options given to remove javascript, images, CSS(when removing css does not affect readability). Also used the option to isolate the document. However, I am still left with seeing input boxes and links (usually at the bottom of the page and fill lot of space). Removing these two also, will make the page very elegant to look at. After that, maybe I can use pandoc on the final html page to convert it to markdown, to save space or also to read it without using the browser.

Thanks and regards, Kalyan.

On Tue, Mar 14, 2023 at 5:09 AM Sunshine @.***> wrote:

Hi @kalyan860 https://github.com/kalyan860, thank you for the request.

It's an interesting idea. Removing form elements is very easy, but links might be a bit more tricky (e.g. many of them wrap around images, sometimes point at element IDs inside the page, some trigger JS).

Could you please provide some more context? I'd like to know the motivation and need for this feature better, understand use cases. This way I could implement it properly, name flags better, etc.

— Reply to this email directly, view it on GitHub https://github.com/Y2Z/monolith/issues/331#issuecomment-1467124493, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWVVGQJFHJCIRQEVEMCKMXTW36V4RANCNFSM6AAAAAAVXMLFJQ . You are receiving this because you were mentioned.Message ID: @.***>

kalyan860 avatar Mar 14 '23 05:03 kalyan860

Any update on this please?

kalyan860 avatar Nov 18 '23 17:11 kalyan860