mirror of https://github.com/gorhill/uBlock.git
More fine tuning of filter issue report feature
This commit is contained in:
parent
b66dfb1c87
commit
aad90eb323
|
@ -20,11 +20,6 @@ h3 {
|
||||||
:root:not(.mobile) .supportEntry > div:first-of-type {
|
:root:not(.mobile) .supportEntry > div:first-of-type {
|
||||||
margin-inline-end: 2em;
|
margin-inline-end: 2em;
|
||||||
}
|
}
|
||||||
.supportEntry > div.hasButtons {
|
|
||||||
align-items: center;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-around;
|
|
||||||
}
|
|
||||||
.supportEntry h3 {
|
.supportEntry h3 {
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
}
|
}
|
||||||
|
@ -36,9 +31,7 @@ h3 {
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
}
|
}
|
||||||
.e > .supportEntry select {
|
.e > .supportEntry select {
|
||||||
padding: var(--default-gap-xxsmall);
|
min-width: 50%;
|
||||||
}
|
|
||||||
.e > .supportEntry select {
|
|
||||||
max-width: calc(100% - 1em);
|
max-width: calc(100% - 1em);
|
||||||
}
|
}
|
||||||
body:not(.filterIssue) .body > div.e {
|
body:not(.filterIssue) .body > div.e {
|
||||||
|
|
|
@ -191,7 +191,7 @@ const reportedPage = (( ) => {
|
||||||
}
|
}
|
||||||
document.body.classList.add('filterIssue');
|
document.body.classList.add('filterIssue');
|
||||||
return {
|
return {
|
||||||
hostname: parsedURL.hostname.replace(/^www\./, ''),
|
hostname: parsedURL.hostname.replace(/^(m|mobile|www)\./, ''),
|
||||||
popupPanel: JSON.parse(url.searchParams.get('popupPanel')),
|
popupPanel: JSON.parse(url.searchParams.get('popupPanel')),
|
||||||
};
|
};
|
||||||
} catch(ex) {
|
} catch(ex) {
|
||||||
|
@ -262,7 +262,7 @@ uBlockDashboard.patchCodeMirrorEditor(cmEditor);
|
||||||
|
|
||||||
uDom('[data-i18n="supportFindSpecificButton"]').on('click', ev => {
|
uDom('[data-i18n="supportFindSpecificButton"]').on('click', ev => {
|
||||||
const url = new URL('https://github.com/uBlockOrigin/uAssets/issues');
|
const url = new URL('https://github.com/uBlockOrigin/uAssets/issues');
|
||||||
url.searchParams.set('q', `is:issue "${reportedPage.hostname}" in:title`);
|
url.searchParams.set('q', `is:issue sort:updated-desc "${reportedPage.hostname}" in:title`);
|
||||||
vAPI.messaging.send('default', {
|
vAPI.messaging.send('default', {
|
||||||
what: 'gotoURL',
|
what: 'gotoURL',
|
||||||
details: { url: url.href, select: true, index: -1 },
|
details: { url: url.href, select: true, index: -1 },
|
||||||
|
|
|
@ -65,6 +65,11 @@
|
||||||
<div>
|
<div>
|
||||||
<p data-i18n="supportS3P1">
|
<p data-i18n="supportS3P1">
|
||||||
<p data-i18n="supportS6P1S1">
|
<p data-i18n="supportS6P1S1">
|
||||||
|
</div>
|
||||||
|
<button type="button" data-i18n="supportFindSpecificButton"></button>
|
||||||
|
</div>
|
||||||
|
<div class="supportEntry">
|
||||||
|
<div>
|
||||||
<p>
|
<p>
|
||||||
<label data-i18n="supportS6URL"></label><br>
|
<label data-i18n="supportS6URL"></label><br>
|
||||||
<select name="url">
|
<select name="url">
|
||||||
|
@ -84,10 +89,7 @@
|
||||||
<p>
|
<p>
|
||||||
<label><span class="input checkbox"><input id="isNSFW" type="checkbox"><svg viewBox="0 0 24 24"><path d="M1.73,12.91 8.1,19.28 22.79,4.59"/></svg></span><span data-i18n="supportS6Checkbox1"></span></label>
|
<label><span class="input checkbox"><input id="isNSFW" type="checkbox"><svg viewBox="0 0 24 24"><path d="M1.73,12.91 8.1,19.28 22.79,4.59"/></svg></span><span data-i18n="supportS6Checkbox1"></span></label>
|
||||||
</div>
|
</div>
|
||||||
<div class="hasButtons">
|
<button type="button" data-i18n="supportReportSpecificButton"></button>
|
||||||
<button type="button" data-i18n="supportFindSpecificButton"></button>
|
|
||||||
<button type="button" data-i18n="supportReportSpecificButton"></button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue