Commit graph

117 commits

Author SHA1 Message Date
Thomas Buckley-Houston e2c5e5608b Ensure HTTP server tabs live no longer than 60s 2018-07-18 17:44:45 +08:00
Thomas Buckley-Houston 73c8bd94f3 Made all obvious variables user-configurable
There's a bit of refactoring in order for the webextension to deal with
the new order of initialisation now that config is sent by the Golang
client.

Closes #83
2018-07-18 15:55:35 +08:00
Thomas Buckley-Houston 24fcd9f562 Fix JS test after char size hardcoding 2018-07-16 18:22:37 +08:00
Thomas Buckley-Houston 38cf92b486 Prettier formatting fix 2018-07-16 18:08:04 +08:00
Thomas Buckley-Houston 5a25149fdf Only log char dimensions if they differ 2018-07-16 17:58:29 +08:00
Thomas Buckley-Houston b2988bfa1f Fix for incorrectly calculated char dimensions
There was a bug where raw text pages would unusually truncated. It
seemed to coincide with the char dimensions being incorrectly
calculated. My only guess was that it was because of race condition on
lightweigh sites that didn't load Browsh's webextension code in time.

So for now it just seems better to hard code the char dimensions, which
should at least be more reliable than the bugs of dynamically
calculating them .
2018-07-16 13:56:24 +08:00
Thomas Buckley-Houston 6471b6f42c Remove Firefox as a dep in Brew Tap recipe
Touches #65
2018-07-12 04:44:27 +08:00
Thomas Buckley-Houston 43b738f3de Version 1.3.2 2018-07-11 18:07:58 +08:00
Thomas Buckley-Houston 21bd850f50 Missing - in goreleaser :/
Bump to v1.3.1
2018-07-11 17:55:35 +08:00
Thomas Buckley-Houston a43a9bd197 Version 1.3.0 2018-07-11 17:34:26 +08:00
Thomas Buckley-Houston d66d3e26a0 JS prettier formatting 2018-07-11 17:28:56 +08:00
Thomas Buckley-Houston c2fe5a1d46 Update NPM packages 2018-07-11 17:17:48 +08:00
Thomas Buckley-Houston 3c41974ce0 Increase sendRawText() wait hack to 400ms
I know this adds another 200ms to page load times, but it prevents pages
with a lot of text not rendering their text. Obviously better to just
fix the original bug.
2018-07-11 16:49:59 +08:00
Thomas Buckley-Houston bd08ae4ebd Version 1.2.3 2018-07-10 10:45:38 +08:00
Thomas Buckley-Houston 29132f3695 Better attempt to fix Google phishing warnings 2018-07-09 13:51:58 +08:00
Thomas Buckley-Houston 384688302e Quick fix to stop Chrome detecting phishing
Apparently Google isn't happy about
https://html.brow.sh/mail.google.com URLs.
2018-07-09 13:06:50 +08:00
Thomas Buckley-Houston f6308f0f7b Version 1.2.0 2018-07-08 16:01:39 +08:00
Thomas Buckley-Houston 8d8168bfc6 First implementation of bg image for HTML service 2018-07-08 13:52:33 +08:00
Thomas Buckley-Houston 2ea4eb0f8c Better ENTER key UX
This came about from using Slack's web client.

Adding the input boxes padding to the DOM box coords makes the TTY
cursor more closely reflect the actual input box. Also using keyup/down
seems more universally applicable than merely kepress
2018-07-07 18:22:17 +08:00
Thomas Buckley-Houston 6fc594bdf9 Version v1.1.5 2018-07-06 14:55:01 +08:00
Thomas Buckley-Houston 1a6fa690f5 Added donation link to HTML response pages 2018-07-06 13:43:53 +08:00
Thomas Buckley-Houston af1f47bc65 Version 1.1.4 2018-06-26 15:46:05 +08:00
Thomas Buckley-Houston 1bbe912994 Move start of raw text perf measurement 2018-06-26 13:42:07 +08:00
Thomas Buckley-Houston 642fd8348e Include original favicon in HTTP server responses 2018-06-26 13:28:27 +08:00
Thomas Buckley-Houston 5ddba85a0d Don't put any HTML in plain raw pages 2018-06-23 19:42:51 +08:00
Thomas Buckley-Houston f89ecc6e5e Version 1.1.3 2018-06-23 19:28:55 +08:00
Thomas Buckley-Houston d4cb55f91e Force monospace for raw text HTML pages 2018-06-23 19:27:55 +08:00
Thomas Buckley-Houston 2350000cfb Add time stamp to HTML raw text 2018-06-23 19:27:55 +08:00
Thomas Buckley-Houston 9ce338f531 Add limit to HTTP service's page size
Fixes #50
2018-06-23 19:27:55 +08:00
Thomas Buckley-Houston 61626b522a Fix for errant </a> tags appearing on HTTP server 2018-06-23 19:27:15 +08:00
Thomas Buckley-Houston b2f1315c11 More rigourous definition of mode
This prevents interactive mode frames and logs being sent during raw
mode.
2018-06-23 19:27:15 +08:00
Thomas Buckley-Houston 802a61204d Add 1 extra delayed big frames render at page load
Without getting into the whole CSS transitions problem, this is a quick
solution to ensuring that text both loads as quickly as possible and
also loads aftera delay fo 500ms when hopefully all page load
transitions have completed.

Touches #39
2018-06-23 19:27:15 +08:00
Thomas Buckley-Houston f01b72daeb Remove brightness filter for em, strong, text
It has the opposite effect for text on dark backgrounds
2018-06-23 17:07:44 +08:00
Thomas Buckley-Houston e4933ac94c Version v1.1.2 2018-06-18 20:01:24 +08:00
Thomas Buckley-Houston cddd3ca173 Fix for HTTP server tabs not automatically closing 2018-06-18 19:38:24 +08:00
Thomas Buckley-Houston b4e48ae248 Version bump to v1.1.1 2018-06-18 18:59:32 +08:00
Thomas Buckley-Houston 3149db4bd3 Add anchor tags to HTTP Server output
This means you can now load the raw text in a browser and the resulting
page will have basic blue links that can be clicked on that will in turn
be loaded by the HTTP service.

A significant feature, so worthy of a minor version bump to;
v1.1.0
2018-06-17 21:26:44 +08:00
Thomas Buckley-Houston 1b42630b7f Text builder optimisations from @tobimensch 2018-06-15 11:15:01 +08:00
Thomas Buckley-Houston c9df161eb6 Don't UPX compress OSX binaries
The current versions of UPX cause an instant crash of the Browsh binary
on OSX :/

Version 1.0.13
2018-06-13 19:37:26 +08:00
Thomas Buckley-Houston f894057172 Version 1.0.12 2018-06-12 20:47:54 +08:00
Thomas Buckley-Houston e24ea50dd7 Version 1.0.11 2018-06-12 20:38:30 +08:00
Thomas Buckley-Houston cf35a065bf Version 1.0.10 2018-06-12 20:30:40 +08:00
Thomas Buckley-Houston 2577ea896b Fixes to get the Docker image building again
Firstly Firefox 60 now throws an error if its run as root inside a
user's home path. Which is great because that revelead my naivety about
using `RUN su user` in the Dockerfile. So now Firefox is running as a
non-root user inside Docker which is what was always best.

Also it turns out that the crude 3 second wait at startup hoping that
Firefox's Marionette had started listening, wasn't good enough. So now
we're actually listening for a log message to know when it's started
now.

Finally make all startup methods use a the post-webext connection state
to send the startup URL to the browser, the other methods just seemed to
flakey.

Includes version bump to 1.0.9
2018-06-12 15:40:49 +08:00
Thomas Buckley-Houston c13e8d26f6 Use absolute path to webextension.go asset
Bump to version 1.0.8
2018-06-11 16:28:00 +08:00
Thomas Buckley-Houston 47bcbbc0a6 Version 1.0.5
Adjust path in .goreleaser.yml

Boot Firefox before any tests to get any 'first launch' behaviour out of
the way.

Remove pacman build as we're using nfpm instead of fpm now.
2018-06-11 14:11:45 +08:00
Thomas Buckley-Houston 0109fa206e Move .goreleaser.yml file 2018-06-10 22:47:49 +08:00
Thomas Buckley-Houston 05c2d9f4f3 Version 1.0.2
Update Firefox version dependency to 60.0
2018-06-10 22:30:44 +08:00
Thomas Buckley-Houston 14796c0d93 Updates for Goreleaser
Update Golang to 0.10

Use `curl -sL http://git.io/goreleaser | bash` instead of `go get`
2018-06-10 20:33:41 +08:00
Thomas Buckley-Houston 98fa8014b9 Added Firefox paths for Windows and OSX
Also updated Gopkg dep versions.

And version bump to 1.0.0pre1!
2018-06-10 20:16:28 +08:00
Thomas Buckley-Houston 7d3620e12d HTTP Service: don't delete tab if last remaining
Previously we were using the tab's ID to decide if it was the root tab
(that if deleted would close the browser). However our ol' "friend" the
Firefox Privacy tab can sometimes take the TAB ID=1 hotspot, so now we
just have to call out to the browser to ask it how many tabs are
currently loaded, this is more reliable.
2018-06-05 18:50:10 +08:00