Skip to content

Instantly share code, notes, and snippets.

View NiceAesth's full-sized avatar
💤

Andrei Baciu NiceAesth

💤
View GitHub Profile
@NiceAesth
NiceAesth / waitForKeyElements.js
Created January 13, 2022 14:42 — 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
);
@NiceAesth
NiceAesth / osustyle.js
Last active April 9, 2021 15:20 — forked from iptq/README.md
// ==UserScript==
// @name OsuStyle
// @version 1
// @grant none
// @include https://osu.ppy.sh/*
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];