Screen Shot 2014-09-10 at 2.35.34 AM
Jump right to the MassDEP’s site page for a release with this bookmarklet. It prompts you for the Release Tracking Number (RTN) or it uses the selected text on the page if you have anything selected.

  1. Create a new bookmark in your browser (e.g., Safari, Mozilla).
  2. Give the bookmark a name.
  3. Use the following text as the bookmark’s address or location
    javascript%3Afunction%20pad(str%2Cmax)%7Bstr%3Dstr.toString()%3Breturn%20str.length%3Cmax%3Fpad(%220%22%2Bstr%2Cmax)%3Astr%3B%7Dvar%20sel%3Descape(window.getSelection())%2Ci%2Cii%3Bif(!sel)%7Bfor(i%3D0%3Bi%3Cframes.length%3Bi%2B%2B)%7B%09var%20fr%3Dframes%3Btry%7Bsel%3Descape(fr.getSelection())%7Dcatch(e)%7B%7D%3Bif(sel)break%3Belse%7Bfor(ii%3D0%3Bii%3Cfr.frames.length%3Bii%2B%2B)%7Btry%7Bsel%3Descape(fr.frames%5Bii%5D.getSelection())%7Dcatch(e)%7B%7D%3Bif(sel)break%3B%7D%7D%7D%7Dif(!sel)void(sel%3Dprompt(%27Enter%20release%20tracking%20number%3A%27%2C%27%27))%3Bif(sel)%7Bvar%20parts%3Dsel.split(%22-%22)%3Bparts%5B0%5D%3Dparts%5B0%5D.trim()%3Bparts%5B1%5D%3Dparts%5B1%5D.trim()%3Bparts%5B1%5D%3Dpad(parts%5B1%5D%2C7)%3Bwindow.open(%27http%3A%2F%2Fpublic.dep.state.ma.us%2FSearchableSites2%2FSite_Info.aspx%3Ftextfield_RTN%3D%27%2Bparts%5B0%5D%2B%27-%27%2Bparts%5B1%5D%2B%27%26searchType%3DALL%26CurrentPage%3D1%27)%3B%7D
  4. Select your bookmark and enter a tracking number, like 1-12345 and press OK.

Click here to try it out!