\u{1F44B}
Welcome to KoalaSync!
Let's get you started.
diff --git a/extension/popup.js b/extension/popup.js
index ef89272..4909818 100644
--- a/extension/popup.js
+++ b/extension/popup.js
@@ -65,19 +65,19 @@ let forceSyncDone = false;
function getAvatarForName(username) {
if (!username) return 'đ¤';
const lower = username.toLowerCase();
- if (lower.includes('koala')) return 'đ¨';
- if (lower.includes('panda')) return 'đŧ';
- if (lower.includes('tiger')) return 'đ¯';
- if (lower.includes('penguin')) return 'đ§';
- if (lower.includes('fox')) return 'đĻ';
- if (lower.includes('bear')) return 'đģ';
- if (lower.includes('rabbit')) return 'đ°';
- if (lower.includes('owl')) return 'đĻ';
- if (lower.includes('eagle')) return 'đĻ
';
- if (lower.includes('wolf')) return 'đē';
- if (lower.includes('lion')) return 'đĻ';
- if (lower.includes('shark')) return 'đĻ';
- if (lower.includes('dragon')) return 'đ';
+ const map = {
+ 'koala': 'đ¨', 'panda': 'đŧ', 'tiger': 'đ¯', 'eagle': 'đĻ
',
+ 'fox': 'đĻ', 'bear': 'đģ', 'wolf': 'đē', 'lion': 'đĻ',
+ 'hawk': 'đĻ
', 'seal': 'đĻ', 'owl': 'đĻ', 'shark': 'đĻ',
+ 'dragon': 'đ', 'phoenix': 'đĻ', 'falcon': 'đĻ
', 'panther': 'đ',
+ 'raven': 'đĻââŦ', 'cobra': 'đ', 'lynx': 'đ', 'jaguar': 'đ',
+ 'orca': 'đ', 'mantis': 'đĻ', 'viper': 'đ', 'condor': 'đĻ
',
+ 'badger': 'đĻĄ', 'otter': 'đĻĻ', 'rhino': 'đĻ', 'crane': 'đĻŠ',
+ 'mongoose': 'đĻĻ', 'specter': 'đģ'
+ };
+ for (const [key, emoji] of Object.entries(map)) {
+ if (lower.includes(key)) return emoji;
+ }
return 'đ¤';
}
diff --git a/fix_ui.js b/fix_ui.js
new file mode 100644
index 0000000..6444378
--- /dev/null
+++ b/fix_ui.js
@@ -0,0 +1,61 @@
+const fs = require('fs');
+let html = fs.readFileSync('extension/popup.html', 'utf8');
+
+// Tooltips for inputs
+html = html.replace('
', '
');
+html = html.replace('
', '
');
+html = html.replace('
', '
');
+
+// Tooltips for buttons
+html = html.replace('
', '
');
+html = html.replace('
', '
');
+html = html.replace('
', '
');
+html = html.replace('
', '
');
+html = html.replace('
', '
');
+html = html.replace('
', '
');
+html = html.replace('
', '
');
+html = html.replace('
', '
');
+
+// Tooltips for tabs
+html = html.replace('
', '
');
+html = html.replace('
', '
');
+html = html.replace('
', '
');
+html = html.replace('
', '
');
+
+// Remove explicit âšī¸ where not needed since it's hidden now
+html = html.replace('>Hide Clutter Tabs âšī¸<', ' title="Filters out non-video tabs and unrelated domains to keep the list clean">Hide Clutter Tabs<');
+html = html.replace('>Auto-Sync Next Episode âšī¸<', ' title="Automatically clicks \'Next Episode\' on supported sites like Netflix when others do">Auto-Sync Next Episode<');
+html = html.replace('>Auto-copy invite on Create âšī¸<', ' title="Automatically copies the invite link to your clipboard when you create a new room">Auto-copy invite on Create<');
+html = html.replace('>Browser Notifications âšī¸<', ' title="Shows native system notifications when someone joins/leaves or plays/pauses.">Browser Notifications<');
+
+// Fix onboarding layout
+html = html.replace('align-items:center; justify-content:center;">', 'align-items:flex-end; justify-content:center; padding-bottom: 20px;">');
+html = html.replace('margin-top: 50px;', '');
+
+fs.writeFileSync('extension/popup.html', html, 'utf8');
+
+let js = fs.readFileSync('extension/popup.js', 'utf8');
+
+const newAvatarFn = `function getAvatarForName(username) {
+ if (!username) return 'đ¤';
+ const lower = username.toLowerCase();
+ const map = {
+ 'koala': 'đ¨', 'panda': 'đŧ', 'tiger': 'đ¯', 'eagle': 'đĻ
',
+ 'fox': 'đĻ', 'bear': 'đģ', 'wolf': 'đē', 'lion': 'đĻ',
+ 'hawk': 'đĻ
', 'seal': 'đĻ', 'owl': 'đĻ', 'shark': 'đĻ',
+ 'dragon': 'đ', 'phoenix': 'đĻ', 'falcon': 'đĻ
', 'panther': 'đ',
+ 'raven': 'đĻââŦ', 'cobra': 'đ', 'lynx': 'đ', 'jaguar': 'đ',
+ 'orca': 'đ', 'mantis': 'đĻ', 'viper': 'đ', 'condor': 'đĻ
',
+ 'badger': 'đĻĄ', 'otter': 'đĻĻ', 'rhino': 'đĻ', 'crane': 'đĻŠ',
+ 'mongoose': 'đĻĻ', 'specter': 'đģ'
+ };
+ for (const [key, emoji] of Object.entries(map)) {
+ if (lower.includes(key)) return emoji;
+ }
+ return 'đ¤';
+}`;
+
+js = js.replace(/function getAvatarForName\(username\) \{[\s\S]*?return 'đ¤';\n\}/, newAvatarFn);
+
+fs.writeFileSync('extension/popup.js', js, 'utf8');
+console.log("Fixed UI");
diff --git a/package-lock.json b/package-lock.json
index f71b36e..e40a9f8 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "koalasync",
- "version": "1.8.1",
+ "version": "1.8.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "koalasync",
- "version": "1.8.1",
+ "version": "1.8.2",
"devDependencies": {
"archiver": "^7.0.1",
"eslint": "^10.4.0",
diff --git a/package.json b/package.json
index d4e85e6..18b8bb2 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "koalasync",
- "version": "1.8.1",
+ "version": "1.8.2",
"description": "KoalaSync Build Scripts",
"private": true,
"scripts": {