chrome.storage.local.get([
  'spoofTimezone', 
  'timezoneEnabled', 
  'languagesEnabled', 
  'hardwareMaskingEnabled',
  'antiBotEnabled'
], (data) => {
  chrome.runtime.sendMessage({
    action: "dipclaw:applyStealth",
    config: {
      spoofTimezone: data.spoofTimezone || "",
      timezoneEnabled: data.timezoneEnabled !== false,
      languagesEnabled: data.languagesEnabled !== false,
      hardwareMaskingEnabled: data.hardwareMaskingEnabled !== false,
      antiBotEnabled: data.antiBotEnabled !== false
    }
  }, () => {
    // Ignore service-worker wakeup races and closed-frame errors.
    void chrome.runtime.lastError;
  });
});
