-1

I'm new in chrome extension developing. So, I have a content script with a function that track the mouse movement.Can I save the result of function into a file ?? I read a lot and I understand this "you can't access at filesystem with chrome extension", so it doesn't matter, it's ok another solution anyway.

tkk
  • 13
  • 3

1 Answers1

0

If it's so important to store the results in a real file, not just inside chrome.storage.sync and show it in the extension popup window, then use nativeMessaging and create separate programs for each platform you're planning to support.

wOxxOm
  • 65,848
  • 11
  • 132
  • 136
  • Don't forget the good old "make a text blob, download it" trick. – Xan Nov 12 '15 at 02:10
  • It crossed my mind but it's too limited, afaik you can't read it, can't append to it, can't specify a different folder – wOxxOm Nov 12 '15 at 02:14
  • Not a single one of those requirements was specified. – Xan Nov 12 '15 at 02:18
  • Well, those make sense for logging. For example the file may contain dates and URLs of pages with the distance of mouse movements and click count. – wOxxOm Nov 12 '15 at 02:19
  • @wOxxOm The file will contain a set of (x,y) coordinate and the URL of tab where I get it. At the moment the most important thing is save the file with this data everywhere on file system, in the future I will find an another solution. – tkk Nov 12 '15 at 10:32