ray-lothian / UserAgent-Switcher

A User-Agent spoofer browser extension that is highly configurable
https://webextension.org/listing/useragent-switcher.html
Mozilla Public License 2.0
884 stars 142 forks source link

Sibling not working for comma separated domains #203

Open lyaaz opened 4 months ago

lyaaz commented 4 months ago

In case of config:

custom mode:

{
    "a1.com": "test1",
    "b1.com,c1.com": "test2"
}

and sibling:

[
  ["a1.com", "a2.com"],
  ["b1.com", "b2.com"],
  ["c1.com", "c2.com"]
]

Then the extension only spoof ua for [a1, a2, b1, c1], but not working for [b2, c2].

https://github.com/ray-lothian/UserAgent-Switcher/blob/9c30326f35f7c3380a89796d4afd061695f7c7c6/v2/firefox/common.js#L55