Skip to content

Instantly share code, notes, and snippets.

@rmateu
Last active October 18, 2019 17:24
Show Gist options
  • Save rmateu/37af5055e821fdd1f655e8440e4a010e to your computer and use it in GitHub Desktop.
Save rmateu/37af5055e821fdd1f655e8440e4a010e to your computer and use it in GitHub Desktop.
Quix Command File for rmateu
> TITLE: rm_quix.txt
> MORE: https://quixapp.com
> UPDATED: 2018-07-06 / w27
> SYNTAX FILE: https://gist.githubusercontent.com/rmateu/37af5055e821fdd1f655e8440e4a010e/raw/rm_quix.txt
#kill-defaults
@ Quix
edit https://gist.github.com/rmateu/37af5055e821fdd1f655e8440e4a010e/edit Edit my Quix Commands
host http://quixapp.com/host/%d/%s Host info for the current domain.
myip http://quixapp.com/ip/ Your current IP & homepage.
@ Basic
pb1 javascript:(function()%7Bvar%20e=false;var%20t=null;var%20r=false;var%20n=%7Bjavascript:%22javascript%22,js:%22javascript%22,python:%22python%22,ios:%22ios%22,youtube:%22video%22,vimeo:%22video%22,video:%22video%22,books:%22book%22,book:%22book%22%7D;var%20o=%7B%22github.com%22:%22.entry-title%20.js-current-repository%22%7D;var%20i=%7B%22www.kickstarter.com%22:%22.short-blurb%22%7D;var%20a=1e3;var%20u=function(e)%7Breturn%20e.toLowerCase()%7D;var%20c=function(e)%7Breturn%20e?e.textContent.trim().replace(/%5Cs+/g,%22%20%22):null%7D;var%20l=u(document.title);var%20f=function(e)%7Bif(e)%7Breturn%20l.indexOf(u(e))!==-1%7Delse%7Breturn%20false%7D%7D;var%20s=function(e,t,r)%7Br=r%7C%7Cwindow;var%20n=e.length;var%20o;for(var%20i=0;i%3Cn;++i)%7Bo=t.call(r,e%5Bi%5D);if(o!==null)%7Breturn%20o%7D%7Dreturn%20null%7D;var%20v=function()%7Bvar%20e=location.href;var%20t=location.hostname;var%20r;if(t%20in%20o)%7Br=document.querySelector(o%5Bt%5D);if(r)%7Breturn%20c(r)%7D%7Dvar%20n=document.title;r=document.querySelector(%22meta%5Bproperty='og:title'%5D%22);if(r)%7Bn=r.content.trim().replace(/%5Cs+/g,%22%20%22)%7Dif(s(document.getElementsByClassName(%22hentry%22),function()%7Breturn%20true%7D))%7Bvar%20i=document.querySelector(%22.hentry%20.entry-title%22);if(i)%7Breturn%20c(i)%7D%7Dvar%20a=s(document.getElementsByTagName(%22A%22),function(t)%7Bif(t.href===e)%7Ba=c(t);if(f(a))%7Breturn%20a%7D%7Dreturn%20null%7D);if(a)%7Breturn%20a%7Dvar%20u=%5B%22h1%22,%22h2%22,%22h3%22,%22h4%22,%22h5%22,%22h6%22%5D;var%20l;for(var%20v=0;v%3Cu.length;++v)%7Bs(document.getElementsByTagName(u%5Bv%5D),function(e)%7Bvar%20t=c(e);if(f(t)&&(!l%7C%7Ct.length%3El.length))%7Bl=t%7Dreturn%20null%7D)%7Dif(l)%7Breturn%20l%7Dreturn%20n%7D;var%20m=function(e)%7Be=u(e);var%20t=%5B%5D;var%20r;for(var%20o%20in%20n)%7Br=o%20instanceof%20RegExp?o:new%20RegExp(%22%5C%5Cb%22+o+%22%5C%5Cb%22,%22i%22);if(r.test(e))%7Bt.push(n%5Bo%5D)%7D%7Dreturn%20t%7D;var%20d=function()%7Bvar%20e;e=document.querySelector(%22meta%5Bname='description'%5D%22);if(e)%7Breturn%20e.content.trim().replace(/%5Cs+/g,%22%20%22)%7De=document.querySelector(%22meta%5Bproperty='og:description'%5D%22);if(e)%7Breturn%20e.content.trim().replace(/%5Cs+/g,%22%20%22)%7Dreturn%22%22%7D;var%20p=function()%7Bvar%20e;if(%22%22!==(e=String(document.getSelection())))%7Bif(r)%7Be=e.trim().split(%22%5Cn%22).map(function(e)%7Breturn%22%3E%20%22+e%7D).join(%22%5Cn%22)%7D%7Dvar%20t=location.hostname;var%20n;if(t%20in%20i)%7Bn=document.querySelector(i%5Bt%5D);if(n)%7Breturn%20c(n)%7D%7Dif(!e)%7Be=d()%7Dreturn%20e%7D;var%20h=location.href;var%20g=v();var%20y=p();var%20b=y.indexOf(g);if(b===0)%7By=y.substring(g.length).trim()%7Delse%20if(b===y.length-g.length)%7By=y.substring(0,b).trim()%7Dvar%20j=m(document.title+%22%20%22+y+%22%20%22+d());if(a%3E0)%7Bg=g.substring(0,a);y=y.substring(0,a)%7Dvar%20w=%5B%22url=%22,encodeURIComponent(h),%22&title=%22,encodeURIComponent(g),%22&description=%22,encodeURIComponent(y),%22&tags=%22,encodeURIComponent(j.join(%22%20%22))%5D;if(e)%7Bw=w.concat(%5B%22&later=%22,%22yes%22,%22&jump=%22,%22close%22%5D)%7Dif(t)%7Bw=w.concat(%5B%22&x-source=Safari%22,%22&x-success=%22,encodeURIComponent(location.href),%22&x-cancel=%22,encodeURIComponent(location.href)%5D);window.location=t+w.join(%22%22)%7Delse%7Bvar%20C=open(%22http://pinboard.in/add?%22+w.join(%22%22),%22Pinboard%22,%22toolbar=no,width=610,height=350%22);if(e)%7BC.blur()%7D%7D%7D)(); save to pinboard
pb javascript:(function()%7B!function(e%2Co%2Ct)%7Be.open(%22https%3A%2F%2Ftrello.com%2Fadd-card%3Fsource%3D%22%2Be.location.host%2B%22%26mode%3Dpopup%26url%3D%22%2BencodeURIComponent(e.location.href)%2B(o%3F%22%26name%3D%22%2BencodeURIComponent(o)%3A%22%22)%2B(t%3F%22%26desc%3D%22%2BencodeURIComponent(t)%3A%22%22)%2C%22add-trello-card%22%2C%22width%3D500%2Cheight%3D600%2Cleft%3D%22%2B(e.screenX%2B(e.outerWidth-500)%2F2)%2B%22%2Ctop%3D%22%2B(e.screenY%2B(e.outerHeight-740)%2F2))%7D(window%2Cdocument.title%2CgetSelection%3FgetSelection().toString()%3A%22%22)%3B%7D)()%3B save to pinboard
st javascript:!function(e,o,t){e.open("https://trello.com/add-card?source="+e.location.host+"&mode=popup&url="+encodeURIComponent(e.location.href)+(o?"&name="+encodeURIComponent(o):"")+(t?"&desc="+encodeURIComponent(t):""),"add-trello-card","width=500,height=600,left="+(e.screenX+(e.outerWidth-500)/2)+",top="+(e.screenY+(e.outerHeight-740)/2))}(window,document.title,getSelection?getSelection().toString():""); Trello nuevo
@ Markdown
mdc script:https://gist.githubusercontent.com/bradleybossard/3667ad5259045f839adc/raw/5208853a191ec18d6755d57f92355dcc9ddf9130/titleUrlMarkdownClip.js copy current page title and url in Markdown format to clipboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment