![]() ![]() You can obtain a read-only HTML5 Filesystem access to your extension's files with : ntime. You can obtain a read-only HTML5 Filesystem access to your extensions files with ntime. Since you dont want that, yes, there is another way (not available to content scripts). To do it from a content script, you need to declare it in 'webaccessibleresources'. Since you don't want that, yes, there is another way (not available to content scripts). The best ChatGPT Chrome extension for you will depend on your individual needs and preferences. What are the file formats of the files you want to read though For anything that is JSON-able, you can read/write json using JSON.stringify(), JSON. You can do that with raw XHR or, if youre using jQuery, using. To do it from a content script, you need to declare it in "web_accessible_resources". ![]() ![]() Then, click the button for ‘Add to Chrome’ to add the extension to your browser. Since it’s a Chrome extension, you can also get it for Microsoft Edge. You can do that with raw XHR or, if you're using jQuery, using $.ajax. To get Read&Write for Chrome, go to the Chrome web store and search for the extension or click this link to go directly to the listing page. As a comment mentioned, it's just a question of making a GET request to ("myfile.html"), where "myfile.html" is the relative path (from the root of the extension) to the file that you want. ![]()
0 Comments
Leave a Reply. |