Untitled

 avatar
unknown
plain_text
2 years ago
1.8 kB
5
Indexable

    FeedQuery(input) {
        restOfLink := this.SanitizeQuery(input)
        if (this.SelectedSearchEngine = this.AvailableSearchEngines["GoogleReddit"]) {
            Browser.RunLink(this.SelectedSearchEngine restOfLink "+site:reddit.com")
        } 
        else if (this.SelectedSearchEngine = this.AvailableSearchEngines["GoogleFacebook"]) {
            Browser.RunLink(this.SelectedSearchEngine restOfLink "+site:facebook.com")
        } 
        else {
            Browser.RunLink(this.SelectedSearchEngine restOfLink)
        }
    }


    AvailableSearchEngines := Map(
        "Google",  "https://www.google.com/search?q=",
        "Youtube", "https://www.youtube.com/results?search_query=",
        "Emoji",   "https://emojipedia.org/search/?q=",
        "Yandex",  "https://yandex.ru/search/?text=",
        "All",  "https://cse.google.com/cse?cx=009983555355237802955:_kirhgouogi&q=",
        "Leaked Girls", "https://cse.google.com/cse?cx=f6ea31d20adb64ca4#gsc.tab=0&gsc.q=",
		"Docs", "https://cse.google.com/cse?cx=606dab4aa2b5c4150#gsc.tab=0&gsc.q=",
        "Phind", "https://www.phind.com/search?q=",
        "GoogleReddit", "https://www.google.com/search?q=",
        "GoogleFacebook", "https://www.google.com/search?q=",
    )

    SearchEngineNicknames := Map(
        "g",  this.AvailableSearchEngines["Google"],
        "y",  this.AvailableSearchEngines["Youtube"],
        "e",  this.AvailableSearchEngines["Emoji"],
        "ya", this.AvailableSearchEngines["Yandex"],
        "al", this.AvailableSearchEngines["All"],
        "lg", this.AvailableSearchEngines["Leaked Girls"],
		"dc", this.AvailableSearchEngines["Docs"],
        "p", this.AvailableSearchEngines["Phind"],
        "gr", this.AvailableSearchEngines["GoogleReddit"],
        "gf", this.AvailableSearchEngines["GoogleFacebook"],
    )


Editor is loading...