Using firefox, I can save the extension settings with Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService);
Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService);
What interface can I use to store settings in Chrome? And are they overwritten by extension?
thank
You can use localStorage API. See http://code.google.com/chrome/extensions/options.html for an example of creating a settings page with this, but most simply you can do:
localStorage['foo'] = 'bar'; // Store data var foo = localStorage['foo']; // Get data
This data will also not be deleted when updating updates.
HTML5 (localStorage) .
coockies , ( ).
/ localStorage... Map, - JSON.stringify JSON.parse.
Source: https://habr.com/ru/post/1735518/More articles:Get RowDefinition Height Programmatically - wpfLocate an insecure HTTP request sent on a secure page that launches IE6 "Notification on the absence of secure elements" - httpbuildmap bootstrap in the / dll class library - structuremap.NET Regex query to search for ONE new line - splitCombined function for fprintf and writing in c / C ++ - c ++MySQL error 1205: timed out waiting for lock wait - mysqlUser registration in Drupal - drupalJava Comparable Comparison Comparison Method - java.NET Framework - Application Overhead - .netCan we use compiled Haxe swf swc in ActionScript as regular libs? - flashAll Articles