diff options
author | Wojtek Kosior <wk@koszkonutek-tmp.pl.eu.org> | 2021-05-12 17:25:57 +0200 |
---|---|---|
committer | Wojtek Kosior <wk@koszkonutek-tmp.pl.eu.org> | 2021-05-12 17:25:57 +0200 |
commit | 55fb3e4bd833f042a82657cc75e7e4c657402f9e (patch) | |
tree | c5198bfc075d680629850c7e47f45027581d8707 /background/url_item.js | |
parent | 9c246cfa2e30c2f7887472084b4ace4ab99b9819 (diff) | |
download | browser-extension-55fb3e4bd833f042a82657cc75e7e4c657402f9e.tar.gz browser-extension-55fb3e4bd833f042a82657cc75e7e4c657402f9e.zip |
use unique hashes when smuggling whitelist setting
Diffstat (limited to 'background/url_item.js')
-rw-r--r-- | background/url_item.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/background/url_item.js b/background/url_item.js deleted file mode 100644 index 7850871..0000000 --- a/background/url_item.js +++ /dev/null @@ -1,22 +0,0 @@ -/** -* Myext stripping url from query and target -* -* Copyright (C) 2021 Wojtek Kosior -* -* Dual-licensed under: -* - 0BSD license -* - GPLv3 or (at your option) any later version -*/ - -"use strict"; - -(() => { - function url_item(url) - { - let url_re = /^([^?#]*).*$/; - let match = url_re.exec(url); - return match[1]; - } - - window.url_item = url_item; -})(); |