Skip to content

Instantly share code, notes, and snippets.

View atl's full-sized avatar

Adam Lindsay atl

View GitHub Profile
@atl
atl / google_twunter_lol.json
Created July 28, 2011 21:15 — forked from jamiew/google_twunter_lol
All the dirty words from Google's "what do you love" project: http://www.wdyl.com/
easterEgg.BadWorder.list={
"4r5e":1,
"5h1t":1,
"5hit":1,
a55:1,
anal:1,
anus:1,
ar5e:1,
arrse:1,
arse:1,
@atl
atl / shorten-bookmarklet.js
Created April 12, 2009 10:01 — forked from singpolyma/shorten-bookmarklet.js
Added rel="short_url" case
/* Expanded form of a bookmarklet for extracting rev=canonical OR tinyurling a page */
(function(){
var url=document.location;
var links=document.getElementsByTagName('link');
var found=0;
for(var i = 0, l; l = links[i]; i++) {
if (l.getAttribute('rev') == 'canonical' || (!(/icon/).exec(l.getAttribute('rel')) && (/short/).exec(l.getAttribute('rel')))) {
found=l.getAttribute('href');
break;
}