Skip to content

Commit 7b8edb6

Browse files
authored
Add Google, Brave Search, and Ecosia options
1 parent 30a1c09 commit 7b8edb6

1 file changed

Lines changed: 5 additions & 90 deletions

File tree

settings.html

Lines changed: 5 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
<!DOCTYPE html>
23
<html lang="en">
34
<head>
@@ -186,10 +187,12 @@ <h1 class="section-header">Proxy</h1>
186187
<div class="control-group">
187188
<label class="control-label">Choose a search engine</label>
188189
<select id="engine-select" class="vision-select">
189-
<option value="https://www.google.com/search?q=">Google</option>
190190
<option value="https://duckduckgo.com/?q=">DuckDuckGo</option>
191+
<option value="https://www.google.com/search?q=">Google</option>
191192
<option value="https://www.bing.com/search?q=">Bing</option>
192193
<option value="https://search.yahoo.com/search?p=">Yahoo</option>
194+
<option value="https://search.brave.com/search?q=">Brave Search</option>
195+
<option value="https://www.ecosia.org/search?q=">Ecosia</option>
193196
</select>
194197
</div>
195198

@@ -232,92 +235,4 @@ <h1 class="section-header">Cloak</h1>
232235
</div>
233236

234237
<div class="control-group">
235-
<label class="control-label">Tab Title Cloak</label>
236-
<select class="vision-select">
237-
<option>None (Default)</option>
238-
<option>Google Docs</option>
239-
<option>Canvas</option>
240-
<option>My Drive</option>
241-
</select>
242-
</div>
243-
</div>
244-
245-
<!-- Data Tab -->
246-
<div id="data" class="tab-content">
247-
<h1 class="section-header">Data</h1>
248-
<p class="section-desc">Manage your registry, history, and stored visions.</p>
249-
<div class="divider"></div>
250-
251-
<div class="control-group">
252-
<label class="control-label">History</label>
253-
<button onclick="clearData('vision_history')" class="vision-btn bg-red-500/20 text-red-400 border border-red-500/30 hover:bg-red-500/40">Clear Browsing History</button>
254-
</div>
255-
256-
<div class="control-group">
257-
<label class="control-label">Bookmarks</label>
258-
<button onclick="clearData('vision_bookmarks')" class="vision-btn bg-red-500/20 text-red-400 border border-red-500/30 hover:bg-red-500/40">Clear All Bookmarks</button>
259-
</div>
260-
</div>
261-
</div>
262-
263-
<script>
264-
const tabs = document.querySelectorAll('.settings-tab');
265-
const contents = document.querySelectorAll('.tab-content');
266-
const engineSelect = document.getElementById('engine-select');
267-
const cloakBtn = document.getElementById('cloak-btn');
268-
269-
// Tab Switching Logic
270-
tabs.forEach(tab => {
271-
tab.onclick = () => {
272-
tabs.forEach(t => t.classList.remove('active'));
273-
contents.forEach(c => c.classList.remove('active'));
274-
275-
tab.classList.add('active');
276-
document.getElementById(tab.dataset.tab).classList.add('active');
277-
};
278-
});
279-
280-
// Search Engine Logic
281-
function updateEngine() {
282-
const current = localStorage.getItem('vision_search_engine') || 'https://www.google.com/search?q=';
283-
engineSelect.value = current;
284-
}
285-
286-
engineSelect.onchange = () => {
287-
localStorage.setItem('vision_search_engine', engineSelect.value);
288-
};
289-
290-
// About:Blank Cloak Logic
291-
cloakBtn.onclick = () => {
292-
const win = window.open('about:blank', '_blank');
293-
if (win) {
294-
const doc = win.document;
295-
const iframe = doc.createElement('iframe');
296-
const style = iframe.style;
297-
298-
doc.title = 'My Drive - Google Drive';
299-
style.position = 'fixed';
300-
style.top = '0';
301-
style.left = '0';
302-
style.bottom = '0';
303-
style.right = '0';
304-
style.width = '100%';
305-
style.height = '100%';
306-
style.border = 'none';
307-
308-
iframe.src = window.parent.location.href;
309-
doc.body.appendChild(iframe);
310-
}
311-
};
312-
313-
function clearData(key) {
314-
if (confirm('Are you sure you want to purge this data segment? This cannot be undone.')) {
315-
localStorage.removeItem(key);
316-
alert('Data purged from registry.');
317-
}
318-
}
319-
320-
updateEngine();
321-
</script>
322-
</body>
323-
</html>
238+
<label class="control-label">Tab Title Cloak</

0 commit comments

Comments
 (0)