mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-04 01:59:38 +02:00
not needed
This commit is contained in:
parent
089af13e32
commit
ca77c677d7
@ -156,12 +156,6 @@ vAPI.canExecuteContentScript = function() {
|
|||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
vAPI.getUrlNormalizer = function() {
|
|
||||||
return document.createElement('a');
|
|
||||||
};
|
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
@ -174,19 +174,6 @@ vAPI.canExecuteContentScript = function() {
|
|||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
vAPI.getUrlNormalizer = function() {
|
|
||||||
return {
|
|
||||||
get href() {
|
|
||||||
return this._url || '';
|
|
||||||
},
|
|
||||||
set href(url) {
|
|
||||||
this._url = _urlNormalizer_(url, document.baseURI);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
})(this);
|
})(this);
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
@ -182,12 +182,6 @@ vAPI.canExecuteContentScript = function() {
|
|||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
vAPI.getUrlNormalizer = function() {
|
|
||||||
return document.createElement('a');
|
|
||||||
};
|
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
// This file can be included into extensin pages,
|
// This file can be included into extensin pages,
|
||||||
// but the following code should run only in content pages.
|
// but the following code should run only in content pages.
|
||||||
|
|
||||||
|
@ -896,7 +896,7 @@ var startPicker = function(details) {
|
|||||||
divDialog.addEventListener('click', onDialogClicked);
|
divDialog.addEventListener('click', onDialogClicked);
|
||||||
taCandidate = divDialog.querySelector('textarea');
|
taCandidate = divDialog.querySelector('textarea');
|
||||||
taCandidate.addEventListener('input', onCandidateChanged);
|
taCandidate.addEventListener('input', onCandidateChanged);
|
||||||
urlNormalizer = vAPI.getUrlNormalizer();
|
urlNormalizer = document.createElement('a');
|
||||||
window.addEventListener('scroll', onScrolled, true);
|
window.addEventListener('scroll', onScrolled, true);
|
||||||
window.addEventListener('keydown', onKeyPressed, true);
|
window.addEventListener('keydown', onKeyPressed, true);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user