Skip to content

Instantly share code, notes, and snippets.

View AB498's full-sized avatar

AB498

  • 09:07 (UTC +06:00)
  • Facebook ab100
View GitHub Profile
@AB498
AB498 / DisableChromeUpdates.ps1
Created September 28, 2025 03:58 — forked from absynce/DisableChromeUpdates.ps1
Disable Chrome updates in Windows via the registry.
# *******************************************
#
# 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; }
@AB498
AB498 / scrape_download_drive_files_google_classroom.js
Last active July 23, 2025 15:34
Scrape + Download Google Classroom Files [Script]
// 📌 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/"]')]