Chrome extension for Google Shared Drive Changes - google-chrome-extension

I am trying to enforce naming schemes for Google Shared Drives. Is it possible to create an extension that has a pop up occur when someone changes the name of a specific folder or file in a Google Shared/Team drive?

Related

sync chrome extension storage across devices without publishing in web store

My situation is that I have developed a chrome extension. So, I have the extension source code as well. I wanted to use the extension on different devices like copy-pasting the source code.
Suppose, it's a to-do list extension. Is there any way, if I add a todo (in extension) in local storage in any device,( used storage. sync) this todo will be synced with the other devices extension too?

How can I use a website I made, offline and reconnect to local files instead of files on the google drive?

I made a website that links to files loaded on google drive. Its a basic website and you can navigate to different sections and then access pdf files and images that are stored on a google drive. I need to figure out a way to make this be usable offline. I was thinking of just copying the whole website to a thumbdrive. However I dont know a way to make the external google files work offline. Is there a easy way to do this?

Save a file from Chrome extension to Google Drive

I have created a chrome extension to learn English that build a dictionary with source/translation, etc.
Now, I want to send this "file" (I will/would build a "file" with the dictionary entries) to Google Drive and use this file in my Android app.
But I want to save this file not on my personal Drive account, but in the Drive of the current user, the user who uses the chrome extension (if this user has a Drive account, of course).
In all the examples I found, they define the OAuth for "my" account ("my" = the chrome developer in the manifest.json, so, static).
Is there a way to save in the drive of the user?
Use the 'chrome.storage' API to store, retrive and track changes to user data.
Please refer to the link:
https://developer.chrome.com/extensions/storage

How to access file and directory structure outside the sandbox from chrome extension?

I know about file system api exposed to native client but it seems it can not allow access outside sandbox. There is an api which can allow access outside sandbox by a prompt window.
If my understanding is correct it can not allow access to a directory. I recently came across chrome dev which allow you to create workspace in any directory and allows cut, copy and paste operations even at directory level. I am wondering how are they getting the access to files and directory outside sandbox.
The extension which I am referring is:
https://github.com/dart-lang/chromedeveditor
Chrome Dev Editor is not a Chrome extension, but a Chrome App. Chrome Apps can use the chrome.fileSystem API to read and write to directories and files that are selected by a user.
Extensions can only access a sandboxed filesystem using the non-extension-specific FileSystem API. The only API that allows extensions to write outside the virtual filesystem is chrome.downloads.download, which allows extensions to save a file to a directory as chosen by the user. After this operation, an extension can delete, but not modify the (downloaded) file.
(and if your extension requests the file://*/* or <all_urls> permission and the user ticks the "Allow access to file URLs" checkbox at the Extensions page, then your extension will have read-only access to the user's filesystem; if you want to pursue this method, read https://stackoverflow.com/a/19493206)

Lauch external program in firefox or chrome

We have a custom web app in our intranet that allow users to browse and search our shared file system in a way more appropriate for our organization. as compared to windows explorer/mac finder. However, when the users click on, for example, a link pointing to a word document the document is downloaded by the browser and then opened. I am trying to provide a better way, namely that the file is opened directly from the shared folder that each user has mapped in his own computer. This will make things faster and will not pollute the browser download folder.
I was planning to create a chrome or firefox extension that recognizes certain css class attached to a link, remaps the link to the shared file system and and launch an external process. Any idea how to achieve this? Is there a better solution?
If you want the URL to be handled by a custom program you could create special URLs using a custom Protocol (ex: MyApp:// instead of http://) and then register that protocol to be opened via a custom program. The links would only work on computers that have your program installed and where the protocol has been registered to be handled by your application.

Resources