Skip to content

Commit

Permalink
Added donation link to HTML response pages
Browse files Browse the repository at this point in the history
  • Loading branch information
tombh committed Jul 6, 2018
1 parent 7f8893f commit 1a6fa69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Then the ideal setup for development is:
For the webextension: in `webext/` folder, `npm test`
For CLI unit tests: in `/interfacer` run `go test src/browsh/*.go`
For CLI E2E tests: in `/interfacer` run `go test test/tty/*.go`
FOr HTTP Service tests: in `/interfacer` run `go test test/http-server/*.go`
For HTTP Service tests: in `/interfacer` run `go test test/http-server/*.go`

## Special Thanks
* [@tobimensch](https://github.com/tobimensch) For essential early feedback and user testing.
Expand Down
7 changes: 5 additions & 2 deletions webext/src/dom/serialise_mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,14 @@ export default (MixinBase) => class extends MixinBase {
const date_time = this._getCurrentDataTime();
const elapsed = `${performance.now() - this._raw_text_start}ms`;
info += "\n\n" + `Built by <a href="https://www.brow.sh">Browsh</a> ` +
`on ${date_time} in ${elapsed}`;
`on ${date_time} in ${elapsed}.`;
if (this.dimensions.is_page_truncated) {
info += '\nBrowsh parser: the page was too large, some text may have been truncated.';
}
const foot = `<span class="browsh-footer">${info}</span></pre></body></html>`;

const donate = '\nPlease consider <a href="https://www.brow.sh/donate/">donating</a> ' +
'to help all those with slow and/or expensive internet.';
const foot = `<span class="browsh-footer">${info}${donate}</span></pre></body></html>`;
return head + raw_text + foot;
}

Expand Down

0 comments on commit 1a6fa69

Please sign in to comment.