Skip to content

Instantly share code, notes, and snippets.

@attie
attie / stackexchange-img-blank.js
Last active May 6, 2024 12:37
Make image links open in a new tab
// ==UserScript==
// @name Make image links open in a new tab
// @namespace http://attie.co.uk/
// @source https://gist.github.com/attie/6ee3fa3dea286452070ed6249de98d70
// @version 2024-05-06
// @description Some links should just open in a new tab...
// @author Attie Grande <[email protected]>
// @match https://*.stackexchange.com/*
// @match https://stackoverflow.com/*
// @match https://superuser.com/*
@attie
attie / winkde.ahk
Last active August 28, 2024 12:55
Usability improvements for moving and resizing windows, on Windows with AutoHotKey
; Win+LeftClick allows you to move a window from anywhere
; be careful, not all windows should be dragged (e.g: start menu)
#LButton::
MouseGetPos,KDE_X1,KDE_Y1,KDE_id
WinGet,KDE_Win,MinMax,ahk_id %KDE_id%
if KDE_Win
return
WinGetPos,KDE_WinX1,KDE_WinY1,,,ahk_id %KDE_id%
loop {
GetKeyState,KDE_Button,LButton,P