Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
"""
dedup_keepass.py - Deduplicate and merge a KeePassXC XML export.
Usage: python3 dedup_keepass.py input.xml output.xml
What it does:
- Merges sibling groups with the same name (same parent)
- Deduplicates entries within each group by (Title + Username + Password)
- Exact duplicates (same URL too): keeps one, uses oldest CreationTime
// ==UserScript==
// @name iNovelTranslation Tweaks
// @namespace https://gist.github.com/q00u
// @version 2026.02.02
// @description Fixes broken formatting for inoveltranslation.com
// @author Phoenix G
// @match https://inoveltranslation.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=inoveltranslation.com
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Squaredle — Copy Bonus Word of the Day (Markdown)
// @namespace https://gist.github.com/q00u
// @version 2026-03-16
// @description Add a copy button that copies the Bonus Word of the Day as Markdown to the clipboard on squaredle.app
// @author Phoenix G
// @match https://squaredle.app/
// @match https://squaredle.app/?puzzle=*
// @icon https://www.google.com/s2/favicons?sz=64&domain=squaredle.app
// @grant none
@q00u
q00u / ranobes_net.user.css
Last active October 20, 2025 23:36
Ranobes Readability
/* ==UserStyle==
@name Ranobes Readability
@namespace gist.github.com/q00u
@version 1.0.0
@description Improve readability of comments section on Ranobes
@author Phoenix G
@supportURL https://gist.github.com/q00u/4ca9113abe91a06684186dfb6ad6f151
==/UserStyle== */
@-moz-document domain("ranobes.net") {
/* ==UserStyle==
@name Focused YouTube Shorts
@namespace gist.github.com/q00u
@version 1.0.3
@description Makes it impossible to scroll through shorts (Inspired by Reinachan's `youtube-improved-userstyle`)
@author Phoenix G
@supportURL https://gist.github.com/q00u/b085fd8d1a30125684fbca72d70094dd
@preprocessor less
==/UserStyle== */
@q00u
q00u / mangademon-comments.user.css
Last active October 20, 2025 22:57
Improve readability of comments section on Mangademon
/* ==UserStyle==
@name Mangademon Comments Dark Readability
@namespace gist.github.com/q00u
@version 1.0.3
@description Improve readability of comments section on Mangademon
@author Phoenix G
@supportURL https://gist.github.com/q00u/65984b5d7fcde8915b066249602af3ac
==/UserStyle== */
@-moz-document url-prefix("https://demonicscans.org") {
@q00u
q00u / mangademon-tweaks.user.js
Last active October 20, 2025 22:52
Mangademon Tweaks (other than comments)
// ==UserScript==
// @name Mangademon Other Tweaks
// @namespace https://gist.github.com/q00u
// @downloadURL https://gist.github.com/q00u/ca4dac0de7b37bd212d975a0039b5c6e/raw/mangademon-tweaks.user.js
// @updateURL https://gist.github.com/q00u/ca4dac0de7b37bd212d975a0039b5c6e/raw/mangademon-tweaks.user.js
// @supportURL https://gist.github.com/q00u/ca4dac0de7b37bd212d975a0039b5c6e
// @version 2025-10-20
// @description Add "First" to Pagination, add Details to latest chapter, add clear button to search
// @author Phoenix G
// @match https://demonicscans.org/*
@q00u
q00u / mangademon-comments.user.js
Last active October 20, 2025 22:33
Mangademon comments tweaks and fixes
// ==UserScript==
// @name Mangademon Comments Tweaks
// @namespace https://gist.github.com/q00u
// @downloadURL https://gist.github.com/q00u/b75830025d533d42884b14be684a1ce6/raw/mangademon-comments.user.js
// @updateURL https://gist.github.com/q00u/b75830025d533d42884b14be684a1ce6/raw/mangademon-comments.user.js
// @supportURL https://gist.github.com/q00u/b75830025d533d42884b14be684a1ce6
// @version 2025-10-20
// @description Automatically select "Best Comments", remove duplicate comments, fix quotation marks and reply spoilers, allow arrow keys in comment box;
// @author Phoenix G
// @match https://demonicscans.org/title/*/chapter/*/*
@q00u
q00u / rom-to-eng-lht.user.js
Last active September 27, 2025 23:33
Romaji to English - LHTranslation
// ==UserScript==
// @name LHTranslation Romaji to English
// @namespace https://gist.github.com/q00u
// @downloadURL https://gist.github.com/q00u/edc0d364a64e11536f048b46c922ffb8/raw/rom-to-eng-lht.user.js
// @updateURL https://gist.github.com/q00u/edc0d364a64e11536f048b46c922ffb8/raw/rom-to-eng-lht.user.js
// @supportURL https://gist.github.com/q00u/edc0d364a64e11536f048b46c922ffb8
// @version 2025-09-27
// @description Replace the Romaji in post titles with English translations (where available)
// @author Phoenix G
// @match https://lhtranslation.net/*
@q00u
q00u / MurdleSimpleShare.user.js
Last active January 13, 2026 05:45
My Murdle streak is too long to share easily, and while I've been cutting the clipboard paste and separating the daily result and the streak, wouldn't it be nice to have a button to do that for me?
// ==UserScript==
// @name Murdle Simple Shares
// @namespace https://gist.github.com/q00u
// @downloadURL https://gist.github.com/q00u/c7fda688902346fc672f9870957d05d1/raw/MurdleSimpleShare.user.js
// @updateURL https://gist.github.com/q00u/c7fda688902346fc672f9870957d05d1/raw/MurdleSimpleShare.user.js
// @supportURL https://gist.github.com/q00u/c7fda688902346fc672f9870957d05d1
// @version 0.0.7
// @description Smaller shares for those with longer Murdle streaks!
// @author Phoenix G
// @match https://murdle.com/