Skip to content

Instantly share code, notes, and snippets.

@bogomil bogomil/bgsearch
Created Sep 1, 2009

What would you like to do?
// Search bulgarian websites. It is still in development, but is more than usable.
names: ['търси', 'дири', 'намери'],
arguments: [
{role: "object", label: 'дума', nountype: noun_arb_text},
{role: "goal", label: 'източник', nountype: noun_arb_text}
homepage: "",
author: {name: "Bogomil Shopov", email: ""},
license: "GPL",
description: "Търсене във много източници на български език.",
help: "Напишете какво искате да търсите и къде. Пример: търси вафла > Дневник.",
execute: function(arguments) {
var kakvo = arguments.object.text;
var kade = arguments.goal.text;
if(kade == "Дневник"){
var url = ""+kakvo;
else if(kade == "Гювеч"){
var url =""+kakvo+"&c=gbg";
else if(kade == "Дира"){
kakvo= this._trans(kakvo);
var url= ""+kakvo+"&vid=0";
else if(kade=="Актуално"){
kakvo = this._trans(kakvo);
var url = ""+ kakvo;
var url = ""+kakvo+kade;
_trans: function this_trans(what)
var req = new XMLHttpRequest;"POST", "",false);
var output = req.responseText;
// displayMessage(output);
return output;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.