Skip to content

Instantly share code, notes, and snippets.

@pbausch
pbausch / twitter-simplifier.css
Last active July 23, 2019 23:20
Remove things from Twitter with Stylus
div[data-testid="sidebarColumn"], header[role="banner"], h2[role="heading"] { display: none; }
div[data-testid="primaryColumn"], .r-1ye8kvj, .r-9x6qib { max-width: 600px; }
main[role="main"], html, body { background-color: #eee; }
main[role="main"] > div { width: inherit; max-width: 100%; margin: auto; }
.r-gtdqiz { position: inherit; }
/* avatars */
div[data-testid="tweet"] > :first-child { display: none; }
/* action buttons */
div[aria-label~="Reply"], div[aria-label~="Retweet"], div[aria-label="Share Tweet"] { display: none; }
.r-1mdbhws { max-width: 40px; }
@pbausch
pbausch / applause.js
Last active April 18, 2018 20:56
Add one-click Basecamp applause boosts with Tampermonkey
// ==UserScript==
// @name Basecamp Applause Boost
// @namespace https://www.onfocus.com/
// @version 0.1
// @description Create an applause boost button
// @author Paul Bausch
// @match https://3.basecamp.com/*
// @grant none
// ==/UserScript==
@pbausch
pbausch / mltgif.js
Last active March 28, 2018 16:03
mltshp gif retriever bookmarklet
javascript:(function(){window.location=window.location.toString().replace(/^https:\/\/mltshp\./,'https://s.mltshp.').replace(/\/p\//,'/r/')+'.gif';})()
@pbausch
pbausch / embolden-mefi.js
Last active January 4, 2018 18:23
Embolden MeFi
// ==UserScript==
// @name Embolden MeFi Logo & Headlines
// @namespace http://onfocus.com/
// @version 0.1
// @description Makes the modern theme more bold.
// @author pb
// @match https://*.metafilter.com/*
// @grant none
// ==/UserScript==
@pbausch
pbausch / forever-favorites.css
Last active June 16, 2017 15:24
Twitter Hearts to Stars
#thanks, http://gizmodo.com/how-to-replace-twitters-dumb-heart-with-the-emoji-of-yo-1740302661
.HeartAnimationContainer, .HeartAnimation {
visibility: hidden;
}
.HeartAnimationContainer:after, .Icon--heart:before {
content: '☆' !important;
visibility: visible;
display: inline-block;
position: relative;
@pbausch
pbausch / open-links.sh
Created November 30, 2016 16:54
OSX Chrome: Open a list of URLs in new tabs
@pbausch
pbausch / belongiotweets.js
Created November 10, 2016 22:21
Embed Tweets on the Belong.io Page with Tampermonkey
// ==UserScript==
// @name Belong Tweets
// @namespace http://tampermonkey.net/
// @version 0.1
// @description add embedded via tweets
// @author @pbausch
// @match http://belong.io/
// @grant none
// ==/UserScript==
@pbausch
pbausch / pinpoptweets.js
Last active December 20, 2016 03:13
Embed Tweets on the Pinboard Popular Page with Tampermonkey
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description embed tweets on Pinboard Popular page
// @author You
// @match https://pinboard.in/popular/
// @grant none
// ==/UserScript==
@pbausch
pbausch / import_function.txt
Created November 3, 2016 17:03
Import HTML Table Data into Google Docs Spreadsheet
# thanks, https://eagereyes.org/data/scrape-tables-using-google-docs
=ImportHtml(URL, "table", num)
@pbausch
pbausch / itunesfeed.sh
Last active November 2, 2016 19:20
Find the podcast RSS URL from an iTunes podcast URL
#!/bin/bash
# Not sure where I found this one, but thanks!
URL=$(curl -s -A "iTunes/9.1.1" --compressed $1 |
grep -o 'https[^<]*' |
perl -n -mHTML::Entities -e ' ; print HTML::Entities::decode_entities($_) ;')
curl -s -A "iTunes/9.1.1" --compressed $URL |
grep -o 'feed-url="[^"]*' |
sed -e 's/feed-url="//'