mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 07:22:28 +02:00
Collapse config details by default
This commit is contained in:
parent
64cd70664d
commit
5d51d172c4
@ -115,7 +115,7 @@ function patchEmptiness(data, prop) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function configToMarkdown(collapse = false) {
|
function configToMarkdown(collapse = false) {
|
||||||
const text = cmEditor.getValue();
|
const text = cmEditor.getValue().trim();
|
||||||
return collapse
|
return collapse
|
||||||
? '<details>\n\n```yaml\n' + text + '\n```\n</details>'
|
? '<details>\n\n```yaml\n' + text + '\n```\n</details>'
|
||||||
: '```yaml\n' + text + '\n```\n';
|
: '```yaml\n' + text + '\n```\n';
|
||||||
@ -219,7 +219,7 @@ function reportSpecificFilterIssue(ev) {
|
|||||||
githubURL.searchParams.set('title', title);
|
githubURL.searchParams.set('title', title);
|
||||||
githubURL.searchParams.set('url_address_of_the_web_page', '`' + reportURL.href + '`');
|
githubURL.searchParams.set('url_address_of_the_web_page', '`' + reportURL.href + '`');
|
||||||
githubURL.searchParams.set('category', issueType);
|
githubURL.searchParams.set('category', issueType);
|
||||||
githubURL.searchParams.set('configuration', configToMarkdown(false));
|
githubURL.searchParams.set('configuration', configToMarkdown(true));
|
||||||
vAPI.messaging.send('default', {
|
vAPI.messaging.send('default', {
|
||||||
what: 'gotoURL',
|
what: 'gotoURL',
|
||||||
details: { url: githubURL.href, select: true, index: -1 },
|
details: { url: githubURL.href, select: true, index: -1 },
|
||||||
|
Loading…
Reference in New Issue
Block a user