javascript:(function() { | |
function sortEmailsBySender() { | |
var emails = Array.from(document.querySelectorAll('.zA')); | |
emails.sort(function(a, b) { | |
var senderA = a.querySelector('.yW span').innerText.toLowerCase(); | |
var senderB = b.querySelector('.yW span').innerText.toLowerCase(); | |
return senderA.localeCompare(senderB); | |
}); | |
emails.forEach(function(email) { | |
email.parentNode.appendChild(email); |
A good criteria to judge if a tool will be fast is often the package size. Tools in or under 10s of MBs usually do one thing and do it really well.
Tools listed here have fast/instant startup and/or handles large files without slowing everything down.
- Notepad++ https://notepad-plus-plus.org/
- Notepad2 Notepad3 (not sure if these are actually fast)
I tried writing shell script, then actual code for this. Found some lists
https://github.com/Wiimpathy/CreateCat/blob/master/data/GBA/GBA_list.txt https://github.com/libretro/libretro-database/blob/master/metadat/genre/Nintendo%20-%20Game%20Boy%20Advance.dat
and even tried screenscraper api
but the problem always was finding and matching names correctly.
Gave up on that and simply used ChatGPT. It's reliable enough. Not many mistakes and even if it makes mistakes its not that big deal and overall this method is lot less painfull.
#!/bin/sh | |
input_file="gba.dat" | |
output_file="output.json" | |
# declare -A crc_to_genre | |
# declare -A name_to_genre | |
inside_game_block=false | |
crc_to_genre_json="" |
@echo off | |
REM Use: "script.bat Your note here" to append a note to 'daily_note_YYYY_MM_DD.txt'. | |
REM If no argument given, type note interactively. Press Enter on an empty line to finalize. | |
REM Note is saved in 'd:\notes'. | |
setlocal enabledelayedexpansion | |
REM Creating a Newline variable (the two blank lines are required!) src: https://stackoverflow.com/a/269819/342095 | |
set NLM=^ |
// ==UserScript== | |
// @name Hacker News Story Rank Change Indicator | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-04-26_14-08 | |
// @description Show how much stories are going up and down in the list | |
// @author SMUsamaShah | |
// @match https://news.ycombinator.com/ | |
// @match https://news.ycombinator.com/news | |
// @match https://news.ycombinator.com/news?p=* | |
// @match https://news.ycombinator.com/?p=* |
##KUSTOMCLIP## | |
{ | |
"clip_version": 1, | |
"KUSTOM_GLOBAL": { | |
"gcol1": { | |
"index": 0, | |
"type": "COLOR", | |
"title": "gcol1", | |
"value": "#FFAFAFAF", | |
"key": "gcol1" |