Skip to content

Instantly share code, notes, and snippets.

@tophf
tophf / patch-chrome-mv2-2026-05-26.ps1
Last active May 26, 2026 10:53
Enables ManifestV2 for extensions in Chrome 140+
<# 1. To patch dll in a protected folder like "c:\program files" run this script as Administrator.
2. If your Windows isn't configured to run ps1 files, you can run it from command prompt like this:
powershell -ep bypass -noprofile "patch-chrome-mv2.ps1"
#>
param([string]$dll, [string]$dir = $pwd)
function doPatch([string]$path, [string]$pathLabel = '') {
$dll = $script:dll = if ($path.EndsWith('\')) { Join-Path $path chrome.dll } else { $path }
if (!(Test-Path -literal $dll)) { return }
$localAppData = [Environment]::GetFolderPath('LocalApplicationData')
/*
Map a hotkey (ctrl+win+i) to a dialog for sending stuff quickly to your dynalist inbox
write/paste -> Ctrl+Enter to submit
Two modes of operation:
One Bullet: All text will be sent to one bullet in the inbox (dafault)
Multi Bullet: Every row will get its own bullet
*/
; Get your secret API token here: https://dynalist.io/developer
global DynalistToken := "YOUR TOKEN HERE"
@davidlwatsonjr
davidlwatsonjr / TaskbarToggle.ahk
Created March 9, 2016 06:15
An AutoHotkey script that toggles auto-hide on the Windows taskbar.
WinWait, ahk_class Shell_TrayWnd,
IfWinNotActive, ahk_class Shell_TrayWnd, , WinActivate, ahk_class Shell_TrayWnd,
WinWaitActive, ahk_class Shell_TrayWnd,
Send, {APPSKEY}r
WinWait, Taskbar and Start Menu Properties,
IfWinNotActive, Taskbar and Start Menu Properties, , WinActivate, Taskbar and Start Menu Properties,
WinWaitActive, Taskbar and Start Menu Properties,
Send, {ALTDOWN}u{ALTUP}{ENTER}