diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json index 3ff968c50..77414fedd 100644 --- a/src/_locales/en/messages.json +++ b/src/_locales/en/messages.json @@ -964,6 +964,10 @@ "message": "Opens unwanted tabs or windows", "description": "An entry in the widget used to select the type of issue" }, + "supportS6Checkbox1": { + "message": "Label the web page as “NSFW” (“Not Safe For Work”)", + "description": "A checkbox to use for NSFW sites" + }, "supportRedact": { "message": "Redact", "description": "Text for 'Redact' button" diff --git a/src/js/support.js b/src/js/support.js index 040bb71db..0c222f0be 100644 --- a/src/js/support.js +++ b/src/js/support.js @@ -212,7 +212,11 @@ function reportSpecificFilterType() { function reportSpecificFilterIssue(ev) { const githubURL = new URL('https://github.com/uBlockOrigin/uAssets/issues/new?template=specific_report_from_ubo.yml'); const issueType = reportSpecificFilterType(); - githubURL.searchParams.set('title', `${reportSpecificFilterHostname()}: ${issueType}`); + let title = `${reportSpecificFilterHostname()}: ${issueType}`; + if ( document.getElementById('isNSFW').checked ) { + title = `[nsfw] ${title}`; + } + githubURL.searchParams.set('title', title); githubURL.searchParams.set('url_address_of_the_web_page', '`' + reportURL.href + '`'); githubURL.searchParams.set('category', issueType); githubURL.searchParams.set('configuration', configToMarkdown(false)); diff --git a/src/support.html b/src/support.html index 541b147a5..1f9ba9f8d 100644 --- a/src/support.html +++ b/src/support.html @@ -87,6 +87,8 @@ +
+