Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion app/src/main/assets/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@
var el = els[i];
if (el.closest('[data-filtered]')) continue;
var text = el.textContent || '';
var trimmed = text.trim();
// WebLite appends private-use icon-font glyphs to labels, e.g. the
// "Sponsored" label's textContent is actually "Sponsored" + U+F078B/U+F17E1.
// Strip those so exact-match comparisons below still work.
var trimmed = text.replace(/[\uE000-\uF8FF]|[\u{F0000}-\u{FFFFD}]|[\u{100000}-\u{10FFFD}]/gu, '').trim();
var h = el.getBoundingClientRect().height;

// ADS: short element containing "Ad" (not "Add", not "Ads Manager")
Expand Down
5 changes: 4 additions & 1 deletion filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@
var el = els[i];
if (el.closest('[data-filtered]')) continue;
var text = el.textContent || '';
var trimmed = text.trim();
// WebLite appends private-use icon-font glyphs to labels, e.g. the
// "Sponsored" label's textContent is actually "Sponsored" + U+F078B/U+F17E1.
// Strip those so exact-match comparisons below still work.
var trimmed = text.replace(/[\uE000-\uF8FF]|[\u{F0000}-\u{FFFFD}]|[\u{100000}-\u{10FFFD}]/gu, '').trim();
var h = el.getBoundingClientRect().height;

// ADS: short element containing "Ad" (not "Add", not "Ads Manager")
Expand Down
Loading