Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Commands for the truly awesome Quix bookmarklet
> Killing the default commands
> Note that ALL spaces must be removed from bookmarklets, and %-encoded characters must be changed back to normal.
#kill-defaults
> Begin new commands (many copied from original Quix)
@Searching
ama https://www.amazon.com/s/?field-keywords=%s Amazon Search
d http://www.google.com/search?q=define:%s Google Define a word
dict http://www.google.com/dictionary?langpair=en%7Cen&q=%s&hl=en&aq=f Google Dictionary for a word
imdb http://www.imdb.com/find?s=all&q=%s IMDB Search
gim http://www.google.com/images?q=%s Google Image Search
maps http://www.google.com/maps?q=%s Google Maps
php http://php.net/search.php?show=quickref&pattern=%s PHP Function Search
tr http://translate.google.com/translate?u=%r&tl=%s Translate the current page
wp http://wikipedia.org/wiki/Special:Search/%s_ Wikipedia Search
@On-Page
find javascript:s='%s';if(s==''){void(s=prompt('Find%20text:',''));}s='('+s+')';x=new%20RegExp(s,'gi');rn=Math.floor(Math.random()*100);rid='z'%20+%20rn;b%20=%20document.body.innerHTML;b=b.replace(x,'<span%20name='%20+%20rid%20+%20'%20id='%20+%20rid%20+%20'%20style=\'color:#000;background-color:yellow;%20font-weight:bold;\'>$1</span>');void(document.body.innerHTML=b);alert('Found%20'%20+%20document.getElementsByName(rid).length%20+%20'%20matches.');window.scrollTo(0,document.getElementsByName(rid)[0].offsetTop); Find in current pagem, usage: 'find test' will highlight all occurrences of 'test' and will take you to the first occurrence. Just 'find' will open a prompt.
@Social
fb https://www.facebook.com/share.php?u=%r&t=%t Share the current page on Facebook
tn https://twitter.com/home?status=%s%20%t%20%r Tweet the current page
tmbl javascript:d=document;w=window;e=w.getSelection;k=d.getSelection;x=d.selection;s=(e?e():(k)?k():(x?x.createRange().text:0));f='http://www.tumblr.com/share';l=d.location,e=encodeURIComponent;p='?v=3&u='+e(l.href)%20+'&t='+e(d.title)%20+'&s='+e(s);u=f+p;try{if(!/^(.*\.)?tumblr[^.]*$/.test(l.host))throw(0);tstbklt();}catch(z){a%20=function(){if(!w.open(u,'t','toolbar=0,resizable=0,status=1,width=450,height=430'))l.href=u;};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();}void(0) Share on Tumblr
btside script:https://bit.ly/bookmarklet/load.js <a href="https://bit.ly/pages/tools/sidebar/">Bit.ly Sidebar</a>
@Quix
@In a meta sort of way, Quix provides some commands that should help you to debug Quix.
help http://quixapp.com/help/#%s Help file
resize http://quixapp.com/resize/?s=%s Resize image / video while maintaining aspect ratio
@Webmaster
csstoggle javascript:var%20Lt=document.getElementsByTagName('LINK');for(var%20x=0,ss=[];Lt[x];x++){var%20rel=Lt[x].rel;if(typeof(rel)=='string'&&rel.toLowerCase().indexOf('style')+1){ss[ss.length]=Lt[x];}}for(var%20x=0;ss[x];x++){ss[x].disabled=!ss[x].disabled;} Toggle css on and off
fblint http://developers.facebook.com/tools/lint/?url=%r Gives feedback from Facebook about your markup.
firebug javascript:firebug=document.createElement('script');firebug.setAttribute('src','http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js');document.body.appendChild(firebug);(function(){if(window.firebug.version){firebug.init();}else{setTimeout(arguments.callee);}})();void(firebug); Loads <a href="http://getfirebug.com/lite.html">Firebug lite</a>.
font javascript:(function()%20{if(typeof%20jQuery=='undefined'){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);})(); Font overlay with <a href="http://somadesign.ca/projects/fontfriend/">FontFriend</a>
host http://quixapp.com/host/%d/%s Host info for the current domain.
html5 http://html5.validator.nu/?doc=%r HTML5 validate the current page.
jquery http://api.jquery.com/%s/ Check jQuery API documentation.
lastmod javascript:function%20gett(w){try{var%20lm=new%20Date(w.document.lastModified);if(lm>maxd)maxd=lm;for(var%20i=0;F=w.frames[i];i++){gett(F);}}catch(e){}}var%20now=new%20Date();var%20maxd=new%20Date(document.lastModified);gett(window);if(maxd.getTime()==0||now.toUTCString()==maxd.toUTCString()){alert('Page%20is%20dynamically%20generated,%20cannot%20determine%20date.');}else{alert('Page%20was%20last%20modified%20'+maxd.toLocaleString());} Last modified date of a page.
myip http://quixapp.com/ip/ Your current IP & homepage.
p3p http://validator.w3.org/p3p/20020128/p3p.pl?uri=%r Check the P3P policies of the current page.
register http://quixapp.com/register/%s Register a domain (f.i. use <code>register test123.com</code>).
window javascript:s='%s';s2=s.split('%20');window.resizeTo(s2[0],s2[1]); Resize browser (might only work with single windows in some browsers).
ruler script:http://quixapp.com/js/ruler.js Shows a ruler that can be used to measure elements.
sg javascript:(function(){var%20s=document.createElement('div');s.innerHTML='Loading...';s.style.color='black';s.style.padding='20px';s.style.position='fixed';s.style.zIndex='9999';s.style.fontSize='3.0em';s.style.border='2px%20solid%20black';s.style.right='40px';s.style.top='40px';s.setAttribute('class','selector_gadget_loading');s.style.background='white';document.body.appendChild(s);s=document.createElement('script');s.setAttribute('type','text/javascript');s.setAttribute('src','http://www.selectorgadget.com/stable/lib/selectorgadget.js?raw=true');document.body.appendChild(s);})(); <a href="http://www.selectorgadget.com/">SelectorGadget</a>: point and click CSS selectors
speed http://tools.pingdom.com/fpt/?url=%r Do a <a href="http://tools.pingdom.com/">Pingdom speedtest</a> of the current URL.
gspeed http://developers.google.com/speed/pagespeed/insights/?url=%re Do a Google <a href="http://pagespeed.googlelabs.com/">page speed test</a> of the current URL.
spriteme script:http://spriteme.org/spriteme.js Sprite the current page using <a href="http://spriteme.org">Spriteme</a>.
vs http://onebuttonmouse.com/tools/isource/?url=%r View source of the current URL.
w3c http://validator.w3.org/check?uri=%r&outline=1 Validate the current page.
w3css http://jigsaw.w3.org/css-validator/validator?uri=%r Validate the CSS of the current page.
whois http://quixapp.com/whois/%d/%s Whois info for the current domain.
xray script:http://westciv.com/xray/thexray.js <a href="http://www.westciv.com/xray/">XRAY</a> the current page.
ish javascript:location.href='http://bradfrostweb.com/demo/ish/?url=%r' Use the Ish viewport tool
@Bookmarking and Saving
en javascript:(function(){EN_CLIP_HOST='http://www.evernote.com';try{var%20x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new%20Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})(); Clip current page with <a href="http://www.evernote.com/">Evernote</a>
thk javascript:void((function(){dd=document,f=dd.createElement("scr"+"ipt"),c=!getSelection?!document.getSelection?!document.selection?document.selection.createRange().text:false:document.getSelection():getSelection(),u=location.href;if(!c||!String(c)){c=u;u=false;}if(!c)return(false);f.src="https://thinkery.me/add.php?js&thing="+encodeURIComponent(c)+(u?'&url='+encodeURIComponent(u):'');dd.body.appendChild(f);})()); Save to Thinkery
pkt javascript:(function(){ISRIL_H='8c76';PKT_D='getpocket.com';ISRIL_SCRIPT=document.createElement('SCRIPT');ISRIL_SCRIPT.type='text/javascript';ISRIL_SCRIPT.src='http://'+PKT_D+'/b/r.js';document.getElementsByTagName('head')[0].appendChild(ISRIL_SCRIPT)})(); Save to Pocket
bmk javascript:(function(){m=document.createElement("script");m.setAttribute("id","bitmark_js");m.setAttribute("type","text/javascript");m.setAttribute("src","https://bitly.com/a/bitmarklet.js");(top.document.body||top.document.getElementsByTagName("head")[0]).appendChild(m);})(); Save to Bit.ly
stfy javascript:(function(){p=window.location.protocol;p=(p[0]=='f')?'http:':p;_my_script=document.createElement('SCRIPT');_my_script.type='text/javascript';_my_script.src=p+'https://storify.com/public/js/bookmarklet.js?1.9.0';document.getElementsByTagName('head')[0].appendChild(_my_script);}()); Storify This
pbd javascript:if(document.getSelection){s=document.getSelection();}else{s='';};document.location='https://pinboard.in/add?next=same&url='+encodeURIComponent(location.href)+'&description='+encodeURIComponent(s)+'&title='+encodeURIComponent(document.title); Save to Pinboard
pin javascript:void((function(){dd=document.createElement('script');dd.setAttribute('type','text/javascript');dd.setAttribute('charset','UTF-8');dd.setAttribute('src','https://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(dd)})()); Save to Pinterest
@Miscellaneous
* https://duckduckgo.com/?q=%s Untriggered search
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.