Safari drops 'lr' parameter from the URI (google.com). How to make it stay?

Hi all,

I want to be able to query Google with the additional parameter '&lr=-lang_en' (what it does - prevents results in English from being shown).

The full url is looking as follows:

https://www.google.com/search?q=query&lr=-lang_en

In Safari version 16.4, and I think a few earlier versions too, Safari overrides query parameters and drops 'lr' completely. The URI Safari ends up fetching is:

https://www.google.com/search?client=safari&rls=en&q=query&ie=UTF-8&oe=UTF-8

I've tried entering the URI manually in the address bar and using the declarativeNetRequest API from my custom extension with no success. Is there a way to make Safari 16.4 to request Google Search the way I want?

declarativeNetRequest rule I've used so far that also gets overriden:

  await browser.declarativeNetRequest.updateDynamicRules({
    addRules: [
      {
        id: 1,
        priority: 1,
        action: {
          type: 'redirect',
          redirect: {
            transform: {
              queryTransform: {
                addOrReplaceParams: [{ key: 'lr', value: '-lang_en' }],
              },
            },
          },
        },
        condition: {
          regexFilter:
            '^https://www.google.com/.*',
          resourceTypes: ['main_frame'],
        },
      },
    ],
    removeRuleIds: [1],
  });