Pavel Beloborodov
0c285e3920
Fixed possible html injection in speedreader. ( #34778 )
...
* Using AppendText instead of raw strings manipulation.
2026-03-25 11:39:34 +07:00
cdesouza-chromium
daef249ec0
[CodeHealth] Replace ternary ops with logical expressions ( #31558 )
...
This PR is part of a couple of changes correcting these redundant
ternary operations:
```
x ? y : false -> x && y
x ? false : y -> !x && y
x ? y : true - > !x || y
x ? true : y -> x || y
```
This PR mirrors upstream work being done in the same direction:
https://issues.chromium.org/issues/416294715
Bug: https://github.com/brave/brave-browser/issues/49819
2025-10-01 21:17:34 +01:00
Mihai PLESA
f2deccb789
community.brave.app migration ( #30622 )
...
* community.brave.app migration
2025-08-13 18:00:12 +01:00
Jakub Wądołowski
be8e54c8bb
chore: Update support domain name ( #29625 )
...
* chore: Update support domain name
* fix: Resolve formatting issue reported by CI
* chore: Conflict resolution
* fix: Update support.brave.com ref
2025-08-11 22:09:03 +01:00
Max Karolinskiy
f53cb20d4f
Updates support links. ( #29355 )
2025-06-04 06:44:37 -07:00
Brian Johnson
3bae86bc78
remove last modified date display from speedreader template ( #28146 )
2025-03-14 20:27:32 +01:00
Darnell Andries
20ec1ca7d8
Update html5ever/markup5ever for speedreader/kuchikiki
2025-02-25 15:37:44 -08:00
Terry Mancey
ab45645068
[ads] Refactor public facing enums to use mojom
2024-09-05 17:34:07 +01:00
Pavel Beloborodov
5a865fdd34
Json writer instead of ReplaceString. Removed 'class' attributes from distilled pages. ( #24439 )
2024-07-08 07:10:13 -07:00
Pavel Beloborodov
6ba1fe27f4
Tags order of the meta and base elements has been preserved. ( #22369 )
...
* Filtered meta tags. (csp & content type only allowed).
* Head elements order preserved.
* Ignore csp tags outside <head>.
2024-03-06 16:19:05 +07:00
Pavel Beloborodov
1e717be32a
Fixed html injection. ( #22307 )
...
* Fixed html injection.
2024-02-27 18:41:50 +07:00
Pavel Beloborodov
358e662a79
Allowed base-uri in speedreader mode. ( #22137 )
...
* Allowed base-uri in speedreader mode.
* <base> tag from original document is preverved.
2024-02-21 17:49:43 +07:00
Pavel Beloborodov
f96ab479ca
Original document security settings apply to speedreader document ( #21958 )
...
* Original HTML meta tags preserved in speedreader mode.
2024-02-14 18:42:13 +07:00
Ralph Giles
634e4318b0
speedreader: Update distillation references for kuchikiki 0.8.2
...
Attribute ordering in the simplified pages has changed, verified
by running `tidy --sort-attributes alpha` on both the new and
old versions from the failure report. Otherwise where are no
changes to document content or structure.
Fixes SpeedreaderRewriterPagesTest.CheckPages unit test failures.
2024-01-25 11:43:36 -08:00
Pavel Beloborodov
9f4cdf5c73
Fixed speedreader engine bugs. ( #21586 )
...
* Fixed speedreader engine bugs.
2024-01-17 16:13:42 +07:00
Pavel Beloborodov
a4cea8758c
[Part 1] Added debug view for useless nodes. ( #21551 )
...
* Added useless nodes debug view.
* Added debug_view feature flag.
* Fixed: presentational attributes not removed on usable elements.
2024-01-16 18:33:42 +07:00
Pavel Beloborodov
cf4e68efc8
Added column width control to the toolbar. ( #20446 )
...
* Added column width control to the toolbar.
2023-10-19 14:12:29 +07:00
Pavel Beloborodov
1e9250d48d
Speedreader toolbar ( #18393 )
...
* Added Reader mode toolbar.
2023-07-07 16:12:04 -04:00
Pavel Beloborodov
8382c426b8
Speedreader output's structure changed. Now it can be summarized by AI. ( #18512 )
...
* Speedreader output's structure changed. Now it can be summarized by AI.
2023-05-19 04:37:02 +02:00
Pavel Beloborodov
6677756ad2
Updated speedreader CSS. Added read time. ( #17441 )
...
* Updated speedreader CSS. Added read time.
2023-03-14 11:40:51 +01:00
Pavel Beloborodov
57663bffbc
Fixed schema parsing from jsonld. ( #16500 )
2023-01-16 08:56:15 +07:00
Pavel Beloborodov
303bff364b
Fixed design of the speedreader view. ( #16130 )
...
* Fixed design of the speedreader view.
2022-12-09 13:44:28 +07:00
Pavel Beloborodov
434bc8f580
Svg tags removed from distilled pages. ( #16186 )
2022-12-03 18:13:15 +07:00
Jay Harris
63be302a09
Fix bad license (http ==> https)
2022-11-09 18:31:39 +13:00
Pavel Beloborodov
ee8ca100fe
Added Font, FontSize & ContentStyle APIs. ( #15316 )
...
* Added Font, FontSize & ContentStyle APIs.
2022-10-11 08:59:13 +07:00
Pavel Beloborodov
135117712b
Removed <source> elements on <picture>s. ( #14791 )
...
* Removed <source> elements in <picture>-s.
2022-08-26 20:49:17 +07:00
Pavel Beloborodov
712c0ba3d6
Removed Ads headers and div-s. ( #14823 )
...
* Added test data for nationalpost.com.
2022-08-26 13:10:36 +07:00
Pavel Beloborodov
da4fccfb3f
Replace a sequence of <br>-s with one <br>. ( #14761 )
...
* Replace a sequence of <br>-s with one <br>.
2022-08-25 17:42:29 +07:00
Pavel Beloborodov
3b1745dafa
Speedreader pages for testing ( #14696 )
...
* Added collector.
* Added test pages for speedreader.
* Added tools for visual report.
* Added report exporter.
2022-08-23 20:53:39 +07:00
Pavel Beloborodov
a9d5f12c3b
Added theme change support in speedreader. ( #14307 )
...
* Added theme change support in speedreader.
* Fixed position of 'original page' link.
2022-08-02 15:45:47 +07:00
Pavel Beloborodov
65d802b6ef
Added 'Show original page' link into distilled site. ( #13814 )
...
* Added 'Show original page' in speedreader distilled page.
* Exec js only on distilled pages.
2022-06-30 16:17:42 +07:00
Pavel Beloborodov
5d436498aa
BODY is always the root tag. ( #13711 )
2022-06-13 13:46:16 +07:00
Pavel Beloborodov
eca84a493b
Сhecking the length of the text after conversion ( #12838 )
...
* Removed unused code & added output length check.
* Added feature param to control a minimal success output content length.
2022-04-05 14:04:40 +07:00
Pavel Beloborodov
29d0cf7b78
Span is no longer used as a root element. It is replaced by a div. ( #12749 )
2022-03-26 10:50:06 +07:00
Pavel Beloborodov
35e2c7b7ec
Select shortest description instead of preferring json+ld. Added re… ( #12731 )
...
* Select shortest description instead of preferring json+ld. Added regular unit tests for Rust rewriter.
2022-03-25 21:00:16 +07:00