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 Clean YouTube Titles | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Cleans up YouTube titles by formatting fully capitalised words and removing spaces in front of question marks and exclamation marks. | |
// @author Tancred and ChatGPT :) | |
// @match https://www.youtube.com/* | |
// @grant none | |
// @require https://cdn.jsdelivr.net/gh/CoeJoder/[email protected]/waitForKeyElements.js | |
// ==/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
import java.util.*; | |
public class Main { | |
public static void main(String[] args) { | |
// Your unsorted map - an example | |
final Map<String, Integer> unsortedMap = new HashMap<>(); | |
unsortedMap.put("User B", 50); | |
unsortedMap.put("User C", 100); | |
unsortedMap.put("User A", 50); |