Commit Graph

427 Commits

Author SHA1 Message Date
Thomas Buckley-Houston a9e183f537 Move linters to end of block 2018-07-11 17:39:18 +08:00
Thomas Buckley-Houston a43a9bd197 Version 1.3.0 2018-07-11 17:34:26 +08:00
Thomas Buckley-Houston 5263897fb1 Add 386 and arm64 builds 2018-07-11 17:33:58 +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 2fc0b5cde3 Formatted all Go code
Closes #97
2018-07-11 17:00:06 +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 be098c0673 Redirect HTML service requests for favicon.ico
... to a real favicon
2018-07-11 16:46:33 +08:00
Thomas Buckley-Houston 85affab04d Collapse recursive URLs to the HTML service
Eg; https://html.brow.sh/https://html.brow.sh/google.com
jsut becomes google.com
2018-07-11 16:39:35 +08:00
Thomas Buckley-Houston 3d0c224a6b Error if Firefox version is older than 57 2018-07-11 15:43:47 +08:00
Thomas Buckley-Houston 24c49213e2 Use `firefox | firefox-esr` as OR dep for .deb
Touches #103

Though note that currently Debian Stretch's Firefox version is 52,
which is not new enough for Browsh.
2018-07-11 15:20:33 +08:00
Thomas Buckley-Houston b8d031e498 Goreleaser: format default zip, override to binary
This is the wrong way round, it should default to binary as that's what
most of the OS's are and just set the zip override for `darwin`.

Watch this issue for updates:
https://github.com/goreleaser/goreleaser/issues/720
2018-07-11 15:05:37 +08:00
Thomas Buckley-Houston 3cc5485c2f Merge branch 'master' of github.com:browsh-org/browsh 2018-07-11 11:55:58 +08:00
Thomas Buckley-Houston b4c9f2d4e6 Added Homebrew Tap recipe 2018-07-11 11:55:19 +08:00
Thomas Buckley-Houston 3ee9b16ea8 Prevent mouse interaction crashing app
Possibly helps everyone in #63, #73 and #94

Whether it solves the issue or not, this definitely fixes a bug.
`CurrentTab` doesn't refer to anything until the first frame is received
from the webextension, yet tthe `handleMouseEvent` function can be
triggered long before that.
2018-07-11 11:30:22 +08:00
traBpUkciP a3b8c05b60 Use Backticks to Wrap String With Slashes
Oops. Quick fix.
2018-07-11 06:22:49 +07:00
traBpUkciP 78b021f822 Add Support for 64 bit Firefox Installations (#87)
Should fix up #87 and all the other related issues. Haven't wrote any golang for a year but I think it was a pretty simple fix so I took it on; however ff someone wouldn't mind giving it a second set of eyes that would be awesome. I'm stoked to try the app out, it's looks so cool :P

Cheers
2018-07-11 06:22:49 +07:00
Emiel Wiedijk d79b8810dc Check for $GOPATH
The shell script in interfacer/contrib/setup_go.sh expands the $GOPATH
variable to download a script to $GOPATH/bin. However, if $GOPATH is not
set, that expands to /bin. If the script is run with root privileges
(accidentally), this will download a "strange" executable to /bin, which
is supposed to be for system executables. If it is run without root
privileges, it gives an (unclear) error about permissions. This commit checks
if $GOPATH exists. If it $GOPATH does not exist, it exits with error code 1.
2018-07-11 06:21:23 +07:00
Thomas Buckley-Houston 7e21f89ca9 Merge branch 'master' of github.com:browsh-org/browsh 2018-07-10 10:45:55 +08:00
Thomas Buckley-Houston bd08ae4ebd Version 1.2.3 2018-07-10 10:45:38 +08:00
Thomas Buckley-Houston 65936913cb Don't use curl's --fail in setting up Browsh
Seems to fail every time
2018-07-10 10:44:34 +08:00
Thomas Buckley-Houston c26b632b5d Remove gcloud_logger from Dockerfile
It's not needed now that Kubernetes integrates with GCE's Stackdriver
2018-07-10 10:43:48 +08:00
Thomas Buckley-Houston 74fd11ab7b Correct link on text.brow.sh home page 2018-07-10 09:11:06 +08:00
Baptiste Fontaine 19d97a8fe7 README: Fix a typo 2018-07-09 20:41:23 +07:00
Thomas Buckley-Houston c457210c72 Refactor disallowed domains in HTTP service 2018-07-09 19:22:51 +08:00
Thomas Buckley-Houston 90078ff6c0 Add `--fail` and `set -e` when setting up Browsh
As per @zutto's suggestion in #62

This will at least notify us when something goes wrong during a Docker
build.
2018-07-09 19:21:25 +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 4b9ff90933 Change Docker image name in README to browsh's 2018-07-08 17:51:34 +08:00
Thomas Buckley-Houston ba373e9815 Change 'texttop' refs to 'browsh' 2018-07-08 17:07:10 +08:00
Thomas Buckley-Houston 0c22a05054 Merge branch 'webext-rewrite'
Big moment
2018-07-08 16:46:49 +08:00
Thomas Buckley-Houston f6308f0f7b Version 1.2.0 2018-07-08 16:01:39 +08:00
Thomas Buckley-Houston 160a19ece8 Add arg for HTTP server bind address
Eg; `browsh -http-server-bind 127.0.0.1`

Fixes #57
2018-07-08 15:41:13 +08:00
Thomas Buckley-Houston 26fa4cb3de Use www.brow.sh's HTML service welcome page
It's nice to see the big Browsh logo rather just some boring plain text
2018-07-08 15:33:08 +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 085419160e Add gif to README 2018-07-07 23:12:43 +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 8bd5f3df0a Post-release hook to update www.brow.sh version 2018-07-06 14:53:49 +08:00
Thomas Buckley-Houston 1a6fa690f5 Added donation link to HTML response pages 2018-07-06 13:43:53 +08:00
Thomas Buckley-Houston 7f8893fe14 Add logo to TTY startup. README updates 2018-07-06 13:17:28 +08:00
Thomas Buckley-Houston 752f34ddb3 Redirect HTTP to HTTPS 2018-06-27 17:10:48 +08:00
Thomas Buckley-Houston af1f47bc65 Version 1.1.4 2018-06-26 15:46:05 +08:00
Thomas Buckley-Houston 16f1917ed8 Basic application-level HTTP rate limiting
Here set to 10 requests per minute. Note that the current implementation
doesn't use a shared store across instances, so in effect clients can
request on average instances-count * 10 requests per minute.
2018-06-26 15:21:10 +08:00
Thomas Buckley-Houston c0c68842f0 Added gzip compression to HTTP server 2018-06-26 13:57:52 +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 2e1de9dab1 Add 10min public cache to HTTP server 2018-06-25 22:06:29 +08:00
Thomas Buckley-Houston c549f74bf5 The tagging saga continues :'( 2018-06-25 22:06:20 +08:00
Thomas Buckley-Houston 5ddba85a0d Don't put any HTML in plain raw pages 2018-06-23 19:42:51 +08:00