/** * Myext stripping url from query and target * * Copyright (C) 2021 Wojtek Kosior * Redistribution terms are gathered in the `copyright' file. */ "use strict"; (() => { function url_item(url) { let url_re = /^([^?#]*).*$/; let match = url_re.exec(url); return match[1]; } window.url_item = url_item; })();