(I'm using Greasekit, so I'm working in Javascript)

Can Javascript detect the URL of the currently loaded page?
===========================================================

I have some lines of code but I want to NOT run if `VeryHeavy` appears in the current URL.

Is this even possible, programmatically?

Example
=======

An example of the current URL would be:

`https://www.example.co.uk/wine/newsletter?ie=UTF8&page=35&tab=UK_VeryHeavy`

= I want the script to **not** run

When the URL is

`https://www.example.co.uk/wine/newsletter?ie=UTF8&page=35`

= I want the rest of the code to run. (In other words, do nothing)