Repository navigation
Commit 2da46b8
Use the 'page' heuristics input for frame text (#218)
Frame text is a whole document's innerText, so classifyFrameTextRegex now
passes 'page' to checkHeuristicPatterns, as autoconsent's own page-level
detection does. Without an input, the page-scoped negatives (age gate,
cookie-policy footer link, German cookie verb without a control) were
skipped for frames.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 0333f52 commit 2da46b8
2 files changed
Lines changed: 8 additions & 4 deletions
File tree
- post-processing/generate-autoconsent-rules
- tests/post-processing
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
0 commit comments