This file contains hidden or 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
/* | |
1. open https://music.youtube.com/playlist?list=LM | |
2. open console | |
3. copy paste | |
*/ | |
$$("ytmusic-responsive-list-item-renderer yt-formatted-string").reduce((songList, songPart, i) => { | |
((i + 1) % 4) ? songList[songList.length - 1] += songPart.textContent + "," : songList.push(""); | |
return songList; | |
}, [""]).map(x => x.slice(0, -1)).join("\n") |
This file contains hidden or 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
// ==UserScript== | |
// @name whatsapp-web-reply | |
// @namespace https://yoogottamk.github.io/ | |
// @version 0.1 | |
// @description reply to messages using keyboard shortcuts alt+{up,down} | |
// @author yoogottamk | |
// @match https://web.whatsapp.com/ | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
#!/bin/bash | |
# Extracts a file (through multiple layers) and prints it's contents | |
# Usage: $0 <filename> | |
# Options: | |
# - [ENV] EXTRACT_DEBUG: Prints each step if variable is set | |
[[ $# -eq 0 ]] && { >&2 echo "Usage: $0 filename"; exit 1; } | |
# returns mimetype |