Skip to content

Instantly share code, notes, and snippets.

View kevinashworth's full-sized avatar
🏠
Working from home

Kevin Ashworth kevinashworth

🏠
Working from home
View GitHub Profile
> This is a Quix Command File
>
> For the syntax of this file, please refer to https://www.quixapp.com/help/syntax/
>
@Replacement of Basic commands
@These are my replacments and switcheroos.
flickr http://flickr.com/search/?q=%s Flickr Search
flickrc http://flickr.com/search/?q=%s&l=comm Flickr Commercial use CC Search
f 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); Switched f and find. Find in current page, usage: 'f test' will highlight all occurrences of 'test' and will take you to the first occurrence. Just 'f' will open a prompt.
@kevinashworth
kevinashworth / README.md
Created March 13, 2017 19:49 — forked from hofmannsven/README.md
My simply Git Cheatsheet
Sharing some bookmarklets for the new <a href="https://my.sagaftraplans.org/health/">SAG-AFTRA Health Plan Benefits Manager</a> site:
<ol>
<li><a href='javascript:void%20function(){var%20e=new%20Date,t=e.getDate(),a=e.getMonth()+1,n=e.getFullYear();10%3Et%26%26(t=%220%22+t),10%3Ea%26%26(a=%220%22+a),e=a+%22/%22+t+%22/%22+n,$(%22input%22)[6].value=%2201/01/2016%22,$(%22input%22)[7].value=e;$("#earningsForm\\:findBtn").click();}();'>Health 2016</a>
When I go the Earnings page, I tend to want to see my earnings from January 1, 2016 to today. This bookmarklet populates the date fields and presses the Find button.</li>
<li><a href='javascript:$(%22.ui-row-toggler%20span%22).click();$(%22.ui-datatable-even%22).switchClass(%22ui-datatable-even%22,%20%22ui-datatable-odd%22);'>Health All More</a>
Each row of the Earnings page has a "More" link at the end. This bookmarklet opens all of them at once.</li>
</ol>
Try them out by dragging the links to your bookmarks bar, then clicking on them — but only after you are l
javascript:h=location.href;i=h.indexOf(%27imdb.com%27);p=h.indexOf(%27https://pro.imdb.com%27);t=h.indexOf(%27title%27);c=h.indexOf(%27combined%27);f=h.indexOf(%27fullcredits%27);r=h.indexOf(%27reference%27);badword=Math.max(c,f,r);if(i==-1) {window.location=%27https://pro.imdb.com/name/nm2825198/%27}else if(p==0) {window.location=h.replace(%27https://pro%27,%27https://www%27)}else if(p==-1){if((t>1)&&(badword>1)){h=h.substring(0,badword)}window.location=h.replace(/https:\/\/[a-z]+/,%27https://pro%27);};