Skip to content

Instantly share code, notes, and snippets.

View sunday-mayweather's full-sized avatar
😃

Sunday Mayweather sunday-mayweather

😃
View GitHub Profile

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

@sunday-mayweather
sunday-mayweather / ScrapeOffFormSkeletonFromGoogleForms.cs
Created September 19, 2024 17:18 — forked from UdaraAlwis/ScrapeOffFormSkeletonFromGoogleForms.cs
Access your Google Forms page data from dotnet C#
// using HtmlAgilityPack;
// using Newtonsoft.Json.Linq;
private static async Task ScrapeOffFormSkeletonFromGoogleFormsAsync(string yourGoogleFormsUrl)
{
HtmlWeb web = new HtmlWeb();
var htmlDoc = await web.LoadFromWebAsync(yourGoogleFormsUrl);
var htmlNodes = htmlDoc.DocumentNode.SelectNodes("//script").Where(
x => x.GetAttributeValue("type", "").Equals("text/javascript") &&
@sunday-mayweather
sunday-mayweather / open_form.py
Created September 19, 2024 17:11 — forked from gcampfield/open_form.py
A script to spam open Google forms with any information you'd like
#!/usr/bin/env python3
from random import random
import requests
import time
import json
import sys
import re
FORM = 1
FIELDS = 1
@sunday-mayweather
sunday-mayweather / googlesender.py
Created September 19, 2024 17:10 — forked from davidbau/googlesender.py
Python 2 script for generating a JavaScript/jQuery function for submitting to a Google Form
# Google form submit-maker.
#
# Usage: python googlesender.py https://docs.google.com/forms/d/e/1.../viewform
#
# Point this python file at a live Google forms URL, and it will generate
# code for a Javascript function that submits to that form cross-domain.
#
# Notes:
# - The form should be created with "short answer text" questions.
# - The viewform URL to scrape is the link shared when the form is sent.