It all looks very good, you can programmatically make shared public folder for hosting and add content. But what if I just wanted to host some .js (javascript) files which I have ready? Must I write a program to implement this hosting? Fortunately, I don't.

Hosting web files on Google Drive

First you have to create a directory in your drive. It can be a subdirectory (of a non-shared directory), for example in the root I have sub directory "Web Hosting" (private dir) which has all the public web hosting directories I have made.

After you have created the directory, you can upload files there. When you want to begin hosting those files, select "Share..." for the directory, and under "Who has access" change the directory to be public on the web. Copy the "Link to share" url from the sharing dialog.

To get the web hosting url, use this tool ("Google Drive hosting url tool" hosted under my Google Drive):

what? Gdrive or Google Sites as an hosting web? i'm not using both of them.. that's not same with Web Hosting. On Gdrive or Gsites, you will not get script EDITOR. so how? download the script file, edit it, then upload it again. copy the new URL, add it/replace it into the blog.

so that's makes me using Free webhost like 000webhost, etc. why? just edit online any script file on the ftp. and script updated..