plateaukao / einkbro

A small, fast web browser based on Android WebView. It's tailored for E-Ink devices but also works great on normal android devices.
Other
1.16k stars 85 forks source link

per-site tweaks #38

Open beelzebielsk opened 3 years ago

beelzebielsk commented 3 years ago

Could you implement tweaks on a per-site basis? I'm looking for arbitrary CSS changes and changing what the reading mode buttons do. I expect the CSS changes to be an advanced feature, the user should know how to use CSS themselves.

Primary use case is twitter. I read on there a lot to learn about things, but I'd like to make it a little more eink friendly. The arbitrary CSS would be to change the appearnace of tweets, and the reader buttons would send down/up rather than pageDn/pageUp. On twitter, these keys should allow me to go tweet-by-tweet rather than a fraction of a page.

It would be great to have a set of tweaks that gets applied based on characteristics of the site, like a regex matched against the URL. At the very least for a whole site, across all of its pages.

plateaukao commented 3 years ago

Hi, thanks for the suggestion. I'll consider adding the feature in the future. However, since it's rather an advanced usage for such a small browser, it won't be implemented soon.

pull request is always welcomed.

dredmorbius commented 3 years ago

Note that there are extensions which provide such a capability for other browsers. Whether or not einkbro wants to implement (and possibly vet) an extensions infrastructure is ... a big ask. But tools such as Stylish (CSS manager) and Greasemonky (JS manager) are tremendously useful, and already exist for both Chrome and Firefox.

If that makes meeting this request any easier, it's a possible consideration.

I'm VERY well aware that extensions are a significant concern, especially as a threat vector, though also simply for support.

If I could prioritise resources, I'd focus on making the Reader Mode view as useful as possible and flexible within reason.

Cwpute commented 1 year ago

@dredmorbius @beelzebielsk you could always use UntrackMe which redirects twitter links to more eink friendly front-ends. This could help you a little bit

dredmorbius commented 1 year ago

@Cwpute Is UntrackMe supported w/in Einkbro?

It looks as if it's a freestanding Android app. How does it work? DNS redirects?

Or ... oh, "share the URL to UntrackMe" ... which then pops up the alternative. Hrm... Somewhat helpful, though still somewhat high-friction.

Thanks for the suggestion.

Carl-ki commented 10 months ago

Would it be possible for text zoom to be set on a per-site basis? I am willing to pay $20 for this feature, and if other people would like to chip in, maybe that could be some good motivation for developing this?

uqs commented 8 months ago

Per-Site or per-domain font zoom would indeed be terrific!