You can see here a very simplified validation logic which is not robust enough.
If I have an update URL with query string (https://domain/folder/file.js?query=query) this URL will not pass the validation.
You need to extract the URL without the query string (or hash #)
|
func validateUrl(_ urlString: String) -> Bool { |
You can see here a very simplified validation logic which is not robust enough.
If I have an update URL with query string (https://domain/folder/file.js?query=query) this URL will not pass the validation.
You need to extract the URL without the query string (or hash #)
userscripts/extension/Userscripts Extension/Functions.swift
Line 139 in 2a83cf0