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
| # ******************************************* | |
| # | |
| # Mod by: Jared M. Smith | |
| # Mod on: 2015.01.14 | |
| # Mod y?: Disable Google Chrome updates. | |
| # | |
| # ******************************************* | |
| # Log method | |
| function Log { Param([string]$message) Write-Host $message; } |
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
| // 📌 Paste in browser console on a loaded Classroom page like: https://classroom.google.com/u/1/c/xxxxx | |
| // Step 1: Scroll to bottom to load all content | |
| while (await new Promise(r => setTimeout(r, 1500, scrollTo(0, h = document.body.scrollHeight))) || h != document.body.scrollHeight); | |
| // Step 2: Get current authuser (from /u/1/ in URL) | |
| const authuser = location.pathname.match(/\/u\/(\d+)/)?.[1] || '0'; | |
| // Step 3: Extract unique file IDs | |
| const ids = [...new Set([...document.querySelectorAll('a[href*="drive.google.com/file/d/"]')] |