Skip to content

Commit 46da915

Browse files
authored
Feat: Add You and Perplexity (#10)
1 parent d6a5e03 commit 46da915

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

contents/config/main.xml

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
<entry name="showGoogleGemini" type="Bool">
4646
<default>true</default>
4747
</entry>
48+
<entry name="showYou" type="Bool">
49+
<default>false</default>
50+
</entry>
51+
<entry name="showPerplexity" type="Bool">
52+
<default>false</default>
53+
</entry>
4854
<entry name="showBlackBox" type="Bool">
4955
<default>false</default>
5056
</entry>

contents/ui/ConfigGeneral.qml

+19
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ KCM.SimpleKCM {
1212
property alias cfg_showBingCopilot: showBingCopilot.checked
1313
property alias cfg_showGoogleGemini: showGoogleGemini.checked
1414
property alias cfg_showBlackBox: showBlackBox.checked
15+
property alias cfg_showDeepAI: showDeepAI.checked
16+
property alias cfg_showYou: showYou.checked
17+
property alias cfg_showPerplexity: showPerplexity.checked
1518
property alias cfg_hideHeader: hideHeader.checked
1619
property alias cfg_hideGoToButton: hideGoToButton.checked
1720
property alias cfg_hideKeepOpen: hideKeepOpen.checked
@@ -53,6 +56,22 @@ KCM.SimpleKCM {
5356
}
5457
}
5558

59+
RowLayout {
60+
QQC2.CheckBox {
61+
id: showYou
62+
63+
text: qsTr("You")
64+
}
65+
}
66+
67+
RowLayout {
68+
QQC2.CheckBox {
69+
id: showPerplexity
70+
71+
text: qsTr("Perplexity")
72+
}
73+
}
74+
5675
RowLayout {
5776
QQC2.CheckBox {
5877
id: showBlackBox

contents/ui/Header.qml

+4
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ RowLayout {
103103

104104
plasmoid.configuration.showBlackBox && chatModel.push({ value: "https://www.blackbox.ai", text: "BlackBox AI" })
105105

106+
plasmoid.configuration.showYou && chatModel.push({ value: "https://you.com/?chatMode=default", text: "You" })
107+
108+
plasmoid.configuration.showPerplexity && chatModel.push({ value: "https://www.perplexity.ai", text: "Perplexity" })
109+
106110
urlComboBox.model = chatModel
107111

108112
const currentPageIndex = chatModel.findIndex(chat => chat.value === plasmoid.configuration.url)

0 commit comments

Comments
 (0)