Skip to content

Instantly share code, notes, and snippets.

@ttscoff
Created May 23, 2012 02:32
Show Gist options
  • Save ttscoff/2772928 to your computer and use it in GitHub Desktop.
Save ttscoff/2772928 to your computer and use it in GitHub Desktop.
Brett's Quix File
@Brett's searches
@Brett's custom searches
go https://duckduckgo.com/?q=%21%20%s Open first result (DuckDuckGo)
b https://duckduckgo.com/?q=%21%s Bang search (DuckDuckGo)
grep https://www.cueup.com/?q=%s&fq=1 Greplin
ss https://duckduckgo.com/site:%d%20%s Current site (DuckDuckGo)
bt https://duckduckgo.com/site:brettterpstra.com%20%s BrettTerpstra.com (DuckDuckGo)
gh http://github.com/search?q=%s&type=Everything&repo=&langOverride=&start_value=1 Search GitHub (everything)
hints http://hints.macworld.com/search.php?query=%s&keyType=all&datestart=&dateend=&topic=0&type=stories&results=50&mode=search Search Mac OS X Hints
mu http://www.macupdate.com/find/mac/%s Search MacUpdate (Software)
jq http://api.jquery.com/?ns0=1&s=%s&go= Search jQuery API docs
@Brett's web services
@Web services for domain info and other fun stuff
whohosts http://www.whoishostingthis.com/%d Who is hosting this?
uinfo http://geturlinfo.appspot.com/%r?format=json URL Info for domain
down http://downforeveryoneorjustme.com/%s DownforEveryone?
@Brett's Bookmarklets
@Brett's bookmarklets, gathered conveniently in one place :)
md javascript:location.href='http://heckyesmarkdown.com/go/?read=1&preview=0&showframe=0&u='+encodeURIComponent(document.location.href); Get Raw Markdown for page
mdp javascript:location.href='http://heckyesmarkdown.com/go/?read=1&preview=0&showframe=1&u='+encodeURIComponent(document.location.href); Get Markdown Preview for page
2text javascript:location.href='http://www.aaronsw.com/2002/html2text/?url='+document.location.href; HTML2Text
clipr javascript:(function(e,a,g,h,f,c,b,d)%20{if(!(f=e.jQuery)||g>f.fn.jquery||h(f))%20{c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function()%20{if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete"))%20{h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"1.4.2",function($,L)%20{$(document).ready(function()%20{$("iframe,object,embed,input[type=image],ins").hide();$("div,table").live("mouseover%20mouseout%20click",function(a)%20{a.type=="mouseover"?$(this).css({border:"1px%20solid%20red"}):$("div,table").css({border:"none"});if(a.type=="click")%20{$("link[type='text/css'],link[rel='stylesheet'],script,style,noscript").remove();$("body").empty();$(this).appendTo("body");a=$("title").text();$("head").empty();$("head").append("<title>"+a+"</title>");$("head").append('<style%20type="text/css">@media%20print{div,table{width:100%%20!important;font-family:Garamond,"Times%20New%20Roman",serif%20!important;font-size:12pt%20!important;}}</style>');$(this).append("<hr><b>From%20The%20Web%20Page</b>:%20<i>"+a+"</i>");$(this).css({font:"21px/1.618%20Georgia,%20serif",color:"#111",width:"62%",margin:"5px%20auto"});$("a%20img").css({border:"0"});$("p").css({margin:"0.618em%200"});$("h1,h2,h3,br").css({"line-height":"1.3"});$("body").css({"background-color":"#f9f9f9"});$("div,table").die("mouseover%20mouseout%20click")}%20return%20false})});}); Clipr
gimme javascript:(function()%20{var%20a='setAttribute';var%20d=document;function%20o()%20{var%20s2;if(this.readyState===4)%20{s2=d.createElement('script');s2[a]('type','text/javascript');s2.appendChild(d.createTextNode(this.responseText));d.body.appendChild(s2);}}%20var%20s=d.createElement('script');s[a]('type','text/javascript');s[a]('src','https://gimmebar.com/bookmarklet/2');d.body.appendChild(s);var%20x=new%20XMLHttpRequest();x.onreadystatechange=o;x.open('GET','https://gimmebar.com/bookmarklet/stub',true);x.send('');})(); GimmeBar
font javascript:(function()%20{var%20d=document,s=d.createElement('scr'+'ipt'),b=d.body,l=d.location;s.setAttribute('src','http://chengyinliu.com/wf.js?o='+encodeURIComponent(l.href)+'&t='+(new%20Date().getTime()));b.appendChild(s)})(); WhatFont
css javascript:(function(b)%20{var%20c=b.createElement("style");c.appendChild(b.createTextNode("*:hover{outline:2px%20solid%20red;}caption:hover,thead:hover,tbod:hover,tfoot:hover,tr:hover{outline:2px%20dotted%20red;}td:hover,th:hover{outline:2px%20solid%20red;}h1:hover,h2:hover,h3:hover,h4:hover,h5:hover,h6:hover{outline:2px%20solid%20green;}ol:hover,ul:hover{outline:2px%20dotted%20blue;}li:hover{outline:2px%20solid%20blue;}div:hover{outline:2px%20dotted%20aqua;}span:hover{outline:2px%20solid%20aqua;}"));b.body.appendChild(c);var%20f=b.createElement("div");f.innerHTML="Hover%20stuff!";f.style.position="fixed";f.style.bottom="0px";f.style.left="0px";f.style.right="0px";f.style.backgroundColor="rgba(32,32,32,0.8)";f.style.color="#fff";f.style.textShadow="0%202px%202px%20#000";f.style.padding="1em";f.style.fontSize="12px";f.style.fontFamily="Lucida%20Grande";f.style.border="1px%20solid%20#666";f.style.outline="1px%20solid%20#000";b.body.appendChild(f);function%20a(g)%20{return[String(g.tagName).toLowerCase(),g.id&&("#"+g.id),g.className&&("."+g.className.split("%20").join("."))].join("");}%20function%20e(h)%20{var%20g=[];do%20{g.unshift(h);}%20while((h=h.parentNode));g.shift();return%20g;}%20function%20d(h)%20{var%20g=[];e(h).forEach(function(i)%20{g.push(a(i));});return%20g.join("%20>%20");}%20b.body.addEventListener("mouseover",function(h)%20{var%20g=h.target;f.innerHTML=d(g);},false);})(document); CSSInspect
jquery javascript:(function()%20{if(typeof%20window.jQuery!='undefined')%20{f('jQuery%20already%20loaded')}%20else%20{var%20c=typeof%20window.$!='undefined';var%20d=document.createElement('script');var%20e=15;d.setAttribute('src','http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js');(function()%20{if(typeof%20window.jQuery=='undefined')%20{if(--e>0)%20{window.setTimeout(arguments.callee,250)}%20else%20{alert('An%20error%20ocurred%20while%20loading%20jQuery')}}%20else%20{f('jQuery%20'+jQuery.fn.jquery+'%20loaded'+(c&&jQuery.noConflict()?'%20with%20noConflict':''))}})();document.getElementsByTagName('head')[0].appendChild(d)}%20function%20f(a)%20{var%20b=jQuery('<a>').html(a).attr('href','#').css({opacity:0.9,position:'fixed',zIndex:9000,top:'15px',right:'20px',background:'#000','float':'right',padding:'7px%2010px',color:'#fff',border:'solid%202px%20#fff',textDecoration:'none',textAlign:'center',font:'12px%20"Lucida%20Grande",Helvetica,Tahoma%20bold',borderRadius:'5px',MozBorderRadius:'5px',MozBoxShadow:'0%200%2020px%20#000',WebkitBorderRadius:'5px',WebkitBoxShadow:'0%200%2020px%20#000'}).click(function(z)%20{z.preventDefault();jQuery(this).fadeOut('slow',function()%20{jQuery(this).remove()})}).appendTo('body');window.setTimeout(function()%20{b.trigger('click')},2500)}})() jQuerify
ff javascript:(function()%20{if(typeof%20jQuery=='undefined')%20{var%20jqit=document.createElement('script');jqit.type='text/javascript';jqit.src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';document.getElementsByTagName('head')[0].appendChild(jqit);}%20_my_script=document.createElement('script');_my_script.type='text/javascript';_my_script.src='http://font-friend.googlecode.com/svn/trunk/font-friend.js';document.getElementsByTagName('head')[0].appendChild(_my_script);})(); FontFriend
snoop javascript:(function()%20{var%20d=document,s,e;var%20el=d.getElementById('snpy');if(typeof%20Snoopy!='undefined')%20{Snoopy.toggle();return}%20else%20if(el)%20{el.className=/closed/.test(el.className)?el.className.replace('closed',''):el.className+'%20closed';return}%20s=d.createElement('link');s.setAttribute('href','http://snoopy-assets.allmarkedup.com/snoopy-min.css');s.setAttribute('rel','stylesheet');s.setAttribute('type','text/css');d.getElementsByTagName('head')[0].appendChild(s);e=d.createElement('script');e.setAttribute('src','http://snoopy-assets.allmarkedup.com/snoopy-min.js');d.getElementsByTagName('body')[0].appendChild(e)})(); Snoopy
rl javascript:q=location.href;p=document.title;void(t=open('https://pinboard.in/add?later=yes&noui=yes&jump=close&url='+encodeURIComponent(q)+'&title='+encodeURIComponent(p),'Pinboard','toolbar=no,width=100,height=100'));t.blur(); Save silently to Pinboard.in with Read Later flag
pb javascript:(function(){var%20q=location.href;var%20d=(document.getSelection)?document.getSelection():'';var%20p=document.title;var%20w=window.open('https://pinboard.in/add?showtags=yes&url='+encodeURIComponent(q)+'&description='+encodeURIComponent(d)+'&title='+encodeURIComponent(p),'Pinboard','toolbar=no,width=700,height=600')})(); Pop up the Pinboard "add url" window
ip javascript:(function(){var%20d=document;try{if(!d.body)throw(0);window.location='http://www.instapaper.com/text?u='+encodeURIComponent(d.location.href);}catch(e){alert('WAIT');}})(); Use Instapaper text view on the current page
thumb http://open.thumbshots.org/image.aspx?url=%r Get a thumbshot of the current url
clip javascript:(function(){x=document.createElement('SCRIPT');x.type='text/javascript';x.src='http://brettterpstra.com/share/readability.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(x);y=document.createElement('LINK');y.rel='stylesheet';y.href='http://brettterpstra.com/share/readability.css?x='+(Math.random());y.type='text/css';y.media='screen';document.getElementsByTagName('head')[0].appendChild(y);})(); Run the Clippable bookmarklet
cap javascript:location.href='paparazzi:'+location.href; Send to Paparazzi! for capture
design javascript:function%20fnStartDesign(sUrl)%20{var%20nScript%20=%20document.createElement('script');nScript.setAttribute('language','JavaScript');nScript.setAttribute('src',sUrl);document.body.appendChild(nScript);}fnStartDesign('http://www.sprymedia.co.uk/design/design/media/js/design-loader.js'); Run the Design bookmarklet
choose javascript:window.location='x-choosy://prompt.all/'+window.location Open the current page in Choosy
later javascript:function%20iprl5()%7Bvar%20d=document,z=d.createElement('scr'+'ipt'),b=d.body;try%7Bif(!b)throw(0);d.title='(Saving...)%20'+d.title;z.setAttribute('src','http://www.instapaper.com/j/JbbKTRdmElDu?u='+encodeURIComponent(d.location.href)+'&t='+(new%20Date().getTime()));b.appendChild(z);%7Dcatch(e)%7Balert('Please%20wait%20until%20the%20page%20has%20loaded.');%7D%7Diprl5();void(0) Send to Instapaper
up javascript:(function(){window.location=document.location.href.replace(/\/$/,'').split('/').slice(0,-1).join('/')+"/";})(); Move up one level in the sites directory structure
top javascript:(function(){window.location=document.location.protocol+"//"+document.location.host;})(); Jump to top level of the current site
pdf javascript:(function(){window.location='http://api.joliprint.com/api/rest/url/print/s/bookmarklet?url='+encodeURIComponent(document.location.href)+'&disposition=inline'})(); View the current page as a formatted PDF
sf javascript:var%20inputs=document.getElementsByTagName('input'),firstSearch=false,textinputs=[],i,t;for(i=0;i<inputs.length;i++)if(((inputs[i].type==='text')||(inputs[i].type==='search'))&&inputs.disabled!==true)textinputs.push(inputs[i]);for(t=0;t<textinputs.length;t++)if((/search/i).test(textinputs[t].className)||(/(^[sq]$|search|query)/i).test(textinputs[t].id)||(/^(q(uery)?|s|.*?search.*)$/).test(textinputs[t].name)){firstSearch=textinputs[t];break;}if(!firstSearch)textinputs[0].focus();else%20firstSearch.focus(); Find and focus the search field for the current page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment