This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a script to download all songs in a playlist from Toasterland. In order to accomplish this, you can either paste this script into the console tab of the Inspector, or you can run a minifier on this and add it as a bookmark, prefixing it with javascript: ... | |
// Full code with comments: | |
var scripts = document.querySelectorAll("script[type='text/javascript']"); | |
// get the last script tag, which contains the player, and get the inner content. | |
var playerScript = null; | |
if (scripts) { | |
playerScript = scripts[scripts.length - 1]; | |
playerScript = playerScript.textContent || playerScript.innerText |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PLEASE NOTE: this assumes that you have Reddit Enhancement Suite installed and you're on https://old.reddit.com/user/{yourUserName}/comments/ | |
// This script will first grab all visible comments on the page, and then start deleting them. | |
// Eventually, once the list is exhausted, it will execute a scroll to event which will | |
// open up a new page of comments, and the deleteComments sequence will re-run. | |
// It also checks if the function has stopped running for any reason, and will attempt to re-run it. | |
const deleteComments = (() => { | |
const $domNodeToIterateOver = $('.del-button .option .yes'); | |
let currentTime = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Here's a base implementation of recording audio and listening back to it instantly without having to save the file somewhere. | |
<script setup> | |
import { ref } from "vue"; | |
import { convertToBlogUri } from "@/utils/helpers"; | |
let device = null; | |
let recorder = null; | |
let chunks = []; | |
let recording = ref(false); |