Created
April 22, 2024 22:04
-
-
Save chris-castillo-dev/f35fe5c4ca2ee720e0d57bfd1770886e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
javascript:(function(){ | |
const folderID = "GOOGLE_DRIVE_FOLDER_ID"; | |
var userInput = prompt("What would you like to search for?"); | |
if(userInput){ | |
userInput = encodeURIComponent(userInput); | |
var url = "https://drive.google.com/drive/u/0/search?q=" + userInput + "%20in:" + folderID; | |
window.location.href = url; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment