When using the getURL () function, it checks for javascript url's like this: if let Some (url) = url.trim ().strip_prefix ("javascript:") { However, it does not account for if the javascript url has ...