Blogger Tutorials

Google is About To Shut Down Google Code But You Can Host Your Scripts and Files On Google Drive

No one knows about what Google is going to do these days. Recently I got an email from them regarding the shutting down of Google code i.e. which is an open source code sharing area which hosts many scripts and coding files on it. However at present they have stopped new projects but have decided to close it around next year. They provide migration of all projects to GitHub but if you want to have your files in Google Drive then you can also do so by a following some little steps.
Here are the steps to be followed : 

1. Upload your files to Google Drive 

Go to and upload the files to be hosted on it.

2.Make the files Public on the Web

Select the files and click on right mouse button and navigate to share.
In the ‘Sharing settings’ window, click on the ‘Change’ link and choose the ‘Public on the web’ option. Press ‘Save’ and copy the link(s) of your uploaded file(s) from the ‘Links to share’ box highlighted in blue, then paste it into a Notepad to use it later.

3. How to use the scripts in html or in Blogger or in any place

Before you can use the links, you must replace ‘‘ to ‘‘ and remove ‘/edit?usp=sharing‘ in the link.

For example, the link to mycssfile.css that I copied looks like this:

Notice the part in blue after the “/file/d/” part. That is the file ID which is used to access it via the new hosting service. It should start with the following URL:

Add the file ID like this (remove the ‘/edit?usp=sharing’ part):

Now log into your Blogger account, select your blog and go to Template > Edit HTML. Click anywhere inside the code area and press the CTRL + F keys to open the search box:

If you want to add a CSS file, type the following tag inside the search box and hit Enter to find it:


Just BELOW the <head> tag, add this line:

<link rel=”stylesheet” type=”text/css” href=”” />

And replace with the link of your CSS file:

If you want to add a Javascript file, search for the following tag:


And add this line just ABOVE it:

<script src=’‘ type=’text/javascript’></script>

Replace the line in blue with your URL:

Finally, press the ‘Save template’ button to save the changes. And you’re done!

Article written by:

Satyendra is a market researcher from the city of nawabs, Lucknow. Apart from blogging, his other interests are Indian rap knowledge, affiliate marketing, research, and basically anything nerdy.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

back to top