This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. Open your document on Google. | |
// 2. Go to Tools > Script Editor. | |
// 3. Copy the following script and save the script. | |
// 4. Go back to the document. | |
// 5. Go to the new Custom menu > Make file read only | |
// 6. To unlock, there will be an Unlock button on the UI (provided by Google) | |
// | |
// Inspired by https://www.labnol.org/code/read-only-google-drive-file-201011 | |
const makeGoogleDocFileReadyOnly = () => { |