Skip to content

Instantly share code, notes, and snippets.

View 69448.user.js
// ==UserScript==
// @name Redacted: Sort/collapse albums
// @namespace http://animorc.zapto.org/greasemonkey/scripts
// @description Make the titles on artist and collage pages sortable and collapsible.
// @updateURL http://userscripts.org/scripts/source/69448.meta.js
// @include https://redacted.ch/torrents.php?*id=*
// @include https://redacted.ch/artist.php?*id=*
// @include https://redacted.ch/collages.php?*id=*
// @include https://redacted.ch/user.php?*action=edit*
// @include https://ssl.redacted.ch/torrents.php?*id=*
View 69448.user.js
// ==UserScript==
// @name PTH: Sort/collapse albums
// @namespace http://animorc.zapto.org/greasemonkey/scripts
// @description Make the titles on artist and collage pages sortable and collapsible.
// @updateURL http://userscripts.org/scripts/source/69448.meta.js
// @include https://passtheheadphones.me/torrents.php?*id=*
// @include https://passtheheadphones.me/artist.php?*id=*
// @include https://passtheheadphones.me/collages.php?*id=*
// @include https://passtheheadphones.me/user.php?*action=edit*
// @include https://ssl.passtheheadphones.me/torrents.php?*id=*
@TwoLeaves
TwoLeaves / init.lua
Last active Aug 3, 2021
Hammerspoon config
View init.lua
--------------------------------------------------------------------------------
-- Unsupported Spaces extension. Uses private APIs but works okay.
-- (http://github.com/asmagill/hammerspoon_asm.undocumented)
spaces = require("hs._asm.undocumented.spaces")
-- Get output of a bash command
function os.capture(cmd)
local f = assert(io.popen(cmd, 'r'))
local s = assert(f:read('*a'))
f:close()