you know what would be nice? if web browsers had two modes, essentially - a "Document Mode" and an "App Mode." in doc mode you'd have access to CSS, HTML, all the layout stuff, but absolutely no javascript ot anything turing complete. the web browser would offer extra doc-specific chrome, like entering a Reader Mode, changing fonts, or selecting between alternate stylesheets offered by the site.

in application mode, all of that would go away, javascript and all the rest would be turned on. when you'd load an App Mode page you'd get a window warning you, displaying the name of the app, a description, a list of requested capabilities (with toggles to selectively deactivate them or, say, enable location spoofing, whatever), the developer's credentials, and require the user to explicitly click a button to say "yes, run app, please." and every single goddamn bit of everything would require code-signing. foreign javascript gets inserted somehow? too bad, it's not signed by the app's declared certificate, and the app is terminated or the user is just warned, depending on user preference.

but we'll never get anything like this, because browsers are too in thrall to Big App and Big Data and the throngs of javascript freaks who are congenitally unable to display a single line of text without dragging in 36 levels of dependencies and turning your processor's fan up to max

@velartrill I know that firefox has a document mode, or reading mode, but I don't know if that disables javascript for that page or not. Oh, it's called "Reader View." Ctrl-Alt-R. Anyway, it certainly simplifies the page.

@xmanmonk i am not talking about "reader view." please read my tweet instead of just skimming it before you reply

@velartrill Sorry, I didn't skim your message, but I read it again and still come away with the same concept. I know that browsers definitely need to address our concerns, and I hope something will eventually address what you're looking for.

@xmanmonk how?? like i specifically stated Reader Mode was a *subset* of what i was describing. it has nothing to do with code signing or javascript restrictions, nothing to do with partitioning the web between apps and documents, keeping code that the user does not explicitly trust from running, keeping e.g. news sites from doing shit like mining bitcoin or tracking people or serving up malware, getting javascript out of the design business and forcing web developers to actually use tools correctly. *all* reader mode does is pull out a subsection of the text using heuristics - whether it's even enabled is also determined by heuristics - and present it differently. that's it. i don't know where you got the impression that it's anything more than that, that there's anything fundamentally different about web pages that Reader Mode works on. there's not.
絵.png

@velartrill @xmanmonk there already is this two mode for the web, but evil devs just use "app mode" for everything. What people need to do is stop visiting shitty websites, use something like tor browser as default so the shittyness of a website is apparent.

@velartrill @xmanmonk
> in doc mode [...] absolutely no javascript
yes, many browser doesn't have any JavaScript capabilities what so ever, some offers the ability to disable scripts.
> Reader Mode, changing fonts, alternate stylesheets
all of these are already a thing, you just need to look into Firefox 's setting, or visit a 2000s forum.
> when you'd load an App Mode [...] and the app is terminated [...]
yes I does this and "apps" just simply refuse to work

@velartrill @xmanmonk remember when android added "permissions", and evil developers just make the apps quit to force "consent"? you have to be able to kick miss behaving apps off of the www and the developer in jail for rape to make something like "ask for permission" work, and that's not a good idea btw.

@aa @xmanmonk your disjointed, incoherent ramblings are of no interest to me or anyone else. kindly go away
Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml