flesh out the feedback page

This commit is contained in:
Lawrence Hook
2023-02-18 17:56:35 -05:00
parent ec9a66571e
commit dd8fb021ef
3 changed files with 34 additions and 11 deletions
+7 -2
View File
@@ -9,6 +9,13 @@ html[dark_mode='false'], html:not([dark_mode]) {
--box-shadow-color: rgba(0, 0, 0, 0.30); --box-shadow-color: rgba(0, 0, 0, 0.30);
} }
html[dark_mode='true'] {
--body-color: #DDDDDD;
--body-background-color: #393939;
--label-color: #E9E9E9;
--box-shadow-color: rgba(127, 127, 127, 0.90);
}
body { body {
padding: var(--header-height) 10px 0; padding: var(--header-height) 10px 0;
@@ -49,9 +56,7 @@ header {
main { main {
width: 500px; width: 500px;
margin-bottom: 20px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 30px;
} }
+18 -9
View File
@@ -29,22 +29,31 @@
<main> <main>
<article> <article>
<h3>Github</h3> <h3>Have a feature idea?</h3>
<p>Here are a number of ways to contact me:</p>
<p><a href="https://github.com/lawrencehook/remove-youtube-suggestions/issues">Github</a><a href="https://docs.google.com/forms/d/1AzQQxTWgG6M5N87jinvXKQkGS6Mehzg19XV4mjteTK0/edit">Google Form</a><a href="https://discord.gg/bBY7FhHYEA">Discord</a> • or simply email.</p>
</article> </article>
<article> <article>
<h3>Google Form</h3> <h3>Is RYS not working?</h3>
</article>
<article> <p>Try the following:</p>
<h3>Email</h3> <ul>
</article> <li>refresh the YouTube page</li>
<li>disable and re-enable RYS</li>
<li>uninstall and reinstall RYS</li>
</ul>
<article> <p>If that doesn't work, email me at lawrencehook@gmail.com.</p>
<h3>Discord</h3> <p>To help me diagnose, please include the following:</p>
<ul>
<li>description of the issue</li>
<li>screenshot or video</li>
<li>browser: <span id='browser-version'>firefox</span></li>
<li>version of RYS: <span id='extension-version'>1.0.0</span></li>
</ul>
</article> </article>
</main> </main>
</body> </body>
</html> </html>
+9
View File
@@ -3,3 +3,12 @@ const HTML = document.documentElement;
browser.storage.local.get('dark_mode', ({ dark_mode }) => { browser.storage.local.get('dark_mode', ({ dark_mode }) => {
HTML.setAttribute('dark_mode', dark_mode) HTML.setAttribute('dark_mode', dark_mode)
}); });
const extensionVersion = document.getElementById('extension-version');
extensionVersion.innerText = browser.runtime.getManifest().version;
const browserVersion = document.getElementById('browser-version');
const path = browser.runtime.getURL('/');
const isFirefox = path.startsWith('moz');
const isChrome = path.startsWith('chrome');
browserVersion.innerText = isFirefox ? 'firefox' : 'chrome';