Skip to content

Instantly share code, notes, and snippets.

@pbausch
pbausch / mediumtweets
Last active August 29, 2015 14:00
Bookmarklet: Search for Medium Article Mentions on Twitter
javascript:var h=location.href;if((h.indexOf('medium.com') !== -1) && (h.split('/').length-1 >= 4)){location.href='https://twitter.com/search?q='+encodeURIComponent(h.substr(h.lastIndexOf('/') + 1))}else{alert('Not at a Medium article.');}
@pbausch
pbausch / FlickrFeed.sh
Created November 2, 2016 19:12
Flickr RSS feed with larger images
#!/bin/bash
wget -q -O- $1 |
sed -e 's/_m.jpg/_b.jpg/' |
sed -e 's/width="[0-9]*"//' |
sed -e 's/height="[0-9]*"//'
@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="//'
@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 / 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 / open-links.sh
Created November 30, 2016 16:54
OSX Chrome: Open a list of URLs in new tabs
@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 / 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 / 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 / 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';})()