Skip to content

Instantly share code, notes, and snippets.

View bluprince13's full-sized avatar
💭
Eat Sleep Code Repeat

Vipin Ajayakumar bluprince13

💭
Eat Sleep Code Repeat
View GitHub Profile
@bluprince13
bluprince13 / makeGoogleDocFileReadyOnly
Last active January 17, 2023 18:38
Make Google Docs file read only / lock / protect
// 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 = () => {