Skip to content

Instantly share code, notes, and snippets.

@ColonelBuendia
Last active January 15, 2019 10:20
Show Gist options
  • Save ColonelBuendia/c0eaba506e275cc02141183b552c669a to your computer and use it in GitHub Desktop.
Save ColonelBuendia/c0eaba506e275cc02141183b552c669a to your computer and use it in GitHub Desktop.
> This is a Quix Command File
>
> For the syntax of this file, please refer to https://www.quixapp.com/syntax/
>
@Core
pin javascript:q=location.href;if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;void(open('https://pinboard.in/add?showtags=yes&url='+encodeURIComponent(q)+'&description='+encodeURIComponent(d)+'&title='+encodeURIComponent(p),'Pinboard','toolbar=no,scrollbars=yes,width=750,height=700')); Pinboard save this page bookmarklet
insta 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/G7gHEYwCC8LS?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) Save to Instapaper
read javascript:function iptxt(){var d=document;try{if(!d.body)throw(0);window.location='http://www.instapaper.com/text?u='+encodeURIComponent(d.location.href);}catch(e){alert('Please wait until the page has loaded.');}}iptxt();void(0) Instapaper read this
KS javascript:(function()%7B(function%20()%20%7Bvar%20i%2C%20elements%20%3D%20document.querySelectorAll('body%20*')%3Bfor%20(i%20%3D%200%3B%20i%20%3C%20elements.length%3B%20i%2B%2B)%20%7Bif%20(getComputedStyle(elements%5Bi%5D).position%20%3D%3D%3D%20'fixed')%20%7Belements%5Bi%5D.parentNode.removeChild(elements%5Bi%5D)%3B%7D%7D%7D)()%7D)() Kill Sticky
@Basic commands
@These are the most basic commands Quix offers, but possibly also the most powerful ones.
dict http://www.google.com/dictionary?langpair=en%7Cen&q=%s&hl=en&aq=f Google Dictionary for a word
e mailto:?subject=%t&body=%s%0A%0A%09%r%0A%0A Email link
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.
g http://www.google.com/search?q=%s Google Search
gim http://www.google.com/images?q=%s Google Image Search
gma http://www.google.com/maps?q=%s Google Maps
gss http://www.google.com/search?q=site:%d%20%s Search the current site with Google
@Custom 1
@Key
RT javascript:(function(){var s = document.createElement('script'); s.src = 'https://www.phpied.com/files/react/src/bookmarklet.js'; document.getElementsByTagName('head')[0].appendChild(s);})(); ReActiveTables
gcache http://webcache.googleusercontent.com/search?q=cache:%r googlecache
wayback javascript:location.href='http://web.archive.org/web/*/'+document.location.href; Wayback machine
archive http://web.archive.org/web/*/%r Check archive.org for the current page
print javascript:(function(){if(window['ppw']&&ppw['bookmarklet']){ppw.bookmarklet.toggle();}else{window._pwyl_home='//www.printwhatyoulike.com/';window._pwyl_pro_id=null;window._pwyl_bmkl=document.createElement('script');window._pwyl_bmkl.setAttribute('type','text/javascript');window._pwyl_bmkl.setAttribute('src',window._pwyl_home+'static/compressed/pwyl_bookmarklet_10.js');window._pwyl_bmkl.setAttribute('pwyl','true');document.getElementsByTagName('head')[0].appendChild(window._pwyl_bmkl);}})(); Print What you like
removebloat javascript:(function()%7Bfunction%20R(w)%7Btry%7Bvar%20d=w.document,j,i,t,T,N,b,r=1,C;for(j=0;t=%5B%22object%22,%22embed%22,%22applet%22,%22iframe%22%5D%5Bj%5D;++j)%7BT=d.getElementsByTagName(t);for(i=T.length-1;(i+1)&&(N=T%5Bi%5D);--i)if(j!=3%7C%7C!R((C=N.contentWindow)?C:N.contentDocument.defaultView))%7Bb=d.createElement(%22div%22);b.style.width=N.width;%20b.style.height=N.height;b.innerHTML=%22<del>%22+(j==3?%22third-party%20%22+t:t)+%22</del>%22;N.parentNode.replaceChild(b,N);%7D%7D%7Dcatch(E)%7Br=0%7Dreturn%20r%7DR(self);var%20i,x;for(i=0;x=frames%5Bi%5D;++i)R(x)%7D)() Kill Iframes
edit https://gist.github.com/ColonolBuendia/c0eaba506e275cc02141183b552c669a/edit Edit my Quix Commands
ListLinks javascript:if(frames.length>1)alert('Sorry,%20frames%20detected.');else{var%20wnd=open('','lnkswnd','width=400,height=500,top=0,left=0,scrollbars,resizable');var%20lnks=document.links;with(wnd.document){var%20s='<html><base%20target=_blank>';for(var%20i=0;i<lnks.length;i++){s+='<li><a%20href='+lnks[i].href+'><span%20onClick=window.close()>'+lnks[i].text+'</span></a></li>';}s+='</html>';writeln(s);void(close());}} List all links
autocolor javascript:(function(){var%20i,x;%20for%20(i=0;x=document.links[i];++i)x.style.color=["blue","red","orange"][sim(x,location)];%20function%20sim(a,b)%20{%20if%20(a.hostname!=b.hostname)%20return%200;%20if%20(fixPath(a.pathname)!=fixPath(b.pathname)%20||%20a.search!=b.search)%20return%201;%20return%202;%20}%20function%20fixPath(p){%20p%20=%20(p.charAt(0)=="/"%20?%20""%20:%20"/")%20+%20p;/*many%20browsers*/%20p=p.split("?")[0];/*opera*/%20return%20p;%20}%20})() autocolor links
fresh javascript:if(frames.length<1){alert('The%20server%20indicates%20that%20the%20page%20was%20last%20modified:%20'%20+%20window.document.lastModified)}else{alert('Page%20is%20framed.%20Use%20version%20of%20bookmarklet%20for%20frames.%20(bookmarklets.com)')} page freshness
ToEnglish javascript:var%20t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var%20e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=auto|en&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=auto|en&tbb=1&ie='+e;}; To English
torussian javascript:(function(){l=location.href;if(l.indexOf('translate')>=0){l=decodeURIComponent(l.replace(/^.*[&?](trurl|url|u)=/,'').replace(/[&?].*$/,''))};s=document.selection?document.selection.createRange().text:window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection():'';lw=(s=='')?'http://translate.google.com/translate?u='+encodeURIComponent(l)+'&sl=auto&tl=ru&anno=0':'http://translate.google.com/translate_t?text='+s+'&sl=auto&tl=ru';wt=window.open(lw);if(window.focus){wt.focus()};})() To Russian
noscript javascript:(function(){var%20z=document.createElement('script');z.s=z.setAttribute;z.s('type','text/javascript');z.s('src','http://www.melvinwallerjr.com/tutorial/scripts/bookmarklet/files/NoScript.js');document.getElementsByTagName('head')[0].appendChild(z);})(); deactivate scipts
kittens javascript:var%20a=document.getElementsByTagName%28%27img%27%29;for%28var%20i%20in%20a%29{var%20w=a[i].clientWidth;%20var%20h=a[i].clientHeight;%20if%28w%26%26h%26%26w%3E13%26%26h%3E13%29{var%20k=%27http://placekitten.com/g/%27+w+%27/%27+h;a[i].src=k;};};void%280%29; emergency kittens
gmailthis javascript:popw='';Q='';x=document;y=window;if(x.selection)%20{Q=x.selection.createRange().text;}%20else%20if%20(y.getSelection)%20{Q=y.getSelection();}%20else%20if%20(x.getSelection)%20{Q=x.getSelection();}popw%20=%20y.open('https://mail.google.com/mail?view=cm&tf=0&to=&su='%20+%20escape(document.title)%20+%20'&body='%20+%20escape(Q)%20+%20escape('\n')%20+%20escape(location.href),'gmailForm','scrollbars=yes,width=680,height=510,top=175,left=75,status=no,resizable=yes');if%20(!document.all)%20T%20=%20setTimeout('popw.focus()',50);void(0); gmail this
gmt javascript:Now=new%20Date();Now_H=Now.getHours();Now_N=Now.getMinutes();Now_S=Now.getSeconds();GMT_O=Now.getTimezoneOffset();GMT_H=Now_H;GMT_N=Now_N;GMT_S=Now_S;Now_A='am';if%20(Now_H%20>%2011)%20{Now_A='pm';Now_H=Now_H-12;}if%20(Now_H%20>%2011)%20{Now_A='am';Now_H=Now_H-12;}if%20(Now_H%20==%200)%20{Now_H=12;}GMT_N=GMT_N*1+GMT_O;for%20(ix1=0;ix1<12;ix1++)%20{if%20(GMT_N%20>%2059)%20{GMT_H=GMT_H*1+1;GMT_N=GMT_N-60;}if%20(GMT_N%20<%200)%20{GMT_H=GMT_H-1;GMT_N=GMT_N+60;}}INet=(GMT_H*60+GMT_N+GMT_S/60)/1.44;INet=Math.round(INet*1000)/1000;GMT_A='am';if%20(GMT_H%20>%2011)%20{GMT_A='pm';GMT_H=GMT_H-12;}if%20(GMT_H%20>%2011)%20{GMT_A='am';GMT_H=GMT_H-12;}if%20(GMT_H%20==%200)%20{GMT_H=12;}if%20(Now_H%20<%2010)%20{%20Now_H='0'+Now_H;%20}if%20(Now_N%20<%2010)%20{%20Now_N='0'+Now_N;%20}if%20(Now_S%20<%2010)%20{%20Now_S='0'+Now_S;%20}if%20(GMT_H%20<%2010)%20{%20GMT_H='0'+GMT_H;%20}if%20(GMT_N%20<%2010)%20{%20GMT_N='0'+GMT_N;%20}if%20(GMT_S%20<%2010)%20{%20GMT_S='0'+GMT_S;%20}alert(Now_H+':'+Now_N+':'+Now_S+'%20'+Now_A+'%20local\n'+GMT_H+':'+GMT_N+':'+GMT_S+'%20'+GMT_A+'%20GMT\n'+INet+'%20InterNet'); GMT Time
viewcookies javascript:alert('Cookies%20stored%20by%20this%20host%20or%20domain:/n/n'%20+%20document.cookie.replace(/;%20/g,'/n')); view cookies
zapcookies javascript:alert('Cookies%20stored%20by%20this%20host%20or%20domain:/n/n'%20+%20document.cookie.replace(/;%20/g,'/n')); zap cookies
ic javascript:(function(){instacalc_script=document.createElement('SCRIPT');instacalc_script.type='text/javascript';instacalc_script.src='http://static.instacalc.com/gadget/instacalc.bookmarklet.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(instacalc_script);})(); instacalc bookmarklet
calc javascript:var%20calcul,reas,res,sago,floorres,strflores,strfloreslength,anzsho,PosNr=new%20Array(8),AnzeGrup=new%20Array(8),i,strinres,posdot,poslength,AnzGruppe0,AfDoGr=new%20Array(5);function%20run(){function%20gonow(){with(Math){reas=eval(calcul);res=abs(reas);floorres=floor(res);floorres>0?floorres=floorres:floorres=0;%20strflores=floorres.toString();strfloreslength=strflores.length;PosNr[0]=strfloreslength;i=0;while(i<8){i++;strfloreslength-3*i>0?PosNr[i]=strfloreslength-3*i:PosNr[i]=0%20}i=0;while(i<8){i++;AnzeGrup[8-i]=strflores.slice(PosNr[i],PosNr[i-1]);AnzeGrup[8-i]>0?AnzeGrup[8-i]='%20'+AnzeGrup[8-i]:'';}AnzeGrup[7]==0?AnzeGrup[7]='%200':'';anzsho=AnzeGrup.join('');stringres=res.toString();posdot=stringres.indexOf('.');posdot>-1?afterdot=stringres.slice(posdot+1):afterdot='%20';afterdotlength=afterdot.length;i=-1;while(i<5){i++;AfDoGr[i]=afterdot.slice(3*(i),3*(i+1));if(AfDoGr[i]>0){if(i==0){AfDoGr[i]='.'+AfDoGr[i]}else{AfDoGr[i]='%20'+AfDoGr[i]}}else{''}AfDoGr[0]=='000'?AfDoGr[0]='.'+AfDoGr[0]:'';}AnzGruppe0=AfDoGr.join('');if(res<1E21&&res>1e-14){rest=anzsho+AnzGruppe0;}if(res>=1E21&&reas>0){rest=res;}if(res>=1E21&&reas<0){rest=-res;}if(res%20<=%201e-14&&res>=0){rest='%200';}if(reas==undefined%20){rest='%20'}}}function%20showit(){sago='the%20result%20of%20your%20calculation%20is:\n\n'%20+calcul+'%20%20=%20'+%20rest;calcul=window.prompt(sago,%20'%20');if(calcul==null){'%20'}else{gonow();showit();}}calcul=window.prompt('type%20in%20what%20you%20like%20to%20calculate%20\!',%20'%20');if(calcul==null){'%20'}else{gonow();showit();}}run(); js calc
passwords javascript:(function()%7Bvar%20s,F,j,f,i;%20s%20=%20%22%22;%20F%20=%20document.forms;%20for(j=0;%20j<F.length;%20++j)%20%7B%20f%20=%20F%5Bj%5D;%20for%20(i=0;%20i<f.length;%20++i)%20%7B%20if%20(f%5Bi%5D.type.toLowerCase()%20==%20%22password%22)%20s%20+=%20f%5Bi%5D.value%20+%20%22n%22;%20%7D%20%7D%20if%20(s)%20alert(%22Passwords%20in%20forms%20on%20this%20page:nn%22%20+%20s);%20else%20alert(%22There%20are%20no%20passwords%20in%20forms%20on%20this%20page.%22);%7D)(); show passwords
favelet javascript:s=document.body.appendChild(document.createElement('script'));s.id='fs';s.language='javascript';void(s.src='http://slayeroffice.com/tools/suite/suite.js'); favelet suite
@Webmaster
@Webmasters often have dozens of bookmarklets for all sorts of simple checks, Quix replaces a <em>lot</em> of those bookmarklets by giving you simple to remember commands to deal with them.
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 https://developers.facebook.com/tools/debug/og/object?q=%re 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>.
gzip http://checkgzipcompression.com/?url=%re Checks whether GZip is enabled for the current page.
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 https://www.quixapp.com/host/?d=%d Host info for the current domain.
html5 http://html5.validator.nu/?doc=%r HTML5 validate the current page.
http2 https://tools.keycdn.com/http2-test?url=%d Check if the current site supports HTTP/2
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.
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:https://www.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.
spdy http://spdycheck.org/#%d Test whether the current domain supports spdy
spriteme script:http://spriteme.org/spriteme.js Sprite the current page using <a href="http://spriteme.org">Spriteme</a>.
ssltest https://www.ssllabs.com/ssltest/analyze.html?d=%d Test the domains SSL implementation
st javascript:w=window.open('http://developers.google.com/speed/pagespeed/insights/?url=%re');window.open('http://tools.pingdom.com/fpt/?url=%re');window.open('https://search.google.com/search-console/mobile-friendly?url=%re');window.open('http://www.siteliner.com/%d');window.open('http://www.copyscape.com/?q=%re') Open Speed and Mobile test tabs
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 https://www.quixapp.com/?d=%d Whois info for the current domain.
xray script:https://www.quixapp.com/js/xray/thexray.js <a href="http://www.westciv.com/xray/">XRAY</a> the current page.
blocks style:https://www.quixapp.com/js/blocks.css Show blocks of content, taken from <a href="http://www.quora.com/Web-Development/What-are-the-most-interesting-HTML-JS-DOM-CSS-hacks-that-most-web-developers-dont-know-about/answer/Gajus-Kuizinas">this Quora thread</a>.
@Quix
@In a meta sort of way, Quix provides some commands that should help you to debug Quix.
help https://www.quixapp.com/help/#%s Help file
quix https://www.quixapp.com/%s/ Takes you to the specified Quix page
resize https://www.quixapp.com/resize/?s=%s Resize image / video while maintaining aspect ratio
@Analytics
@Some simple scripts to detect which web analytics program a site is running and to debug Google Analytics
da script:https://www.quixapp.com/js/detect-analytics.js Detect the current sites analytics
ga script:https://www.quixapp.com/js/ga-analyzer.js Analyze Google Analytics settings on the current page
gaexport script:https://www.quixapp.com/js/ga-export.js Make the export function in Google Analytics export way more lines (credits: <a href="http://arjansnaterse.nl/download-limit-google-analytics-export-part-2">Arjan Snaterse</a>)
bitlyside script:https://bit.ly/bookmarklet/load.js <a href="http://bit.ly/pages/tools/sidebar/">Bit.ly Sidebar</a>
> Source: [Quix Syntax - Quix](http://quixapp.com/help/syntax/)
>> Replacement tokens
>> In your executables you can use replacement tokens, currently, Quix supports the following tokens:
>> %s Replaced by any search terms that were entered after the command and / or any text that was selected when the command was issued. There’s a special case of this: %s_, this does the same except that it replaces spaces with underscores ( _ ) instead of plus signs, this is used in the Wikipedia command in the example file.
>> %r Replaced by the URL you were on when the command was issued.
>> %rs Replaced by a bit.ly shortened version of the URL you were on when the command was issued.
>> %d Replaced by the domain you were on when the command was issued.
>> %t Replaced by the title of the page you were on when the command was issued.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment