Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否考虑添加一些同步设置 #443

Open
lambdato opened this issue Feb 22, 2025 · 5 comments
Open

能否考虑添加一些同步设置 #443

lambdato opened this issue Feb 22, 2025 · 5 comments
Labels
enhancement New feature or request

Comments

@lambdato
Copy link

page-assist 在手机浏览器,比如 firefox上也能用。但是,我电脑上page-assist的各种设置,提示词 和 通过 OpenAI 兼容 API 配置好的在线模型都要手动一遍遍的重新配置就很麻烦。能不能通过配置导出,或者在线同步等方式,实现一键多端同步的功能?

@arkCyber
Copy link

各节点需要建立有通信功能与认证功能,估计难度有点高!copy data 的方法比较简单

@lambdato
Copy link
Author

lambdato commented Feb 23, 2025

各节点需要建立有通信功能与认证功能,估计难度有点高!copy data 的方法比较简单

firefox and chrome 有个插件 叫做 [SwitchyOmega] 。这个插件只要登陆firefox 或 Google账号,就能自动同步设置。不知道 page-assist 是否能利用这类功能。

@lambdato
Copy link
Author

lambdato commented Feb 23, 2025

firefox and chrome 有个插件 叫做 [SwitchyOmega] 。这个插件只要登陆firefox 或 Google账号,就能自动同步设置。不知道

问了下 ChatGPT, 给出的答案是这样的

SwitchyOmega automatically synchronizes its settings by leveraging the browser’s built-in sync storage mechanism. In Chrome, the extension typically uses the chrome.storage.sync API to upload configuration data—usually stored in JSON format—to Google’s servers. When you sign in to the same Google account on another device, Chrome downloads this data from the cloud, ensuring that your settings remain consistent across devices.

Similarly, Firefox uses its native Firefox Sync service. Once you log in to your Firefox account, the extension’s settings (provided that it has been set up with the necessary sync keys in its manifest) are automatically uploaded and downloaded via Firefox Sync, achieving the same result.

This approach fully exploits the cloud synchronization services built into modern browsers, eliminating the need for developers to maintain separate servers or implement additional sync logic—resulting in a solution that is both secure and efficient.

@n4ze3m
Copy link
Owner

n4ze3m commented Feb 23, 2025

Hey, Page Assist uses sync storage for settings. I haven't tested if it's possible to sync storage between browsers, but sync is used in the settings. I'll look into it more and let you know.

@n4ze3m n4ze3m added the enhancement New feature or request label Feb 23, 2025
@lambdato
Copy link
Author

Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants