Skip to content

Instantly share code, notes, and snippets.

@R-WebsterNoble
R-WebsterNoble / ClickAllShows.js
Created April 11, 2024 22:42
Twitter Click All Shows bookmarklet
javascript:%28function%20clickAllShows%28%29%7B%0A%20%20function%20ClickShows%28%29%20%7B%0A%20%20%20%20var%20spans%20%3D%20document.querySelectorAll%28%27span%27%29%3B%0A%20%20%20%20spans.forEach%28span%20%3D%3E%20%7B%0A%20%20%20%20%20%20if%20%28span.textContent%20%3D%3D%3D%20%22Show%22%29%20%7B%0A%20%20%20%20%20%20%20%20span.click%28%29%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%29%3B%0A%20%20%7D%0A%0A%20%20%2F%2F%20Create%20a%20MutationObserver%20instance%20to%20monitor%20DOM%20changes%0A%20%20var%20observer%20%3D%20new%20MutationObserver%28function%28mutations%29%20%7B%0A%20%20%20%20mutations.forEach%28function%28mutation%29%20%7B%0A%20%20%20%20%20%20%2F%2F%20For%20each%20mutation%2C%20run%20the%20ClickShows%20function%0A%20%20%20%20%20%20ClickShows%28%29%3B%0A%20%20%20%20%7D%29%3B%0A%20%20%7D%29%3B%0A%0A%20%20%2F%2F%20Configuration%20of%20the%20observer%3A%0A%20%20var%20config%20%3D%20%7B%20attributes%3A%20false%2C%20childList%3A%20true%2C%20subtree%3A%20true%2C%20characterData%3A%20false%20%7D%3B%0A%0
@R-WebsterNoble
R-WebsterNoble / SavWav.cs
Last active May 23, 2024 06:08 — forked from darktable/SavWav.cs
Unity3D: script to save an AudioClip as a .wav file.
// Copyright (c) 2012 Calvin Rien
// http://the.darktable.com
//
// This software is provided 'as-is', without any express or implied warranty. In
// no event will the authors be held liable for any damages arising from the use
// of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it freely,