summaryrefslogtreecommitdiff
path: root/background/url_item.js
diff options
context:
space:
mode:
Diffstat (limited to 'background/url_item.js')
-rw-r--r--background/url_item.js22
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;
-})();