Skip to content

FyeCobain/WebSearchBars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Search Bars 🌐🔍

Requirements

Windows 7+

Ecosia search screenshot

YouTube search screenshot

Images search screenshot

Open URL screenshot

Table of contents

  1. Usage
  2. Examples
  3. Configuration
  4. Attributions

1. Usage

Right Control + O => Open URL
Right Control + [Web key] => Open a search bar
Tab / Shift + Tab => Change browser
Right Alt / Alt Gr => Toggle private search
Left Alt => Toggle multiline search
Enter => Submit search
Control + Enter => Submit multiline search

2. Examples

Tip ✨

Leave the input blank to open the home page instead of performing a search

Open URL: Right Control + O

Open URL screenshot

Search images in private / incognito: Right Control + I, then, Right Alt / Alt Gr

Images private search screenshot

Translation of multiline text: Right Control + T, then, Left Alt, then Ctrl + Enter

Translate screenshot

📌 Check the 'Main.ahk' script to see all the predefined hotkeys


3. Configuration

Browsers.ahk

Set the translation target language
; 'en' | 'es' | 'de' | 'ja' ...
TranslationTargetLang := "en"
Add browsers
; ("Name", ".exe")
Waterfox := BrowserClass("Waterfox", "waterfox")
LibreWolf := BrowserClass("LibreWolf", "C:\Program Files\LibreWolf\librewolf.exe")
Set the default web browser
; Edge | Firefox | LibreWolf | Chrome | Vivaldi ...
DefaultBrowser := Edge

Websites.ahk

Add a new Website object
Arguments:
  1. Title: Must match the icon name, without extension. Case insensitive.
  2. HomeURL: It will be open when the text box is blank.
  3. SearchURL: The value of 'Website.TermTemplate' will be replaced with the search term.
ExampleWeb := Website(
    "ExampleWeb",
    "https://example.com",
    "https://example.com/search_query=" Website.TermTemplate "&order=ASC"
)

Main.ahk

Add the search hotkey
; Right Control + X => Search in ExampleWeb
>^X Up:: ShowSearchBar(ExampleWeb)
Add a direct link hotkey
; Right Control + A => Open Azure in a private Firefox window
>^A Up:: OpenURL('https://azure.microsoft.com', Firefox, True)

Reload and test the script

Reload Script screenshot


4. Attributions

Icons:

Mozilla iconos created by Freepik - Flaticon

Image icons created by Good Ware - Flaticon

Youtube icons created by riajulislam - Flaticon

External link icons created by Bharat Icons - Flaticon

Search icons created by Chanut - Flaticon

Translator icons created by Freepik - Flaticon

Google icons created by Freepik - Flaticon

Crome icons created by Pixel perfect - Flaticon

Docker icons created by Freepik - Flaticon

About

Web Search Bars 🌐🔍

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors