Skip to content

Instantly share code, notes, and snippets.

@br4nnigan
br4nnigan / xpost.user.js
Last active August 29, 2015 14:24
create direct links to x-posted subs
// ==UserScript==
// @name reddit x-post
// @namespace reddit_xpost
// @description add x-post link
// @include https://www.reddit.com/*
// @version 1.1
// @grant none
// ==/UserScript==
function makeXpostLinks () {
@br4nnigan
br4nnigan / RES spoiler protection
Last active December 19, 2017 05:10
snippet for reddit that hides subreddit names unless hovered
a.subreddit[href$="r/nononono/"]:hover,
a.subreddit[href$="r/SweatyPalms/"]:hover {
min-width: 12em;
display: inline-block;
margin-bottom: 0;
}
a.subreddit[href$="r/nononono/"]:not(:hover),
a.subreddit[href$="r/SweatyPalms/"]:not(:hover) {
font-size: 0;
position: relative;