Skip to content

Instantly share code, notes, and snippets.

@kevinashworth
Created October 12, 2016 17:54
Show Gist options
  • Save kevinashworth/9d54e1522184d19b12bcf44de44479ad to your computer and use it in GitHub Desktop.
Save kevinashworth/9d54e1522184d19b12bcf44de44479ad to your computer and use it in GitHub Desktop.
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 logged in to the new site and are looking at the <a href="https://my.sagaftraplans.org/health/benefit/earnings.jsf">Earnings page</a>.
If things don't work quite right after clicking a bookmarklet, just refresh the whole page and start over. I've tested these on Safari, Firefox and an iPhone. Let me know how they work for you!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment