Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// Wait for page to load completely
setTimeout(async function() {
// Create overlay to show script is running
const overlay = document.createElement('div');
overlay.id = "cg-overlay";
overlay.style.cssText = `
position: fixed;
top: 0;
left: 0;
width: 100%;
(async () => {
function sleep(ms) {
return new Promise(r => setTimeout(r, ms));
}
// Create overlay
let overlay = document.createElement("div");
overlay.style.cssText = `
position: fixed;
top: 10px;