mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
Fine tune filter issue reporter page
Added an entry to report popups. Added extra information about how uBO launched.
This commit is contained in:
parent
a777ff8ff8
commit
45e5c87084
@ -960,6 +960,10 @@
|
||||
"message": "Breaks when uBlock Origin is enabled",
|
||||
"description": "An entry in the widget used to select the type of issue"
|
||||
},
|
||||
"supportS6Select1Option6": {
|
||||
"message": "Opens unwanted tabs or windows",
|
||||
"description": "An entry in the widget used to select the type of issue"
|
||||
},
|
||||
"supportRedact": {
|
||||
"message": "Redact",
|
||||
"description": "Text for 'Redact' button"
|
||||
|
@ -221,6 +221,11 @@ const µBlock = { // jshint ignore:line
|
||||
// This can be used to defer filtering decision-making.
|
||||
readyToFilter: false,
|
||||
|
||||
supportStats: {
|
||||
launchToReadiness: 0,
|
||||
launchFromSelfie: false,
|
||||
},
|
||||
|
||||
pageStores: new Map(),
|
||||
pageStoresToken: 0,
|
||||
|
||||
|
@ -1269,7 +1269,9 @@ const getSupportData = async function() {
|
||||
if ( typeof list.entryCount === 'number' ) {
|
||||
listDetails.push(`${list.entryCount}-${list.entryCount-list.entryUsedCount}`);
|
||||
}
|
||||
if ( typeof list.writeTime === 'number' ) {
|
||||
if ( typeof list.writeTime !== 'number' || list.writeTime === 0 ) {
|
||||
listDetails.push('never');
|
||||
} else {
|
||||
const delta = (Date.now() - list.writeTime) / 1000 | 0;
|
||||
const days = (delta / 86400) | 0;
|
||||
const hours = (delta % 86400) / 3600 | 0;
|
||||
@ -1344,6 +1346,7 @@ const getSupportData = async function() {
|
||||
),
|
||||
modifiedUserSettings,
|
||||
modifiedHiddenSettings,
|
||||
supportStats: µb.supportStats,
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -427,6 +427,7 @@ let selfieIsValid = false;
|
||||
try {
|
||||
selfieIsValid = await µb.selfieManager.load();
|
||||
if ( selfieIsValid === true ) {
|
||||
µb.supportStats.launchFromSelfie = true;
|
||||
ubolog(`Selfie ready ${Date.now()-vAPI.T0} ms after launch`);
|
||||
}
|
||||
} catch (ex) {
|
||||
@ -504,7 +505,8 @@ browser.runtime.onUpdateAvailable.addListener(details => {
|
||||
}
|
||||
});
|
||||
|
||||
ubolog(`All ready ${Date.now()-vAPI.T0} ms after launch`);
|
||||
µb.supportStats.launchToReadiness = Date.now() - vAPI.T0;
|
||||
ubolog(`All ready ${µb.supportStats.launchToReadiness} ms after launch`);
|
||||
|
||||
// <<<<< end of private scope
|
||||
})();
|
||||
|
@ -81,10 +81,11 @@
|
||||
<select>
|
||||
<option value="[unknown]" data-i18n="supportS6Select1Option0" selected disabled></option>
|
||||
<option value="ads" data-i18n="supportS6Select1Option1"></option>
|
||||
<option value="nuisance" data-i18n="supportS6Select1Option2"></option>
|
||||
<option value="detection" data-i18n="supportS6Select1Option3"></option>
|
||||
<option value="privacy" data-i18n="supportS6Select1Option4"></option>
|
||||
<option value="popups" data-i18n="supportS6Select1Option6"></option>
|
||||
<option value="nuisance" data-i18n="supportS6Select1Option2"></option>
|
||||
<option value="breakage" data-i18n="supportS6Select1Option5"></option>
|
||||
<option value="privacy" data-i18n="supportS6Select1Option4"></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="hasButtons">
|
||||
|
Loading…
Reference in New Issue
Block a user