Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul Bausch pbausch

View GitHub Profile
@pbausch
pbausch / twitter-simplifier.css
Last active Jul 23, 2019
Remove things from Twitter with Stylus
View twitter-simplifier.css
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 Apr 18, 2018
Add one-click Basecamp applause boosts with Tampermonkey
View applause.js
// ==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 Mar 28, 2018
mltshp gif retriever bookmarklet
View mltgif.js
javascript:(function(){window.location=window.location.toString().replace(/^https:\/\/mltshp\./,'https://s.mltshp.').replace(/\/p\//,'/r/')+'.gif';})()
View embolden-mefi.js
// ==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 Jun 16, 2017
Twitter Hearts to Stars
View forever-favorites.css
#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 Nov 30, 2016
OSX Chrome: Open a list of URLs in new tabs
View open-links.sh
@pbausch
pbausch / belongiotweets.js
Created Nov 10, 2016
Embed Tweets on the Belong.io Page with Tampermonkey
View belongiotweets.js
// ==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 Dec 20, 2016
Embed Tweets on the Pinboard Popular Page with Tampermonkey
View pinpoptweets.js
// ==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 Nov 3, 2016
Import HTML Table Data into Google Docs Spreadsheet
View import_function.txt
# thanks, https://eagereyes.org/data/scrape-tables-using-google-docs
=ImportHtml(URL, "table", num)
@pbausch
pbausch / itunesfeed.sh
Last active Nov 2, 2016
Find the podcast RSS URL from an iTunes podcast URL
View itunesfeed.sh
#!/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="//'
You can’t perform that action at this time.