1

Wrong highlighting of domain name

I often access the domain mafreebox.freebox.fr which is the configuration page for my internet box.

But unlike other domains, where only the root domain is highlighted (e.g. unsplash.com for images.unsplash.com), only the word "ma" is dimmed and freebox.freebox.fr is highlighted.

In the source code, I found this code (beautified):

(0, js.jsx)(uC, {
    domain: t.domain,
    className: "me-2"
}), !t.tracker && (0, js.jsxs)("span", {
    className: "notranslate domain",
    children: [(0, js.jsx)("span", {
        style: {
            opacity: .6
        },
        children: vx(t.domain.substr(0, t.domain.indexOf(t.root)))
    }), vx(t.domain.substr(t.domain.indexOf(t.root)))]
})

and it seems that it is looking for the first occurrence of the root domain.

But if the root domain is already contained previously, this doesn't work, and it's the case with mafreebox.freebox.fr.

After adding this line in my uBlock Origin filters (i.e. replacing indexOf by lastIndexOf):

||my.nextdns.io$script,replace=/t\.domain\.indexOf\(t\.root\)/t.domain.lastIndexOf(t.root)/g

the problem was fixed.

So could you fix this issue?

Reply

null

Content aside

  • 1 Votes
  • 2 wk agoLast active
  • 11Views
  • 1 Following