<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/javascript/tags/bookmarlet</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Mon, 20 May 2013 19:21:22 GMT</pubDate>
<item>
<title>(JavaScript) Fix macabi site to work on mac - yisreldov</title>
<link>http://snipplr.com/view/27555/fix-macabi-site-to-work-on-mac/</link>
<description><![CDATA[ <p>I was just able to login to the maccabi site using safari !!!

There is a bug on the login form and once I fixed the bug using the dev tools I was able to log in and make an appointment just fine !!!

You can use this bookmarklet to fix your maccabi login form, drag it to your bookmarks bar and click it before you click on the submit button.

[fix-maccabi-login][1]

if the link doesn't work here is code that you can pasete into your address bar 

`javascript:document.forms[0].elements[%27IDCode%27].id=%27IDCode%27;document.forms[0].elements[%27username%27].id=%27username%27;alert(%27try%20to%20login%20now,%20by%20clicking%20the%20button.%27)`

here is the JS :

    document.forms[0].elements['IDCode'].id='IDCode';
    document.forms[0].elements['username'].id='username';
    alert('try to login now, by clicking the button.')


this will probably also work on firefox, but I haven't tested it !!

As I expected, they are using invalid JS code that happens to actually work on IE, but shouldn't work on any normal browser.

Any [donations][2] for this fix would be appreciated. ( cash is also nice )

[1]: javascript:document.forms[0].elements[%27IDCode%27].id=%27IDCode%27;document.forms[0].elements[%27username%27].id=%27username%27;alert(%27try%20to%20login%20now,%20by%20clicking%20the%20button.%27)
[2]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=FWTPFWQ9SX4RG</p> ]]></description>
<pubDate>Tue, 02 Feb 2010 07:14:54 GMT</pubDate>
<guid>http://snipplr.com/view/27555/fix-macabi-site-to-work-on-mac/</guid>
</item>
</channel>
</rss>