mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Map csp_report
to other
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1622
This commit is contained in:
parent
39a51a6e43
commit
ad15a5dd51
1 changed files with 6 additions and 4 deletions
|
@ -1143,6 +1143,7 @@ const reloadTab = function(ev) {
|
||||||
'css': 'stylesheet',
|
'css': 'stylesheet',
|
||||||
'frame': 'subdocument',
|
'frame': 'subdocument',
|
||||||
'object_subrequest': 'object',
|
'object_subrequest': 'object',
|
||||||
|
'csp_report': 'other',
|
||||||
};
|
};
|
||||||
const createdStaticFilters = {};
|
const createdStaticFilters = {};
|
||||||
|
|
||||||
|
@ -1778,12 +1779,13 @@ const reloadTab = function(ev) {
|
||||||
nodes.push(select);
|
nodes.push(select);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '{{type}}':
|
case '{{type}}': {
|
||||||
|
const filterType = staticFilterTypes[targetType] || targetType;
|
||||||
select = document.createElement('select');
|
select = document.createElement('select');
|
||||||
select.className = 'static type';
|
select.className = 'static type';
|
||||||
option = document.createElement('option');
|
option = document.createElement('option');
|
||||||
option.setAttribute('value', targetType);
|
option.setAttribute('value', filterType);
|
||||||
option.textContent = vAPI.i18n('loggerStaticFilteringSentencePartType').replace('{{type}}', targetType);
|
option.textContent = vAPI.i18n('loggerStaticFilteringSentencePartType').replace('{{type}}', filterType);
|
||||||
select.appendChild(option);
|
select.appendChild(option);
|
||||||
option = document.createElement('option');
|
option = document.createElement('option');
|
||||||
option.setAttribute('value', '');
|
option.setAttribute('value', '');
|
||||||
|
@ -1791,7 +1793,7 @@ const reloadTab = function(ev) {
|
||||||
select.appendChild(option);
|
select.appendChild(option);
|
||||||
nodes.push(select);
|
nodes.push(select);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case '{{url}}':
|
case '{{url}}':
|
||||||
select = document.createElement('select');
|
select = document.createElement('select');
|
||||||
select.className = 'static url';
|
select.className = 'static url';
|
||||||
|
|
Loading…
Reference in a new issue