Bookmarklet retrive webpage URL and compare to URL array

Bookmarklet retrive webpage URL and compare to URL array

Hi Guys,

I was hoping someone could assist me.

I am trying to create a bookmarklet that will retrieve the URL of the current page (whenever the user clicks the bookmarklet) and compares it to a list of URLs. If the URL matches one that exists in the array, it redirects the user to a different website.

Please let me know if someone can point me in the right direction.

Thanks!