javascript - Is it possible to manipulate the cookies of a remote computer via Chrome extension? -


some background information:

i have implemented working chrome extension manipulate cookies within browser, not unlike editthiscookie. basic functionalities include adding, removing, editing, importing , exporting cookies.

question:

currently, importing , exporting cookies work json flat files have sent around, increased convenience, wondering if possible import cookies on local computer directly remote computer via extension. basically, 'push , set' cookies 1 computer another. simplicity, both signed same google account. of course there needs way identify , authenticate remote computer i'm thinking of possibly using authentication apis might available.

as idea still in infancy, ask if technically feasible? there technical limitations regarding chrome extensions (how sandboxed etc.) should know prevent me achieving goal?

assuming:

  • both chrome instances signed same account
  • extension installed on both
  • chrome sync enabled extensions (default)

in case, chrome.storage.sync api automatically replicates changes storage between instances. need in case is:

  • change cookies in 1 instance
  • record desired cookie state in chrome.storage.sync
  • detect storage change in other instance chrome.storage.onchanged
  • process changes replicate cookie state

be aware chrome.storage.sync not provide transaction log of changes - latest state. trying store transaction log in chrome.storage.sync can perform exact same operations hit storage quotas fast.

if quotas or requirements of sync storage not fit use case, you'll need make own data backend server. can communicate realtime updates chrome chrome.gcm api or websocket connection, , use google's oauth authentication.

there exist backend services can easier use rolling out own server, example firebase. there's sample extension started.

if cannot assume other instance has same extension installed, can't manipulate cookies remotely, not synced chrome remote sources.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -