Skip to content

Instantly share code, notes, and snippets.

@jordanmack
jordanmack / user.js
Last active October 23, 2018 06:33
Peepeth Enhancer is a user script that adds several new features to Peepeth. To use this user script install you will need the Tampermonkey plugin. https://tampermonkey.net/
// ==UserScript==
// @name Peepeth Enhancer
// @namespace https://github.com/jordanmack/PeepethEnhancer
// @version 0.3.0
// @description Peepeth Enhancer is a collection of scripts that add several new features to Peepeth.
// @author Jordan Mack (jordanmack.info)
// @match https://peepeth.com/*
// @grant none
// ==/UserScript==
@jordanmack
jordanmack / gist:9373f9b922e906eeffb0cbff0cefe57e
Created August 25, 2018 04:51
Peepeth: Bookmarklet code to unhide all content without having to click.
javascript:(function()%7Bconst%20reveal%20%3D%20function()%7BjQuery(%22a.nsfwShow%22).click()%3BjQuery(%22a.politicsShow%22).click()%3B%7D%3Breveal()%3BsetInterval(reveal%2C%20500)%7D)()
The primary goal is to swap command and option.
The secondary goal is to remap Caps Lock to Control.
The tertiary goal is to share modifier keys across keyboards, so you can emacs with two keyboards.
The following instructions are good as of 2016-08-24, for OS X El Capitan 10.11.6.
Mac OS Sierra broke Seil support; Seil instructs us to consider Karabiner Elements.
But when Karabiner Elements swaps command and option, it does it for all keyboards;
meaning the native keyboard also gets its command and option swapped, which is bad!