Google Apps Script How to link to JS or CSS file on Google Drive

前端 未结 5 1385
轻奢々
轻奢々 2021-02-04 14:00

Can I keep style.css or anyscript.js hosted on a folder on Google Drive and then include the script with a link to the file in

5条回答
  •  粉色の甜心
    2021-02-04 14:08

    I found out that the direct link workaround has changed a bit. You can download any file using the following url now:

    https://drive.google.com/uc?export=download&id=[PutYourIdHere]

    This is how you extract the id of your file:

    https://drive.google.com/file/d/1gIax1-2397HJFLSJFOIUWEIJ23/view?usp=sharing

    Here 1gIax1-2397HJFLSJFOIUWEIJ23 is the ID

提交回复
热议问题