Skip to content

Instantly share code, notes, and snippets.

@hayleyxyz
hayleyxyz / clear_yt_playlist.js
Created February 27, 2025 17:22
Clear YouTube playlist
// Go to https://www.youtube.com/playlist?list=WL
setInterval(function() {
document.querySelector('#primary button[aria-label="Action menu"]').click();
var things = document.evaluate('//span[contains(text(),"Watch later")]', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0; i < things.snapshotLength; i++) {
things.snapshotItem(i).click();
}
}, 1000);
@hayleyxyz
hayleyxyz / aci episodes.json
Created November 25, 2024 00:08
ACI Episodes
[
{
"episodeNumber": 1,
"episodeInSeason": 1,
"title": "Unlocking Disaster",
"incident": "United Airlines Flight 811",
"incidentWikiPage": "https://en.wikipedia.org/wiki/United_Airlines_Flight_811",
"airDate": "2003-09-10T00:00:00.000Z",
"description": "On 24 February 1989, part of the right-side fuselage of United Airlines Flight 811 rips off, ejecting nine people from the aircraft and causing explosive decompression. The flight later lands safely at Honolulu without any more loss of life. It was later determined that an electrical short circuit caused the cargo door to open.\nNote: This accident is covered again in the Season 24 episode 'Terror Over The Pacific'.\n\n\nType of aircraft: Boeing 747-100",
"season": 1
@hayleyxyz
hayleyxyz / YouTube-Mayday-videos.json
Created November 2, 2024 21:35
Mayday YouTube video titles + URL
[
{
"title": "The Worst Crashes of 90s and 00s | Mayday Air Disaster",
"link": "https://www.youtube.com/watch?v=r6m9AM1cOxY"
},
{
"title": "When Nature Fights Back! | Mayday Air Disaster",
"link": "https://www.youtube.com/watch?v=V5F4oJeWnN8"
},
{
@hayleyxyz
hayleyxyz / ProcessWatcher.cs
Created July 27, 2024 15:35
ProcessWatcher.cs - Watch for process stop/start events
using System;
using System.Management;
namespace ExplorerHistory
{
internal class ProcessWatcher
{
private ManagementEventWatcher _startWatch;
private ManagementEventWatcher _stopWatch;
@hayleyxyz
hayleyxyz / How to remove zscaler
Last active February 17, 2025 10:44
How to remove zscaler without password
1. You will need admin access.
2. Suspend the zscaler processes
- I use this: https://systeminformer.com/
3. Open regedit and navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Zscaler Inc.\Zscaler
4. Delete the key: UninstallPassword
- If you have suspended the processes, the key will not be immediately added back in.
5. Uninstall zscaler like you would any other program, via the control panel.
================================================================================================
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32]
@=""
// ==UserScript==
// @name quora bypass
// @version 1
// @grant none
// @match https://www.quora.com/*
// ==/UserScript==
document.querySelectorAll('.qu-zIndex--blocking_wall').forEach((el) => {
el.remove()
});
@hayleyxyz
hayleyxyz / some other dumb random string generator i made.js
Created January 28, 2022 17:06
some other dumb random string generator i made.js
const rnd = (len) => {
const arr = new Uint8Array(len);
crypto.getRandomValues(arr)
let str = '';
for(i in arr) {
start = 33;
end = 126;
str += String.fromCharCode((arr[i] % (end - start)) + start)
@hayleyxyz
hayleyxyz / dumb lowercase alphanumeric random string generator.js
Created January 28, 2022 16:54
dumb lowercase alphanumeric random string generator.js
const rnd = (len) => {
let ret = '';
while(ret.length < len) {
ret += Math.floor(Math.random() * Math.pow(36, Math.min(len, 32))).toString(36);
}
return ret.substring(0, len);
};
{"1":["Racing the Storm","Unlocking Disaster","Flying Blind","Flying on Empty","Cutting Corners","Fire on Board"],"2":["Blow Out","A Wounded Bird","The Killing Machine","Deadly Crossroads","Lost","Missing Over New York"],"3":["Crash of the Century","Hanging by a Thread","Attack Over Baghdad","Out of Control","Fight for Your Life","Bomb on Board","Mistaken Identity","Helicopter Down","Death and Denial","Kid in the Cockpit","Collision Course","Ocean Landing","Head on Collision","Runaway Train"],"4":["Miracle Escape","Falling from the Sky","Fire Fight","Missed Approach","Hidden Danger","Panic Over the Pacific","Out of Sight","Fog of War","Vertigo","Ghost Plane"],"5":["Invisible Killer","Behind Closed Doors","Gimli Glider","Dead Weight","Fanning the Flames","Southern Storm","Explosive Evidence","Mixed Signals","Fatal Distraction","Phantom Strike"],"6":["Ripped Apart","Fatal Flaw","Who's Flying the Plane?"],"7":["Scratching the Surface","Lockerbie Disaster","Blown Apart","Sight Unseen","Operation Babylift","Fallin