This repository includes a local cleanup tool for removing Chrome saved tab groups directly from the profile sync database.
Use it only when Chrome is fully closed.
The tool deletes LevelDB keys with the prefix:
| <# | |
| .SYNOPSIS | |
| Resolves many Windows GUIDs to human friendly values. | |
| .DESCRIPTION | |
| Resolve-WindowsGUID.ps1 takes a GUID from a Windows system and attempts | |
| to return a human friendly value from either a static list or from a | |
| dynamically generated list of LogProvider GUIDs. There are undoubtedly | |
| other GUIDs in use throughout Windows that will not fall into either of | |
| these sets. If you encounter a GUID that you can't resolve via this |
| import json | |
| import os | |
| import re | |
| import argparse | |
| from datetime import datetime | |
| def parse_time(ts: str): | |
| try: | |
| return datetime.fromisoformat(ts.replace("Z", "+00:00")) |
| import json | |
| from datetime import datetime, timezone, timedelta | |
| def safe_datetime(ts): | |
| if ts is None or ts == 0: | |
| return None | |
| if ts > 9999999999: | |
| ts = ts / 1000 | |
| try: |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
UIA is the way around UIPI ([User Interface Privilege Isolation][1]) which in simple terms is a way of bypassing the security built into Windows to avoid applications interacting with other applications that have a higher integrity level (security).
In other words, when you run a script it cannot communicate with the system or elevated (running as Administrator) processes; this is to avoid insecure and non-sanctioned interactions.
Chrome has the feature to automatically add search engine when it detects an input field on websites. After using Chrome months, it often resutls a bunch of search engines stayed in the settings. And the setting page does not provide a convinient way to remove them.
The editting the Web Data as SQLite file did not seem to work anymore. Chrome seems to revert all the changes when restart.
To make it even worse, it seems that the DOM tree is not accessable from the development console on the setting page, so even a bookmarklet could not work. Neighter does Chrome provide an API to access the search engines.
| #!/bin/bash | |
| set -euo pipefail | |
| trap 'echo "at line $LINENO, exit code $? from $BASH_COMMAND" >&2; exit 1' ERR | |
| # This is a Claude Code hook to stop it saying "you are right". | |
| # | |
| # Installation: | |
| # 1. Save this script and chmod +x it to make it executable. | |
| # 2. Within Claude Code, /hooks / UserPromptSubmit > Add a new hook (this file) | |
| # |
| #Requires AutoHotkey v2.0 | |
| #SingleInstance Force | |
| ^+s:: | |
| { | |
| ; Configuration | |
| destFolder := "D:\OneDrive\Documents\Snapshots" | |
| ; Create destination folder if it doesn't exist | |
| if !DirExist(destFolder) { |
| import os | |
| import re | |
| import requests | |
| from urllib.parse import urlparse | |
| def download_file(url, folder): | |
| parsed_url = urlparse(url) | |
| filename = os.path.basename(parsed_url.path) | |
| base, ext = os.path.splitext(filename) |