Skip to content

Instantly share code, notes, and snippets.

@coxtor
coxtor / waitForKeyElements.js
Created June 13, 2022 09:03 — forked from BrockA/waitForKeyElements.js
A utility function, for Greasemonkey scripts, that detects and handles AJAXed content.
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);
@coxtor
coxtor / place_free_udemy_courses_in_cart.py
Last active December 4, 2019 17:51
Selenium script for placing free udemy corses from e.g. mydealz into udemy shopping cart. Purchase and login still has to occur manually - very basic script.
'''
Very basic Selenium script for placing free udemy corses from an url source e.g. mydealz into udemy shopping cart.
Purchase and login still has to occur manually.
1. Enter base url - may have to change things in for future runs
2. Run the script - watch out for captchas
3. Login
4. "buy" the courses in cart
'''