| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Unfortunately this is unavoidable, as some servers still seem to return
brotli despite our Accept-Encoding header not including it.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I considered using terminfo, but it works *worse* on several terminals
I've tried than whatever this is. So out with ncurses, I say.
In this new scheme, if the terminal is unrecognized, it is assumed to
be XTerm-compatible. This does mean that an unrecognized terminal that
doesn't do XTGETTCAP or COLORTERM will not get true colors.
Another drawback is that non-VT-compatible terminals now have zero
chance of working. This is unfortunate, but realistically they probably
didn't work until now either.
|
|
|
|
| |
and make it autorefresh so the UX is halfway sane
|
|
|
|
|
| |
I think it works well enough at this point.
If it doesn't, somebody will complain :)
|
|
|
|
| |
it's horrible, but better than nothing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[[siteconf]] now just means [siteconf.0], etc. So you can now override
parts of default siteconfs/omnirules, e.g. to change the Google search
substitute-url, etc.
To celebrate this, I've added some more default search engines:
* wk: -> Wikipedia
* wd: -> Wiktionary
* ms: -> Marginalia Search
These can be replaced by setting e.g. omnirule.wk = {}, etc.
Also, siteconf = {} can be used to clear pre-defined siteconfs.
This is an unfortunate deviation in semantics from TOML, but in practice
the way it worked before didn't match the spec either, so at least it
is now consistent.
|
| |
|
|
|
|
|
| |
I'm not 100% content with this syntax either, but it's a significant
improvement over the previous solution.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Originally I added Mozilla/5.0 because Google refused to serve valid
HTML without it, and some websites really disliked us not sending it.
Since then, I've had to special case Google anyway because now it only
serves usable results to a specific set of UA strings.
Meanwhile, an aggressive client blocking software has been spreading
lately, which shows a (broken, for various reasons) JS POW page if you
*do* send Mozilla/5.0. So I guess it's better to switch back for now.
The drawback of course is that now we are broken on sites that expect
us to send Mozilla/5.0. Hopefully this is no longer as common as
before.
|
| |
|
|
|
|
|
|
| |
The standard specifies counter-intuitive behavior dependent on
non-standard CSS.
Lacking evidence that this is needed, we ignore it.
|
| |
|
|
|
|
| |
ref. https://todo.sr.ht/~bptato/chawan/43
|
|
|
|
| |
Now select[multiple] options have the same coloring as w3m.
|
|
|
|
|
| |
This means we can now use about:downloads for downloads.
Plus it shaves off some ks from the distribution.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
HTML5 doesn't allow frameless processing of documents, so the <noframes>
fallback never really worked. Being able to click on the individual
frames feels somewhat less broken.
I'm unsure how the actual solution should look like. Either we need
multiple buffer support per process, or treat them as pseudo-images and
handle them in pager.
|
| |
|
|
|
|
|
|
| |
Particularly useful when debugging minified JS.
vi always wraps; the centering behavior is from vim.
|
|
|
|
|
| |
Google no longer allows no-JS search - it's broken on Firefox as well.
For now, the old version still works...
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
We already need a camel -> kebab converter anyway.
Unfortunately this also changes JS binding names, so it's a breaking
change. Oh well.
|
|
|
|
| |
sourcehut sets inline-block on it, and that broke [] placement...
|
|
|
|
|
|
|
| |
ok, now it works like in w3m. (mostly, barring CSS limitations...)
we'll see how this works out
Also adds/fixes some select and option DOM APIs.
|
|
|
|
|
|
|
|
|
| |
Regular select is now rendered as flex, and does not wrap.
This gets rid of the pointless whitespace before/after options.
multiple still looks weird, but maybe a bit less?
Probably we should just render it with pseudo-checkboxes, and drop the
special mode from select.nim.
|
|
|
|
| |
better than nothing
|
| |
|
| |
|
| |
|
|
|
|
| |
TODO: switch to a PD font
|
|
|
|
|
|
| |
It works by emitting a base64 URI inside an img tag.
Very inefficient, but useful if no external viewer is set up
(e.g. over SSH).
|
|
|
|
|
| |
more intuitive than shoehorning it into "view image"
(also makes it easier to apply the content type)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mostly compatible with other browsers/tools that follow the
Netscape/curl format.
Cookie jars are represented by prepending "jar@" to the host part, but
*only* if the target jar is different than the domain. Hopefully, other
software at least does not choke on this convention. (At least curl
seems to simply ignore the entries.)
Also, I've moved cookies.nim to config so that code for local files
parsed at startup remains in one place.
|
|
|
|
|
| |
"No CGI dir configured" is no longer a common case, so it's OK to just
return "CGI file not found".
|
|
|
|
|
|
|
| |
It isn't really limited to config. It just happens to be in
XDG_CONFIG_HOME because XDG basedirs suck.
(W3M_DIR works similarly.)
|
|
|
|
|
| |
Licenses now ordered by "explicitly PD", "PD-equivalent" and
"not PD-equivalent".
|
|
|
|
|
|
|
| |
In my infinite wisdom, I typed two paragraphs about this issue in
c45502f8, but never actually changed the default config.
Also, it's been almost a year now; time to drop yc.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fix luwrap comparison function
* strip high unicode controls in term/pager
* use wcwidth in dirlist2html
* remove combining category from strwidth
* remove unused "disallowed" field from lineedit
My initial goal with switching to wcwidth in dirlist2html was just to
get rid of the outdated combining map in charwidth_gen. Then I realized
that layout will normalize those out anyway, so we don't actually have
to deal with them anywhere.
Also, I found a few bugs in the process; high unicode control chars not
being stripped out was a particularly bad one, as it allows for pages to
mess up the terminal output. (Easiest way to replicate: just open a
random binary file without this patch.)
|
|
|
|
|
| |
It's still missing a "color visited links" feature, but it's better
than nothing.
|
|
|
|
|
|
|
|
| |
* fix clip for image
* switch back img's display to inline
* fix image width calculation without specified width/height
I'm not 100% sure if this is correct, but it certainly looks better.
|